-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
49 lines (48 loc) · 980 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
45
46
47
48
49
module.exports = {
'settings': {
'react': {
"version": "^16.2.0",
},
"import/core-modules": [ "body-parser" ]
},
"extends": [
"airbnb-base",
"plugin:react/recommended",
],
"globals": {
"document": true,
"window": true,
"React": true,
},
"env": {
"mocha": true,
"es6": true,
"browser": true,
},
"plugins": [
"react",
],
"rules": {
"arrow-body-style": "off",
"react/prop-types": 0,
"no-console": 0,
"no-unused-vars": [
"error",
{
"varsIgnorePattern": "should|expect|raf"
}
],
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}]
// 'id-match': [
// 'error',
// '^(UNSAFE_componentDidMount|UNSAFE_componentWillReceiveProps|UNSAFE_componentWillUpdate|[a-z]+([A-Z][a-z]+)*)$'
// ]
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
},
},
};