@so1ve/eslint-config 4.1.6 → 4.1.8
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.mts +1 -1
- package/dist/index.mjs +1 -2
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -16305,7 +16305,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
16305
16305
|
onlyEquality?: boolean;
|
|
16306
16306
|
}];
|
|
16307
16307
|
// Names of all the configs
|
|
16308
|
-
type ConfigNames = 'so1ve/ignores' | 'so1ve/javascript/setup' | 'so1ve/javascript/rules' | 'so1ve/javascript/regexp' | 'so1ve/javascript/cli' | 'so1ve/comments/setup' | 'so1ve/comments/rules' | 'so1ve/node/setup' | 'so1ve/node/rules' | 'so1ve/only-error' | 'so1ve/promise/setup' | 'so1ve/promise/rules' | 'so1ve/sort-imports/rules' | 'so1ve/imports/setup' | 'so1ve/imports/rules' | 'so1ve/imports/rules/dts' | 'so1ve/unicorn/setup' | 'so1ve/unicorn/rules' | 'so1ve/command' | 'so1ve/de-morgan' | 'so1ve/pnpm/package-json' | 'so1ve/pnpm/pnpm-workspace-yaml' | 'so1ve/yaml/pnpm-workspace-yaml-sort' | 'so1ve/
|
|
16308
|
+
type ConfigNames = 'so1ve/ignores' | 'so1ve/javascript/setup' | 'so1ve/javascript/rules' | 'so1ve/javascript/regexp' | 'so1ve/javascript/cli' | 'so1ve/comments/setup' | 'so1ve/comments/rules' | 'so1ve/node/setup' | 'so1ve/node/rules' | 'so1ve/only-error' | 'so1ve/promise/setup' | 'so1ve/promise/rules' | 'so1ve/sort-imports/rules' | 'so1ve/imports/setup' | 'so1ve/imports/rules' | 'so1ve/imports/rules/dts' | 'so1ve/unicorn/setup' | 'so1ve/unicorn/rules' | 'so1ve/command' | 'so1ve/de-morgan' | 'so1ve/pnpm/package-json' | 'so1ve/pnpm/pnpm-workspace-yaml' | 'so1ve/yaml/pnpm-workspace-yaml-sort' | 'so1ve/typescript/setup' | 'so1ve/typescript/rules' | 'so1ve/typescript/rules/type-aware' | 'so1ve/typescript/rules/dts' | 'so1ve/typescript/rules/js' | 'so1ve/test/setup' | 'so1ve/test/rules' | 'antfu/astro/setup' | 'antfu/astro/rules' | 'so1ve/vue/setup' | 'so1ve/vue/rules' | 'so1ve/solid/setup' | 'so1ve/solid/rules' | 'so1ve/formatting/setup' | 'so1ve/formatting/rules' | 'so1ve/formatting/rules/sort-package-json' | 'so1ve/formatting/rules/sort-tsconfig' | 'so1ve/formatting/rules/test' | 'so1ve/perfectionist/setup' | 'so1ve/perfectionist/rules' | 'so1ve/html/setup' | 'so1ve/html/rules' | 'so1ve/jsonc/setup' | 'so1ve/jsonc/rules' | 'so1ve/toml/setup' | 'so1ve/toml/rules' | 'so1ve/yaml/setup' | 'so1ve/yaml/rules' | 'so1ve/mdx/setup' | 'so1ve/mdx/rules';
|
|
16309
16309
|
//#endregion
|
|
16310
16310
|
//#region src/types.d.ts
|
|
16311
16311
|
type MaybePromise<T> = T | Promise<T>;
|
package/dist/index.mjs
CHANGED
|
@@ -1974,7 +1974,6 @@ const unicorn = () => [{
|
|
|
1974
1974
|
"unicorn/no-useless-collection-argument": "error",
|
|
1975
1975
|
"unicorn/no-useless-spread": "error",
|
|
1976
1976
|
"unicorn/no-zero-fractions": "error",
|
|
1977
|
-
"unicorn/number-literal-case": "error",
|
|
1978
1977
|
"unicorn/numeric-separators-style": "error",
|
|
1979
1978
|
"unicorn/prefer-array-find": "error",
|
|
1980
1979
|
"unicorn/prefer-array-flat": "error",
|
|
@@ -2258,7 +2257,6 @@ function so1ve(options = {}, ...userConfigs) {
|
|
|
2258
2257
|
...typeof enablePnpm === "boolean" ? {} : enablePnpm
|
|
2259
2258
|
}));
|
|
2260
2259
|
if (enableVue) componentExts.push("vue");
|
|
2261
|
-
if (options.html ?? true) configs$1.push(html());
|
|
2262
2260
|
if (enableTypeScript) configs$1.push(typescript({
|
|
2263
2261
|
componentExts,
|
|
2264
2262
|
overrides: getOverrides(options, "typescript")
|
|
@@ -2275,6 +2273,7 @@ function so1ve(options = {}, ...userConfigs) {
|
|
|
2275
2273
|
}));
|
|
2276
2274
|
if (options.formatting ?? true) configs$1.push(formatting(options));
|
|
2277
2275
|
if (options.perfectionist ?? true) configs$1.push(perfectionist());
|
|
2276
|
+
if (options.html ?? true) configs$1.push(html());
|
|
2278
2277
|
if (options.jsonc ?? true) configs$1.push(jsonc());
|
|
2279
2278
|
if (options.toml ?? true) configs$1.push(toml({ overrides: getOverrides(options, "toml") }));
|
|
2280
2279
|
if (options.yaml ?? true) configs$1.push(yaml({ overrides: getOverrides(options, "yaml") }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@so1ve/eslint-config",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.8",
|
|
4
4
|
"author": "Ray <i@mk1.io> (https://github.com/so1ve/)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Ray's eslint config.",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"typescript-eslint": "^8.50.1",
|
|
77
77
|
"vue-eslint-parser": "^10.2.0",
|
|
78
78
|
"yaml-eslint-parser": "^1.3.2",
|
|
79
|
-
"@so1ve/eslint-plugin": "4.1.
|
|
79
|
+
"@so1ve/eslint-plugin": "4.1.8"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"eslint-plugin-de-morgan": "^2.0.0",
|