-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
91 lines (91 loc) · 1.96 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
// Extends the JavaScript style guide from Airbnb
// https://github.com/airbnb/javascript
{
"extends": [
"react-app",
"react-app/jest",
"airbnb"
],
"parser": "babel-eslint",
"env": {
"browser": true,
"mocha": true
},
"globals": {},
"rules": {
"max-len": [
"error",
{
"code": 200
}
],
"react/no-unused-prop-types": [
"error",
{
"skipShapeProps": true
}
],
// TODO turn on these rules after merge into master
"import/no-extraneous-dependencies": "off",
"react/jsx-filename-extension": "off",
"arrow-parens": "off",
"no-underscore-dangle": "off",
"no-unused-vars": 1,
"import/extensions": "off",
"import/imports-first": "off",
"import/prefer-default-export": "off",
"import/newline-after-import": "off",
"object-property-newline": "off",
"import/no-named-as-default": "off",
"react/forbid-prop-types": "off",
"react/no-string-refs": "off",
"jsx-a11y/label-has-for": "off",
"react/no-find-dom-node": "off",
"react/no-did-mount-set-state": "off",
"no-plusplus": [
2,
{
"allowForLoopAfterthoughts": true
}
],
"jsx-a11y/no-static-element-interactions": "off",
"react/require-default-props": "off",
"react/jsx-no-bind": 0,
"camelcase": 1, //"camelcase": ["error", { "properties": "always", "allow": ["^UNSAFE_"] }],
"object-curly-spacing": [
"error",
"always",
{
"objectsInObjects": true
}
],
"jsx-a11y/no-noninteractive-element-interactions": [
"error",
{
"handlers": [
"onClick",
"onMouseUp",
"onKeyPress",
"onKeyDown",
"onKeyUp"
]
}
],
"curly": [
2,
"multi"
]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
}
}
}