forked from react-dates/react-dates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
35 lines (25 loc) · 747 Bytes
/
.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
{
"root": true,
"extends": [
"airbnb",
"plugin:react-with-styles/recommended"
],
"plugins": [
"react-with-styles"
],
"env": {
"browser": true,
"node": true
},
"rules": {
"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/no-did-mount-set-state": 0, // necessary for server-rendering
"react-with-styles/no-unused-styles": 2,
"no-restricted-imports": 0, // TODO: enable with full RTL support
"react/jsx-one-expression-per-line": 1, // TODO: enable once fixed upstream
},
"settings": {
"propWrapperFunctions": ["forbidExtraProps", "exact", "Object.freeze"],
}
}