forked from react-bootstrap/react-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
116 lines (116 loc) · 2.88 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
"extends": ["eslint-config-airbnb", "prettier", "prettier/react"],
"env": {
"browser": true
},
"globals": {
"__DEV__": false
},
"parser": "babel-eslint",
"plugins": ["react", "prettier"],
"rules": {
"max-len": "off",
"no-plusplus": "off",
"prefer-const": "off",
"one-var": "off",
"no-param-reassign": "off",
"no-mixed-operators": [
"error",
{
"groups": [
["&", "|", "^", "~", "<<", ">>", ">>>"],
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
["&&", "||"],
["in", "instanceof"]
],
"allowSamePrecedence": false
}
],
"class-methods-use-this": "off",
"no-underscore-dangle": "off",
"prefer-destructuring": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/mouse-events-have-key-events": "off",
"jsx-a11y/label-has-for": [
"error",
{ "required": { "some": ["nesting", "id"] } }
],
"react/forbid-prop-types": "off",
"react/jsx-boolean-value": 2,
"react/jsx-no-duplicate-props": 2,
"react/no-find-dom-node": "off",
"react/no-array-index-key": "off",
"react/no-string-refs": "off",
"react/prefer-stateless-function": "off",
"react/destructuring-assignment": "off",
"react/default-props-match-prop-types": "off",
"react/jsx-one-expression-per-line": "off",
"react/forbid-foreign-prop-types": "error",
"import/no-named-as-default-member": "off",
"react/jsx-filename-extension": [
"error",
{
"extensions": [".js"]
}
],
"react/prop-types": [
2,
{
"ignore": [
"children",
"className",
"style",
]
}
],
"react/require-default-props": "off",
"import/no-extraneous-dependencies": [
"error",
{ "devDependencies": ["!src/**/*.js"] }
],
"no-restricted-syntax": [
"error",
"ForOfStatement",
"LabeledStatement",
"WithStatement"
],
"no-unused-vars": [
2,
{
"vars": "all",
"args": "after-used",
"varsIgnorePattern": "^_\\d?$",
"argsIgnorePattern": "^_\\d?$"
}
]
},
"overrides": [
{
"files": ["tools/*"],
"env": {
"node": true,
"browser": false
},
"rules": {
"global-require": "off",
"no-console": "off"
}
},
{
"files": ["test/*"],
"rules": {
"no-return-assign": "off",
"global-require": "off",
"no-console": "off",
"react/no-render-return-value": "off",
"jsx-a11y/aria-role": "off",
"jsx-a11y/alt-text": "off",
"jsx-a11y/tabindex-no-positive": "off",
"jsx-a11y/no-static-element-interactions": "off",
"import/first": "off"
}
}
]
}