@icebreakers/eslint-config 0.3.23 → 0.4.0
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/dist/index.cjs +20 -10
- package/dist/index.js +20 -10
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -219,18 +219,28 @@ function getRestConfigAndPresets(options) {
|
|
|
219
219
|
formatters: true,
|
|
220
220
|
typescript: {
|
|
221
221
|
overrides: {
|
|
222
|
-
"ts/no-unused-vars": [
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
222
|
+
"ts/no-unused-vars": [
|
|
223
|
+
"error",
|
|
224
|
+
{
|
|
225
|
+
args: "all",
|
|
226
|
+
argsIgnorePattern: "^_",
|
|
227
|
+
caughtErrors: "all",
|
|
228
|
+
caughtErrorsIgnorePattern: "^_",
|
|
229
|
+
destructuredArrayIgnorePattern: "^_",
|
|
230
|
+
varsIgnorePattern: "^_",
|
|
231
|
+
ignoreRestSiblings: true
|
|
232
|
+
}
|
|
233
|
+
],
|
|
231
234
|
"ts/prefer-ts-expect-error": "off",
|
|
232
235
|
"ts/ban-ts-comment": "off",
|
|
233
|
-
"ts/no-use-before-define": "warn"
|
|
236
|
+
"ts/no-use-before-define": "warn",
|
|
237
|
+
"ts/no-unused-expressions": [
|
|
238
|
+
"error",
|
|
239
|
+
{
|
|
240
|
+
allowShortCircuit: true,
|
|
241
|
+
allowTernary: true
|
|
242
|
+
}
|
|
243
|
+
]
|
|
234
244
|
}
|
|
235
245
|
}
|
|
236
246
|
});
|
package/dist/index.js
CHANGED
|
@@ -195,18 +195,28 @@ function getRestConfigAndPresets(options) {
|
|
|
195
195
|
formatters: true,
|
|
196
196
|
typescript: {
|
|
197
197
|
overrides: {
|
|
198
|
-
"ts/no-unused-vars": [
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
198
|
+
"ts/no-unused-vars": [
|
|
199
|
+
"error",
|
|
200
|
+
{
|
|
201
|
+
args: "all",
|
|
202
|
+
argsIgnorePattern: "^_",
|
|
203
|
+
caughtErrors: "all",
|
|
204
|
+
caughtErrorsIgnorePattern: "^_",
|
|
205
|
+
destructuredArrayIgnorePattern: "^_",
|
|
206
|
+
varsIgnorePattern: "^_",
|
|
207
|
+
ignoreRestSiblings: true
|
|
208
|
+
}
|
|
209
|
+
],
|
|
207
210
|
"ts/prefer-ts-expect-error": "off",
|
|
208
211
|
"ts/ban-ts-comment": "off",
|
|
209
|
-
"ts/no-use-before-define": "warn"
|
|
212
|
+
"ts/no-use-before-define": "warn",
|
|
213
|
+
"ts/no-unused-expressions": [
|
|
214
|
+
"error",
|
|
215
|
+
{
|
|
216
|
+
allowShortCircuit: true,
|
|
217
|
+
allowTernary: true
|
|
218
|
+
}
|
|
219
|
+
]
|
|
210
220
|
}
|
|
211
221
|
}
|
|
212
222
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icebreakers/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"description": "icebreakers's eslint config",
|
|
6
6
|
"author": "SonOfMagic <qq1324318532@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dist"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@antfu/eslint-config": "
|
|
35
|
+
"@antfu/eslint-config": "3.0.0",
|
|
36
36
|
"eslint-plugin-format": "0.1.2",
|
|
37
37
|
"eslint-plugin-jsx-a11y": "^6.9.0",
|
|
38
38
|
"eslint-plugin-mdx": "3.1.5",
|