forked from react-dates/react-dates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
66 lines (52 loc) · 1.31 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
{
"root": true,
"extends": [
"airbnb",
"plugin:react-with-styles/recommended",
],
"plugins": [
"react-with-styles",
],
"env": {
"browser": true,
"node": true,
},
"ignorePatterns": [
"lib/",
".storybook/",
"test/_helpers/",
"webpack.config.js",
],
"parser": "@babel/eslint-parser",
"rules": {
"max-len": "off",
"react/forbid-foreign-prop-types": 2, // For babel-plugin-transform-react-remove-prop-types
"jsx-a11y/click-events-have-key-events": 1, // TODO: enable
"react-with-styles/no-unused-styles": 2,
"no-restricted-imports": 0, // TODO: enable with full RTL support
"react/jsx-props-no-spreading": 0, // TODO: re-evaluate
"react/no-deprecated": 1, // TODO: update to UNSAFE_componentWillReceiveProps
},
"overrides": [
{
"files": "test/**/*",
"env": {
"mocha": true,
},
"extends": "airbnb",
"rules": {
"react/jsx-props-no-spreading": 0,
//"import/no-extraneous-dependencies": [2, {
//"devDependencies": true
//}],
"indent": [2, 2, {
"MemberExpression": "off",
}],
"react/function-component-definition": "off",
},
},
],
"settings": {
"propWrapperFunctions": ["forbidExtraProps", "exact", "Object.freeze"],
},
}