forked from u-wave/web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
40 lines (36 loc) · 1010 Bytes
/
.eslintrc.json
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
{
"extends": "airbnb",
"parser": "babel-eslint",
"plugins": ["compat"],
"rules": {
"new-cap": [ "error", {
"capIsNewExceptions": [ "DragDropContext", "DragSource", "DropTarget", "DragLayer", "ThemeDecorator" ]
} ],
"no-underscore-dangle": ["error", { "allow": ["_id"] }],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"react/jsx-filename-extension": "off",
"react/no-unused-prop-types": ["error", { "skipShapeProps": true }],
"react/forbid-prop-types": "off",
"react/require-default-props": "off",
"compat/compat": "error",
// Try to enable when the autofixer is fixed
"react/jsx-one-expression-per-line": "off"
},
"settings": {
"polyfills": ["promises", "fetch"]
},
"overrides": [
{
"files": ["**/__tests__/**/*.js"],
"rules": {
"no-unused-expressions": "off"
},
"env": {
"mocha": true
},
"globals": {
"testUtils": true
}
}
]
}