-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
59 lines (58 loc) · 1.55 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
{
"extends": [
"plugin:@wordpress/eslint-plugin/esnext",
"plugin:prettier/recommended"
],
"plugins": [
"prettier"
],
"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", "tab"],
"space-in-parens": ["error", "never"],
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "always",
"asyncArrow": "always"
}]
}
}