-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.eslintrc.json
49 lines (49 loc) · 965 Bytes
/
.eslintrc.json
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
{
"extends": "wordpress",
"env": {
"es6": true,
"browser": true,
"node": true,
"commonjs": true,
"jquery": true
},
"rules": {
"camelcase": [ 0 ],
"space-in-parens": [ 1, "always" ],
"no-trailing-spaces": [ 1 ],
"spaced-comment": [ 0 ],
"padded-blocks": [ 0 ],
"prefer-template": [ 0 ],
"max-len": [ 0 ],
"no-else-return": [ 0 ],
"func-names": [ 0 ],
"object-shorthand": [ 0 ],
"indent": [ "error", "tab" ],
"space-before-function-paren": 0,
"object-curly-spacing": ["error", "always"],
"no-tabs": 0,
"prefer-destructuring": 0,
"no-undef": 0,
"no-param-reassign": 0,
"key-spacing": [ "error", {
"beforeColon": false,
"afterColon": true
} ],
"react/jsx-curly-spacing": [ "warn", {
"when": "always",
"children": {
"when": "always"
}
} ]
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"react"
]
}