@sxzz/eslint-config 4.1.0 → 4.1.2
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.d.ts +1 -1
- package/dist/index.js +6 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -11866,7 +11866,7 @@ declare const sortImports: Linter.Config[];
|
|
|
11866
11866
|
declare const typescriptCore: Linter.Config[];
|
|
11867
11867
|
declare const typescript: Linter.Config[];
|
|
11868
11868
|
|
|
11869
|
-
declare const unicorn:
|
|
11869
|
+
declare const unicorn: Config[];
|
|
11870
11870
|
|
|
11871
11871
|
declare const unocss: Linter.Config[];
|
|
11872
11872
|
|
package/dist/index.js
CHANGED
|
@@ -286,7 +286,8 @@ var javascript = [
|
|
|
286
286
|
files: ["**/*.{test,spec}.js?(x)"],
|
|
287
287
|
name: "sxzz/test-rules",
|
|
288
288
|
rules: {
|
|
289
|
-
"no-unused-expressions": "off"
|
|
289
|
+
"no-unused-expressions": "off",
|
|
290
|
+
"unicorn/consistent-function-scoping": "off"
|
|
290
291
|
}
|
|
291
292
|
}
|
|
292
293
|
];
|
|
@@ -740,7 +741,10 @@ var unicorn = [
|
|
|
740
741
|
rules: {
|
|
741
742
|
"unicorn/catch-error-name": "error",
|
|
742
743
|
"unicorn/consistent-empty-array-spread": "error",
|
|
743
|
-
"unicorn/consistent-function-scoping":
|
|
744
|
+
"unicorn/consistent-function-scoping": [
|
|
745
|
+
"error",
|
|
746
|
+
{ checkArrowFunctions: false }
|
|
747
|
+
],
|
|
744
748
|
"unicorn/custom-error-definition": "error",
|
|
745
749
|
"unicorn/error-message": "error",
|
|
746
750
|
"unicorn/escape-case": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sxzz/eslint-config",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"description": "ESLint config for @sxzz.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@eslint/config-inspector": "^0.5.4",
|
|
63
63
|
"@sxzz/prettier-config": "^2.0.2",
|
|
64
|
-
"@types/node": "^22.5.
|
|
64
|
+
"@types/node": "^22.5.2",
|
|
65
65
|
"bumpp": "^9.5.2",
|
|
66
66
|
"eslint": "^9.9.1",
|
|
67
67
|
"eslint-typegen": "^0.3.1",
|