npm install -g eslint
npm install -g esformatter
Open SublimeText Command + Shift + P (or whatever you use to open the command palette) Install Package:
- Esformatter
- Eslint
Find out what the keyboard shortcuts for linting and formatting are:
- Click Preferences > Package Settings > ESLint > "Key Bindings - Default"
- Click Preferences > Package Settings > ESFormatter > "Key Bindings - Default"
cd /to/project/root/
eslint --init
This should create a .eslintrc.(json/js/yaml) You can also create an .esformatter file. There's no tool for automatic generation of that one as far as I'm aware.
Note: The steps above haven't been tested for Windows. I don't care much for Windows.