eslint-config-strelka
Based on Standard JS
Setup
General
- Install:
$ yarn add eslint eslint-{config-{standard,strelka},plugin-{promise,import,node,standard}}
- In
.eslintrc
:
React
- Install:
$ yarn add eslint eslint-{config-{standard,standard-jsx,strelka},plugin-{promise,import,node,react,standard}}
- In
.eslintrc
:
- Usage:
$ eslint --ext js,jsx .
Vue
- Install:
$ yarn add eslint eslint-{config-{standard,vue,strelka},plugin-{promise,import,node,html,vue,standard}}
- In
.eslintrc
:
- Usage:
$ eslint --ext js,vue .
Editors
Sublime Text
- Install Eslint globally with
npm i -g eslint
- Install Sublime packages:
SublimeLinter
SublimeLinter-contrib-eslint
- Open
SublimeLinter Settings: User
and add this options:
"user":
Rules
TODO
Related
- Standard.js - One JavaScript Style to Rule Them All
- ESLint - The pluggable linting utility for JavaScript and JSX
Strelka