Download: https://www.sublimetext.com/3
- Press
Crt+Shift+P
to open the command palette. Type inPackage
and selectPackage Control: Install Package
- Type
SublimeLinter
into the text box of the command palette, and select. (Select SublimeLinter not SublimeLint). Docs for SublimeLinter can be found here
- Open your terminal and run
npm install -g jshint
- Press
Crt+Shift+P
to open the command palette. Type inPackage
and selectPackage Control: Install Package
- Type
JsHint
into the textbox of the command palette, and selectJSHint
- Press
Crt+Shift+P
to open the command palette. Type inPackage
and selectPackage Control: Install Package
- Type
JsPrettier
, then select it to complete the installation.
- To use Prettier Press
Crt+Shift+P
to open the command palette, typeJsPrettier Format Code
- Or right click anywhere in file to open the Context Menu, and select
JSPrettier Format Code
-
Go to menu: Preferences => Package Settings => JSPrettier => Settings: User
-
Include custom congifurations.
- Ex: `{ "auto_format_on_save_excludes": [ "*/node_modules/*", "*/file.js", "*.json" ] }`
-