eslint-config-strelka
v2.6.0
Published
> Based on [Standard JS](http://standardjs.com)
Downloads
5
Readme
eslint-config-strelka
Based on Standard JS
Setup
General
- Install:
$ yarn add eslint eslint-{config-{standard,strelka},plugin-{promise,import,node,standard}}
- In
.eslintrc
:
{ "extends": "strelka" }
React
- Install:
$ yarn add eslint eslint-{config-{standard,standard-jsx,strelka},plugin-{promise,import,node,react,standard}}
- In
.eslintrc
:
{ "extends": "strelka/react" }
- Usage:
$ eslint --ext js,jsx .
Vue
- Install:
$ yarn add eslint eslint-{config-{standard,vue,strelka},plugin-{promise,import,node,html,vue,standard}}
- In
.eslintrc
:
{ "extends": "strelka/vue" }
- 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": {
"linters": {
"eslint": {
"@disable": false,
"args": [ "--ext=js,jsx,vue" ],
"excludes": []
}
},
"syntax_map": {
"javascript (babel)": "javascript",
"vue": "javascript"
},
}
Rules
TODO
Related
- Standard.js - One JavaScript Style to Rule Them All
- ESLint - The pluggable linting utility for JavaScript and JSX
Strelka