-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
66 lines (65 loc) · 1.52 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
{
"extends": [
"plugin:@wordpress/eslint-plugin/esnext",
"airbnb",
"plugin:prettier/recommended",
"plugin:jsx-a11y/recommended"
],
"plugins": [
"prettier",
"jsx-a11y"
],
"env": {
"browser": true,
"commonjs":true,
"es6": true,
"node":true,
"jquery": true
},
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"rules": {
"prettier/prettier": "error",
"strict" : ["error","global"],
"prefer-destructuring":["error",{"array":true, "object":true},{"enforceForRenamedProperties":true}],
"new-cap": "error",
"no-invalid-this": "off",
"prefer-const":"error",
"func-style":["error", "expression"],
"no-new-func":"error",
"no-unused-vars": "warn",
"no-console": "warn",
"func-names": "off",
"no-process-exit": "warn",
"object-shorthand": "warn",
"class-methods-use-this": "error",
"no-param-reassign": "error",
"no-var": "error",
"prefer-arrow-callback": "warn",
"prefer-rest-params": "warn",
"arrow-parens": ["error", "always"],
"arrow-body-style": ["error", "as-needed"],
"no-eval":"error",
"no-implied-eval":"error",
"eqeqeq":"error",
"no-with":"error",
"no-plusplus":"error",
"indent": ["error", "space"],
"space-in-parens": ["error", "never"],
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}
],
"eslint wrap-iife": "off",
"quotes": ["error", "double"],
"jsx-a11y/label-has-for": 0
}
}