Automagically fix JSHint lint warnings using fixmyjs
Issues with the output should be reported on the fixmyjs issue tracker.
$ apm install fixmyjs
Or, Settings → Install → Search for
Open the Command Palette and type
Can also be run on just a selection. For example the code in a
By default, this plugin uses the FixMyJS
legacy mode. This option uses the last stable version of the module which uses JSHint to detect errors in your code and fix them.
It does not include all of the fixes the current version of FixMyJS exposes, but does do a much better job of preserving source formatting. Legacy mode can be switched off in the settings.
Set the keyboard shortcut you want in your keymap:
MIT © Sindre Sorhus
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.