:sparkles: Runs standard --fix against the javascript in your ST3 window on save or manually.
Jul 13 | Jul 12 | Jul 11 | Jul 10 | Jul 9 | Jul 8 | Jul 7 | Jul 6 | Jul 5 | Jul 4 | Jul 3 | Jul 2 | Jul 1 | Jun 30 | Jun 29 | Jun 28 | Jun 27 | Jun 26 | Jun 25 | Jun 24 | Jun 23 | Jun 22 | Jun 21 | Jun 20 | Jun 19 | Jun 18 | Jun 17 | Jun 16 | Jun 15 | Jun 14 | Jun 13 | Jun 12 | Jun 11 | Jun 10 | Jun 9 | Jun 8 | Jun 7 | Jun 6 | Jun 5 | Jun 4 | Jun 3 | Jun 2 | Jun 1 | May 31 | May 30 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
A Sublime Text 3 plug-in that runsstandard –fix against the javascript code in your ST3 window on save or manually. Can be toggled on or off. Includes a few settings that let you tweak your search path to favor local dependencies over global ones.
Supports any tool that accepts astdin
andstdout
formatting API. The following tools are used by default:
standard --fixsemistandard --fix
Install Standard Format usingPackage Control.
# In the command palate- package control install- standard format
Standard Format (the Sublime Text Plug-in) requires that you installstandard
either locally to your project or globally. It is recomended to save it to your local project.
$npm install standard@latest --save-dev
You can find Standard Format settings in theStandardFormat.sublime-settings
file.
Standard Format is agressive about finding your developer dependencies. The search path that it uses by default are in the following order:
node_modules/.bin
paths found above the current file. Disable withuse_view_path
node_modules/.bin
to add to the path here. Disabled withuse_project_path_fallback
..nvm
shims.format_on_save
: Boolean. Runs Standard Format on save when set to true. Use the command pallet to quickly toggle this on or off.extensions
: String Array. An array of file extensions that you want to be able to run Standard Format against.
command
:Optional String Array. Customize the command and flags thatStandard Format runs against. Can expand certain pre-defined placeholders (such as{FILENAME}
).
Default:
{"commands":[["standard","--stdin","--fix"],["semistandard","--stdin","--fix"]["ts-standard","--stdin","--fix","--stdin-filename","{FILENAME}"]]}
loud_error
: Boolean. Specifies if you get a status bar message or error window if the subprocess encounters an error while formatting.
log_errors
: Boolean. Lets you log out errors encountered by the formatter. Mainly used to suppress noisy formatting errors.
If the default/user settings isn't fined grained enough, you can set project specific settings in.sublime-project
project specific settings. Seesublime project docs for more details.
{"settings":{"standard_format":{"format_on_save":true,"commands":[["eslint_d","--stdin","--fix-to-stdout"]]}}}
Windows is now supported. Please open any issues that you come across.
Standard Format pairs nicely with the Sublime Textstandard
linter: