##Sublime linter setup Displays warnings and errors from ESLint. You need eslint installed. See readme of https://github.com/roadhump/SublimeLinter-eslint for eslint installation instructions
- With Package Manager, install SublimeLinter and SublimeLinter-contrib-eslint
Cmd+Shift+P
should now have aSublimeLinter: Lint This View
option- Running that should lint your file. It should also run the linter on file load and save (configurable on SublimeLinter settings)
##Sublime formatter setup Autoformats your files according to ESLint --fix option
- With Package Manager, install ESLint Formatter
- Cmd+Shift+P should have a ESLint Formatter: Format this file option
- Set config to use .eslintrc file and you can choose to format on save.
{
"config_path": ".eslintrc",
"format_on_save": false,
}