-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
51 lines (51 loc) · 1.42 KB
/
.eslintrc
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
41
42
43
44
45
46
47
48
49
50
51
{
"extends": ["airbnb-base"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6
},
"env": {
"jest": true
},
"plugins": [ "react" ],
"rules": {
"semi": ["error", "never"],
"semi-style": ["error", "first"],
"comma-dangle": 0,
"space-before-function-paren": ["error", "always"],
"arrow-parens": ["error", "as-needed"],
"array-bracket-spacing": ["error", "always"],
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"object-curly-newline": ["error", { "consistent": true }],
"function-paren-newline": ["error", "consistent"],
"global-require": 0,
"no-console": 0,
"no-mixed-operators": 0,
"class-methods-use-this": 0,
"no-underscore-dangle": 0,
"import/prefer-default-export": 0,
"generator-star-spacing": ["error", {"before": false, "after": true}],
"no-multiple-empty-lines": 0,
"yoda": 0,
"no-param-reassign": 0,
"brace-style": 0,
"no-unused-vars": ["error", { "args": "after-used" }],
"react/jsx-uses-vars": 2,
"react/jsx-uses-react": 2,
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "optionalDependencies": false, "peerDependencies": false}]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js"]
}
}
},
"globals": {
"sleepAsync": true,
"__DEV__": true,
"window": true,
"document": true,
"fetch": true
}
}