-
Notifications
You must be signed in to change notification settings - Fork 90
/
.eslintrc
48 lines (48 loc) · 1.07 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
{
"root": true,
"parser": "babel-eslint",
"extends": [
"airbnb",
"plugin:jest/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"globalReturn": true,
"generators": false,
"objectLiteralDuplicateProperties": false,
"experimentalObjectRestSpread": true,
"jsx": true
},
"ecmaVersion": 2017,
"sourceType": "module"
},
"plugins": [
"import",
"react",
"jsx-a11y",
"jest"
],
"env": {
"browser": true,
"node": true,
"jest/globals": true
},
"rules": {
"linebreak-style": 0,
"class-methods-use-this": [2, { "exceptMethods": ["processPhoto"] }],
"react/forbid-foreign-prop-types": 2,
"jsx-a11y/click-events-have-key-events": 1,
"jsx-a11y/anchor-is-valid": 0,
"react/no-did-mount-set-state": 0,
"no-restricted-imports": 0,
"react/jsx-one-expression-per-line": 1,
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
},
"settings": {
"propWrapperFunctions": [
"forbidExtraProps",
"exact",
"Object.freeze"
]
}
}