Skip to content

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.

License

Notifications You must be signed in to change notification settings

MackMendes/JsAdvice-Beta

Repository files navigation

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

  • Using the Light Bulb Visual Studio 2015.
  • Code fixed to Equals Operators
  • Code fixed to Unequal Operators
  • Code fixed to include Semicolon in end the command
  • Code fixed to initialization of Array and Object

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

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages