-
Turn off your IDE
-
[Figure out where your configuration lives][webstorm-2] (IDE Settings section)
-
Navigate to
your-config-dir/codestyles
-
Create a
Standard.xml
file:
<code_scheme name="Standard"> </code_scheme>
5. If you don't want to clutter your project with extra dependencies and config files, then go global:
- `npm install -g eslint eslint-config-standard eslint-plugin-standard` (`sudo` might be required)
- `echo '{"extends": ["standard"]}' > ~/.eslintrc` (be warned: it overrides an existing file)
6. If you're OK with local dependencies and config, do (5) without `-g` and `~/`
7. Fire up the IDE and open a _Settings_/_Preferences_ screen (choose between project and default settings accordingly to your preference)
8. Under `Editor > Code Style > JavaScript` change `Scheme` to `Standard`
9. Under `Editor > Inspections > JavaScript > Code style issues` untick `Unterminated statement`
10. Under `Languages & Frameworks > JavaScript > Code Quality Tools > ESLint` just select `Enable`, only in rare cases you'll have to configure `ESLint package` path
[webstorm-1]: https://www.jetbrains.com/webstorm/
[webstorm-2]: https://www.jetbrains.com/webstorm/help/project-and-ide-settings.html