forked from ClassicPress/ClassicPress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslint.config.js
49 lines (49 loc) · 947 Bytes
/
.eslint.config.js
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
module.exports = [
{
"languageOptions": {
"ecmaVersion": 6
},
"rules": {
"block-scoped-var": "error",
"comma-dangle": "error",
"comma-style": [
"error", "last"
],
"eol-last": [
"error",
"always"
],
"func-style": [
"error",
"declaration",
{
"allowArrowFunctions": false
}
],
"linebreak-style": [
"error",
"unix"
],
"no-confusing-arrow": "error",
"no-cond-assign": "off",
"no-empty": "off",
"no-eval": "error",
"no-extra-boolean-cast": "off",
"no-implied-eval": "error",
"no-misleading-character-class": "off",
"no-mixed-spaces-and-tabs": "off",
"no-prototype-builtins": "off",
"no-redeclare": "off",
"no-shadow-restricted-names": "off",
"no-trailing-spaces": "error",
"no-undef": "off",
"no-unused-vars": "off",
"no-useless-escape": "off",
"semi": [
"error",
"always"
],
"semi-spacing": "error"
}
}
];