-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
128 lines (128 loc) · 4.16 KB
/
.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:security/recommended",
"plugin:promise/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"env": {
"node": true,
"es6": true
},
"plugins": [
"@babel",
"compat",
"import",
"security",
"promise"
],
"rules": {
"accessor-pairs": "error",
"array-callback-return": "error",
"arrow-body-style": [ "error", "always" ],
"arrow-parens": "error",
"arrow-spacing": "error",
"@babel/no-invalid-this": "error",
"@babel/semi": [ "error", "always" ],
"block-scoped-var": "error",
"consistent-return": "error",
"default-case": "error",
"default-param-last": "error",
"eqeqeq": "error",
"guard-for-in": "error",
"handle-callback-err": "error",
"import/extensions": 0,
"import/no-unresolved": [ "error", { "ignore": [ "electron", "atom" ] } ],
"init-declarations": [ "error", "always" ],
"no-alert": "error",
"no-await-in-loop": "error",
"no-confusing-arrow": [ "error", { "allowParens": false } ],
"no-console": [ "error", { "allow": [ "warn", "error", "assert", "info", "debug", "dir" ] } ],
"no-duplicate-imports": [ "error", { "includeExports": true } ],
"no-else-return": "error",
"no-eq-null": "error",
"no-eval": "error",
"no-extra-bind": "error",
"no-floating-decimal": "error",
"no-implicit-coercion": "error",
"no-implicit-globals": "error",
"no-implied-eval": "error",
"no-iterator": "error",
"no-labels": "error",
"no-loop-func": "error",
"no-loss-of-precision": "error",
"no-multi-str": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-octal-escape": "error",
"no-param-reassign": [ "error", { "props": true } ],
"no-promise-executor-return": "error",
"no-proto": "error",
"no-prototype-builtins": "error",
"no-return-assign": "error",
"no-return-await": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-shadow": "error",
"no-template-curly-in-string": "error",
"no-throw-literal": "error",
"no-unreachable-loop": "error",
"no-useless-backreference": "error",
"no-useless-call": "error",
"no-useless-computed-key": [ "error", { "enforceForClassMembers": true } ],
"no-useless-concat": "error",
"no-useless-rename": "error",
"no-useless-return": "error",
"no-var": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-numeric-literals": "error",
"prefer-promise-reject-errors": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"promise/valid-params": [ "off" ],
"require-atomic-updates": "error",
"require-unicode-regexp": "error",
"rest-spread-spacing": [ "error", "never" ],
"symbol-description": "error",
"strict": 1,
"template-curly-spacing": "error",
"quotes": [ "error", "single", { "avoidEscape": true } ]
},
"overrides": [
{
"files": ["**/test/**"],
"rules": {
"arrow-spacing": "off",
"no-console": "off",
"no-new": "off",
"no-new-wrappers": "off",
"prefer-arrow-callback": "off"
},
"env": {
"mocha": true
},
"globals": {
"assert": false
}
},
{
"files": ["packages/esdoc-publish-html-plugin/src/html-template/script/**"],
"env": {
"browser": true
}
}
]
}