-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
44 lines (40 loc) · 977 Bytes
/
.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
41
42
43
44
module.exports = {
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"airbnb-base",
],
"parser": "babel-eslint",
"env": {
"mocha": true,
"node": true,
"browser": 1,
},
globals: {
document: true,
expect: true,
sinon: true,
json: true,
Promise: true,
window: true,
localStorage: true,
},
rules: {
"no-console": "error",
"semi": ["error", "never"],
"react/prop-types": "off",
"class-methods-use-this": "off",
"import/no-unresolved": "off",
"import/extensions": "error",
"no-unused-expressions": "off",
"no-underscore-dangle": "off",
"import/no-dynamic-require": "off",
"import/prefer-default-export": "off",
"no-nested-ternary": "off",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"object-curly-newline": "off",
"prefer-destructuring": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
}
}