forked from woocommerce/woocommerce-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
37 lines (36 loc) · 742 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
36
37
/** @format */
{
"root": true,
"parser": "babel-eslint",
"extends": [ "wpcalypso/react", "plugin:jsx-a11y/recommended" ],
"plugins": [ "jsx-a11y", "jest" ],
"env": {
"browser": true,
"jest/globals": true,
"node": true,
},
"globals": {
"wp": true,
"wpApiSettings": true,
"wcSettings": true,
},
"settings": {
"react": {
"version": "detect",
},
},
"rules": {
"camelcase": 0,
"indent": 0,
"max-len": [ 2, { "code": 140 } ],
"no-console": 1,
"react/no-danger": 0,
"react/react-in-jsx-scope": 0,
"wpcalypso/import-no-redux-combine-reducers": 0,
"wpcalypso/jsx-classname-namespace": 0,
"wpcalypso/redux-no-bound-selectors": 1,
"jsx-a11y/label-has-for": [ "error", {
"required": "id"
} ]
},
}