-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
23 lines (23 loc) · 1.03 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
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"],
"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
},
"sourceType": "module" // can be module or script
},
"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
}
};