@nice-move/eslint-config-base 0.11.14 → 0.11.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/mini.cjs +58 -2
- package/package.json +3 -3
package/lib/mini.cjs
CHANGED
|
@@ -21,9 +21,10 @@ function generate({
|
|
|
21
21
|
miniprogramRoot,
|
|
22
22
|
pluginRoot,
|
|
23
23
|
srcMiniprogramRoot,
|
|
24
|
+
srcPluginRoot,
|
|
24
25
|
cloudfunctionRoot,
|
|
25
26
|
}) {
|
|
26
|
-
const paths = [miniprogramRoot, srcMiniprogramRoot, pluginRoot]
|
|
27
|
+
const paths = [miniprogramRoot, srcMiniprogramRoot, pluginRoot, srcPluginRoot]
|
|
27
28
|
.filter(Boolean)
|
|
28
29
|
.map((item) => relativeToCWD(item));
|
|
29
30
|
|
|
@@ -109,6 +110,7 @@ function generate({
|
|
|
109
110
|
es2017: false,
|
|
110
111
|
es2016: false,
|
|
111
112
|
es6: false,
|
|
113
|
+
node: false,
|
|
112
114
|
},
|
|
113
115
|
parserOptions: {
|
|
114
116
|
ecmaVersion: 5,
|
|
@@ -117,16 +119,70 @@ function generate({
|
|
|
117
119
|
globals: {
|
|
118
120
|
require: 'readonly',
|
|
119
121
|
module: 'readonly',
|
|
122
|
+
getRegExp: 'readonly',
|
|
123
|
+
getDate: 'readonly',
|
|
120
124
|
},
|
|
121
125
|
rules: {
|
|
122
126
|
'import/no-commonjs': 0,
|
|
123
127
|
'no-var': 0,
|
|
124
128
|
'object-shorthand': ['error', 'never'],
|
|
129
|
+
'prefer-arrow-callback': 0,
|
|
130
|
+
'prefer-rest-params': 0,
|
|
125
131
|
'prefer-spread': 0,
|
|
126
132
|
'prefer-template': 0,
|
|
127
|
-
'
|
|
133
|
+
'vars-on-top': 0,
|
|
128
134
|
'unicorn/prefer-export-from': 0,
|
|
135
|
+
'unicorn/prefer-includes': 0,
|
|
129
136
|
'unicorn/prefer-module': 0,
|
|
137
|
+
'unicorn/prefer-string-replace-all': 0,
|
|
138
|
+
'no-restricted-globals': [
|
|
139
|
+
'error',
|
|
140
|
+
'AggregateError',
|
|
141
|
+
'Array',
|
|
142
|
+
'ArrayBuffer',
|
|
143
|
+
'Atomics',
|
|
144
|
+
'BigInt',
|
|
145
|
+
'BigInt64Array',
|
|
146
|
+
'BigUint64Array',
|
|
147
|
+
'Boolean',
|
|
148
|
+
'DataView',
|
|
149
|
+
'Date',
|
|
150
|
+
'Error',
|
|
151
|
+
'escape',
|
|
152
|
+
'eval',
|
|
153
|
+
'EvalError',
|
|
154
|
+
'FinalizationRegistry',
|
|
155
|
+
'Float32Array',
|
|
156
|
+
'Float64Array',
|
|
157
|
+
'Function',
|
|
158
|
+
'globalThis',
|
|
159
|
+
'Int16Array',
|
|
160
|
+
'Int32Array',
|
|
161
|
+
'Int8Array',
|
|
162
|
+
'Map',
|
|
163
|
+
'Object',
|
|
164
|
+
'Promise',
|
|
165
|
+
'Proxy',
|
|
166
|
+
'RangeError',
|
|
167
|
+
'ReferenceError',
|
|
168
|
+
'Reflect',
|
|
169
|
+
'RegExp',
|
|
170
|
+
'Set',
|
|
171
|
+
'SharedArrayBuffer',
|
|
172
|
+
'String',
|
|
173
|
+
'Symbol',
|
|
174
|
+
'SyntaxError',
|
|
175
|
+
'TypeError',
|
|
176
|
+
'Uint16Array',
|
|
177
|
+
'Uint32Array',
|
|
178
|
+
'Uint8Array',
|
|
179
|
+
'Uint8ClampedArray',
|
|
180
|
+
'unescape',
|
|
181
|
+
'URIError',
|
|
182
|
+
'WeakMap',
|
|
183
|
+
'WeakRef',
|
|
184
|
+
'WeakSet',
|
|
185
|
+
],
|
|
130
186
|
},
|
|
131
187
|
},
|
|
132
188
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice-move/eslint-config-base",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.19",
|
|
4
4
|
"description": "A `eslint` config for best practice",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"@babel/plugin-syntax-import-attributes": "^7.25.6",
|
|
40
40
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
|
41
41
|
"@nice-move/eslint-plugin-html": "0.0.0-beta.4",
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
43
|
-
"@typescript-eslint/parser": "^8.
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^8.4.0",
|
|
43
|
+
"@typescript-eslint/parser": "^8.4.0",
|
|
44
44
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
45
45
|
"eslint-config-prettier": "^9.1.0",
|
|
46
46
|
"eslint-plugin-import": "^2.29.1",
|