-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
31 lines (31 loc) · 1.29 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module.exports = {
//"parser": "babel-eslint", //if installed babel-eslint
"env": { //can also add mocha, jquery, etc http://eslint.org/docs/user-guide/configuring#specifying-environments
"browser": true, //if project is executed in browser
"es6": true, //if you need es6 features
"node": true //if project runs in node
},
"extends": ["airbnb-base", "plugin:react/recommended"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 7, //default is 5, supports 6,7,8 or 2015,2016,2017. If es6 is true in env then this is set to 6 by default
"ecmaFeatures": {
"classes": true,
"experimentalObjectRestSpread": true, //if using react or spread operators
"jsx": true //if using react or plain jsx
},
"sourceType": "module" // can be module or script
},
"plugins": [
"react",
"eslint-plugin-react",
],
"rules": { //rule overrides go here http://eslint.org/docs/user-guide/configuring#configuring-rules
'indent': [2, 4, { 'SwitchCase': 1, 'VariableDeclarator': 1 }],
"class-methods-use-this": 0,
"react/display-name": 0,
"import/extensions": 0,
"import/no-extraneous-dependencies": 0,
"no-param-reassign":0
}
};