@so1ve/eslint-config 3.17.0 → 3.18.1
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 +8 -12
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -15852,7 +15852,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
15852
15852
|
onlyEquality?: boolean;
|
|
15853
15853
|
}];
|
|
15854
15854
|
// Names of all the configs
|
|
15855
|
-
type ConfigNames = 'antfu/astro/setup' | 'antfu/astro/rules' | 'so1ve/comments/setup' | 'so1ve/comments/rules' | 'so1ve/formatting/setup' | 'so1ve/formatting/rules' | 'so1ve/formatting/rules/sort-package-json' | 'so1ve/formatting/rules/sort-tsconfig' | 'so1ve/formatting/rules/test' | 'so1ve/html/setup' | 'so1ve/html/rules' | 'so1ve/ignores' | 'so1ve/imports/setup' | 'so1ve/imports/rules' | 'so1ve/imports/rules/dts' | 'so1ve/javascript/setup' | 'so1ve/javascript/rules' | 'so1ve/javascript/regexp' | 'so1ve/javascript/cli' | 'so1ve/jsonc/setup' | 'so1ve/jsonc/rules' | 'so1ve/mdx/setup' | 'so1ve/mdx/rules' | 'so1ve/node/setup' | 'so1ve/node/rules' | 'so1ve/only-error' | 'so1ve/perfectionist/setup' | 'so1ve/perfectionist/rules' | 'so1ve/pnpm/package-json' | 'so1ve/pnpm/pnpm-workspace-yaml' | 'so1ve/promise/setup' | 'so1ve/promise/rules' | 'so1ve/solid/setup' | 'so1ve/solid/rules' | 'so1ve/sort-imports/setup' | 'so1ve/sort-imports/rules' | 'so1ve/test/setup' | 'so1ve/test/rules' | 'so1ve/toml/setup' | 'so1ve/toml/rules' | 'so1ve/typescript/setup' | 'so1ve/typescript/rules' | 'so1ve/typescript/rules/type-aware' | 'so1ve/typescript/rules/dts' | 'so1ve/typescript/rules/js' | 'so1ve/unicorn/setup' | 'so1ve/unicorn/rules' | 'so1ve/vue/setup' | 'so1ve/vue/rules' | 'so1ve/yaml/setup' | 'so1ve/yaml/rules';
|
|
15855
|
+
type ConfigNames = 'antfu/astro/setup' | 'antfu/astro/rules' | 'so1ve/comments/setup' | 'so1ve/comments/rules' | 'so1ve/formatting/setup' | 'so1ve/formatting/rules' | 'so1ve/formatting/rules/sort-package-json' | 'so1ve/formatting/rules/sort-tsconfig' | 'so1ve/formatting/rules/test' | 'so1ve/html/setup' | 'so1ve/html/rules' | 'so1ve/ignores' | 'so1ve/imports/setup' | 'so1ve/imports/rules' | 'so1ve/imports/rules/dts' | 'so1ve/javascript/setup' | 'so1ve/javascript/rules' | 'so1ve/javascript/regexp' | 'so1ve/javascript/cli' | 'so1ve/jsonc/setup' | 'so1ve/jsonc/rules' | 'so1ve/mdx/setup' | 'so1ve/mdx/rules' | 'so1ve/node/setup' | 'so1ve/node/rules' | 'so1ve/only-error' | 'so1ve/perfectionist/setup' | 'so1ve/perfectionist/rules' | 'so1ve/pnpm/package-json' | 'so1ve/pnpm/pnpm-workspace-yaml' | 'so1ve/promise/setup' | 'so1ve/promise/rules' | 'so1ve/solid/setup' | 'so1ve/solid/rules' | 'so1ve/sort-imports/setup' | 'so1ve/sort-imports/rules' | 'so1ve/test/setup' | 'so1ve/test/rules' | 'so1ve/toml/setup' | 'so1ve/toml/rules' | 'so1ve/typescript/setup' | 'so1ve/typescript/rules' | 'so1ve/typescript/rules/type-aware' | 'so1ve/typescript/rules/dts' | 'so1ve/typescript/rules/js' | 'so1ve/unicorn/setup' | 'so1ve/unicorn/rules' | 'so1ve/vue/setup' | 'so1ve/vue/rules' | 'so1ve/yaml/setup' | 'so1ve/yaml/rules' | 'so1ve/yaml/pnpm-workspace';
|
|
15856
15856
|
//#endregion
|
|
15857
15857
|
//#region src/types.d.ts
|
|
15858
15858
|
type MaybePromise<T> = T | Promise<T>;
|
package/dist/index.js
CHANGED
|
@@ -262,6 +262,7 @@ async function formatting(options) {
|
|
|
262
262
|
rules: { "jsonc/sort-keys": [
|
|
263
263
|
"error",
|
|
264
264
|
{
|
|
265
|
+
pathPattern: "^$",
|
|
265
266
|
order: [
|
|
266
267
|
"extends",
|
|
267
268
|
"compilerOptions",
|
|
@@ -269,10 +270,10 @@ async function formatting(options) {
|
|
|
269
270
|
"files",
|
|
270
271
|
"include",
|
|
271
272
|
"exclude"
|
|
272
|
-
]
|
|
273
|
-
pathPattern: "^$"
|
|
273
|
+
]
|
|
274
274
|
},
|
|
275
275
|
{
|
|
276
|
+
pathPattern: "^compilerOptions$",
|
|
276
277
|
order: [
|
|
277
278
|
"incremental",
|
|
278
279
|
"composite",
|
|
@@ -362,8 +363,11 @@ async function formatting(options) {
|
|
|
362
363
|
"skipDefaultLibCheck",
|
|
363
364
|
"skipLibCheck",
|
|
364
365
|
"paths"
|
|
365
|
-
]
|
|
366
|
-
|
|
366
|
+
]
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
pathPattern: "^compilerOptions\\.paths$",
|
|
370
|
+
order: { type: "asc" }
|
|
367
371
|
}
|
|
368
372
|
] }
|
|
369
373
|
}],
|
|
@@ -1178,14 +1182,6 @@ const typescript = async ({ componentExts = [], parserOptions, overrides } = {})
|
|
|
1178
1182
|
message: "Use `bigint` instead.",
|
|
1179
1183
|
fixWith: "bigint"
|
|
1180
1184
|
},
|
|
1181
|
-
Object: {
|
|
1182
|
-
message: "The `Object` type is mostly the same as `unknown`. You probably want `Record<PropertyKey, unknown>` instead. See https://github.com/typescript-eslint/typescript-eslint/pull/848",
|
|
1183
|
-
fixWith: "Record<PropertyKey, unknown>"
|
|
1184
|
-
},
|
|
1185
|
-
object: {
|
|
1186
|
-
message: "The `object` type is hard to use. Use `Record<PropertyKey, unknown>` instead. See: https://github.com/typescript-eslint/typescript-eslint/pull/848",
|
|
1187
|
-
fixWith: "Record<PropertyKey, unknown>"
|
|
1188
|
-
},
|
|
1189
1185
|
Function: {
|
|
1190
1186
|
message: "Use `(...args: any[]) => any` instead.",
|
|
1191
1187
|
fixWith: "(...args: any[]) => any"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@so1ve/eslint-config",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.18.1",
|
|
4
4
|
"author": "Ray <i@mk1.io> (https://github.com/so1ve/)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Ray's eslint config.",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"typescript-eslint": "^8.47.0",
|
|
78
78
|
"vue-eslint-parser": "^10.2.0",
|
|
79
79
|
"yaml-eslint-parser": "^1.3.0",
|
|
80
|
-
"@so1ve/eslint-plugin-sort-imports": "3.
|
|
81
|
-
"@so1ve/eslint-plugin": "3.
|
|
80
|
+
"@so1ve/eslint-plugin-sort-imports": "3.18.1",
|
|
81
|
+
"@so1ve/eslint-plugin": "3.18.1"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"eslint": "^9.39.1",
|