Atom package to format your Javascript using Standard Style, Semi-Standard Style
Use Ctrl-Alt-F
to format the current Javascript file. If a text selection is made, only the selected text will be formatted.
Automatically format your Javascript file on save by enabling the Format On Save package setting. This is off by default.
Packages > Standard Formatter > Format
Standard Format Code
Format Javascript files when saving.
Check code style in package.json devDependencies
. If a valid style is not found it won't format.
| Note: This will use the nearest package.json
Choose the style formatter module you want to use. If checkStyleDevDependencies
is true
this setting will be ignored.
- standard - equivalent to running
standard --fix
- semi-standard - equivalent to running
semistandard --fix
Don't auto-format files included in the package.json's "ignore"
configuration for the detected style.
| Note: This will use the nearest package.json
Formats code with Prettier before Standard format
This package relies on the excellent work from the following modules to perform formatting:
Code based on the https://github.com/standard/atom-standard-formatter package. Changes made:
- Package updated to the newest software versions - original package wasn't updated since 2017
- Removed Happiness, Standard-format, Semistandard-format
- Added Prettier option