-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
executable file
·40 lines (40 loc) · 1.08 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
32
33
34
35
36
37
38
39
40
module.exports = {
"env": {
"browser": true,
"node": true,
"commonjs": true,
"es6": true
},
"extends": "eslint:recommended",
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"modules": true,
"spread" : true,
"restParams" : true
},
"sourceType": "module"
},
"plugins": [
"flowtype",
"babel",
],
rules: {
// "indent": [2, 'tab', {SwitchCase: 1, VariableDeclarator: 1, ObjectExpression: 2}],
"no-console": 0,
"no-redeclare": 0,
"no-sparse-arrays": 0,
"one-var-declaration-per-line": [2, "always"],
"no-mixed-spaces-and-tabs": 0,
"semi": 2,
"no-undef": 1,
"no-unused-vars": [1, {"args": "none"}],
"babel/new-cap": [1, {"capIsNew": false}],
// "babel/object-curly-spacing": 1,
"no-await-in-loop": 1,
"flowtype/object-type-delimiter": 1,
"babel/no-invalid-this": 0
},
"globals": {}
};