Last active
March 10, 2016 10:04
-
-
Save ahmed1490/5f17cd9f5bc3df52c797 to your computer and use it in GitHub Desktop.
ES List description
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
env: { | |
es6: true | |
}, | |
parserOptions: { | |
sourceType: 'module', | |
ecmaVersion: 6, | |
ecmaFeatures: { | |
modules: true, | |
experimentalObjectRestSpread: true | |
} | |
}, | |
globals: { | |
jQuery: true, | |
__: false | |
} | |
"rules": { | |
"brace-style": [2, "1tbs"], | |
"comma-style": [2, "last"], | |
"indent": [2, 4, { "SwitchCase": 1 }], | |
"no-constant-condition": 2, | |
"semi": [2, "always"], | |
"space-after-keywords": [2, "always"], | |
"space-before-blocks": [2, "always"], | |
"strict": [2, "never"], | |
"quotes": [2, "single"], | |
"react/self-closing-comp": 1, | |
"react/no-did-mount-set-state": 1, | |
"react/no-did-update-set-state": 1, | |
"react/jsx-uses-react": 1, | |
"react/jsx-uses-vars": 1, | |
"react/react-in-jsx-scope": 1 | |
}, | |
"plugins": [ | |
"react" | |
], | |
"extends": "plugin:react/recommended", | |
"extends": "airbnb" | |
"extends": "meteor" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Lets start...
npm install eslint --save-dev
&&eslint --init
4 ways to define linting
--- globals: var1: true var2: false
/*eslint-env node, mocha */
eslint 2.x vs 1.x
You can nest .eslintrc files
check sample fragment
eslint-loader
in yourwepack.dev.js
as a preloader (preloader so that your colleage doesnt makes mistake to putbabel-loader
before theeslint-loader
)others bla bla
Read the manual
http://eslint.org/docs/user-guide/configuring