Skip to content
This repository was archived by the owner on Jan 23, 2021. It is now read-only.

sindresorhus/atom-fixmyjs

Folders and files

NameName
Last commit message
Last commit date
Aug 27, 2016
Oct 1, 2014
Oct 1, 2014
Aug 27, 2016
Sep 9, 2015
Sep 9, 2015
Sep 9, 2015
Feb 16, 2017
Oct 1, 2014
Feb 16, 2017
Sep 20, 2017
Oct 1, 2014

Repository files navigation

fixmyjs

Automagically fix JSHint lint warnings using fixmyjs

Issues with the output should be reported on the fixmyjs issue tracker.

Install

$ apm install fixmyjs

Or, Settings → Install → Search for fixmyjs

Usage

Open the Command Palette and type fixmyjs.

Can also be run on just a selection. For example the code in a <script> tag.

Legacy mode

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.

Keyboard shortcut

Set the keyboard shortcut you want in your keymap:

'atom-text-editor':
	'cmd-shift-x': 'FixMyJS'

License

MIT © Sindre Sorhus