Home

Awesome

Js Advice - Thinking JavaScript as Ninja

Build status

Download this extension from the VS Gallery or get the CI build.


Context Menu Context Menu

Js Advice is a JavaScript code analyzer. Checking possible errors or bad practices will advise possible changes, in JavaScript code. By Light bulb (Visual Studio 2015) and intuitive menu.

See the changelog for changes and roadmap.

Features

Light Bulb Visual Studio 2015:

Using the Light Bulb Visual Studio 2015:

Context Menu

Equals Operators:

In code that equality comparison is with two equal ==, then will be shown an improvement (press 'ctrl + .' or click in light bulb), to use three equal ===. Indicating how it will look the result.

Context Menu

Pressing enter or clicking on the suggestion, will apply.

Context Menu

Unequal Operators

When writing an unequal code !=, It will be suggested to use !== (press 'ctrl + .' or click in light bulb).

Context Menu

Suggestion apply:

Context Menu

Include Semicolon in end the command

When writing code that has no semicolon (;) at the end of the command will be suggested place.

Context Menu

Suggestion apply:

Context Menu

Initialization to Array and Object

When starting an object with new Array(), it is suggested that will replace [].

Context Menu

Suggestion apply:

Context Menu

And when starting an object with new Object(), it is suggested that will replace {}.

Context Menu

Suggestion apply:

Context Menu

Contribute

Check out the contribution guidelines if you want to contribute to this project.

For cloning and building this project yourself, make sure to install the Extensibility Tools 2015 extension for Visual Studio which enables some features used by this project.

License

Apache 2.0

Informações sobre Licença Software

Legislação Software BR