-
Notifications
You must be signed in to change notification settings - Fork 32
/
.eslintrc
71 lines (71 loc) · 1.24 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
/** @format */
{
"root": true,
"parser": "babel-eslint",
"extends": [
"prettier",
"plugin:@woocommerce/eslint-plugin/recommended"
],
"plugins": [ ],
"env": {
"browser": true,
"jest/globals": true,
"node": true
},
"globals": {
"wp": true,
"wpApiSettings": true,
"wcSettings": true,
"wcpaySettings": true,
"page": true,
"browser": true,
"context": true,
"jestPuppeteer": true
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"typescript": {}
}
},
"rules": {
"camelcase": [
"error",
{
"properties": "never",
"ignoreGlobals": true
}
],
"import/no-extraneous-dependencies": "off",
"indent": "off",
"max-len": [
"error",
{
"code": 140
}
],
"no-console": "warn",
"react/no-danger": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-curly-spacing": [
2,
{
"when": "always",
"children": {
"when": "always"
}
}
],
"jsdoc/check-tag-names": [
"error",
{
"definedTags": [ "format" ]
}
],
"yoda": [ "error", "always" ],
/* partially disable rules to get @woocommerce/eslint-plugin integration done */
"@wordpress/i18n-translator-comments": "off" // disabled due to inability to have multiline comment
}
}