@sxzz/eslint-config 7.2.10 → 7.3.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/README.md +1 -1
- package/dist/index.d.mts +82 -10
- package/dist/index.mjs +19 -3
- package/package.json +11 -10
package/README.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -516,6 +516,11 @@ interface Rules {
|
|
|
516
516
|
*/
|
|
517
517
|
"@typescript-eslint/no-unused-expressions"?: Linter.RuleEntry<TypescriptEslintNoUnusedExpressions>;
|
|
518
518
|
/**
|
|
519
|
+
* Disallow unused private class members
|
|
520
|
+
* @see https://typescript-eslint.io/rules/no-unused-private-class-members
|
|
521
|
+
*/
|
|
522
|
+
"@typescript-eslint/no-unused-private-class-members"?: Linter.RuleEntry<[]>;
|
|
523
|
+
/**
|
|
519
524
|
* Disallow unused variables
|
|
520
525
|
* @see https://typescript-eslint.io/rules/no-unused-vars
|
|
521
526
|
*/
|
|
@@ -835,6 +840,26 @@ interface Rules {
|
|
|
835
840
|
*/
|
|
836
841
|
"arrow-spacing"?: Linter.RuleEntry<ArrowSpacing>;
|
|
837
842
|
/**
|
|
843
|
+
* disallow BigInt64Array/BigUint64Array usage
|
|
844
|
+
*/
|
|
845
|
+
"baseline-js/no-bigint64array"?: Linter.RuleEntry<[]>;
|
|
846
|
+
/**
|
|
847
|
+
* disallow Function#caller and Function#arguments
|
|
848
|
+
*/
|
|
849
|
+
"baseline-js/no-function-caller-arguments"?: Linter.RuleEntry<[]>;
|
|
850
|
+
/**
|
|
851
|
+
* disallow Math.sumPrecise() usage
|
|
852
|
+
*/
|
|
853
|
+
"baseline-js/no-math-sum-precise"?: Linter.RuleEntry<[]>;
|
|
854
|
+
/**
|
|
855
|
+
* disallow Temporal API usage
|
|
856
|
+
*/
|
|
857
|
+
"baseline-js/no-temporal"?: Linter.RuleEntry<[]>;
|
|
858
|
+
/**
|
|
859
|
+
* Enforce JS Baseline by delegating to underlying syntax rules (es-x)
|
|
860
|
+
*/
|
|
861
|
+
"baseline-js/use-baseline"?: Linter.RuleEntry<BaselineJsUseBaseline>;
|
|
862
|
+
/**
|
|
838
863
|
* Enforce the use of variables within the scope they are defined
|
|
839
864
|
* @see https://eslint.org/docs/latest/rules/block-scoped-var
|
|
840
865
|
*/
|
|
@@ -1580,6 +1605,11 @@ interface Rules {
|
|
|
1580
1605
|
*/
|
|
1581
1606
|
"jsdoc/require-property-type"?: Linter.RuleEntry<[]>;
|
|
1582
1607
|
/**
|
|
1608
|
+
* Requires that Promise rejections are documented with `@rejects` tags.
|
|
1609
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-rejects.md#repos-sticky-header
|
|
1610
|
+
*/
|
|
1611
|
+
"jsdoc/require-rejects"?: Linter.RuleEntry<JsdocRequireRejects>;
|
|
1612
|
+
/**
|
|
1583
1613
|
* Requires that returns are documented with `@returns`.
|
|
1584
1614
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns.md#repos-sticky-header
|
|
1585
1615
|
*/
|
|
@@ -5220,6 +5250,11 @@ interface Rules {
|
|
|
5220
5250
|
*/
|
|
5221
5251
|
"vue/no-duplicate-attributes"?: Linter.RuleEntry<VueNoDuplicateAttributes>;
|
|
5222
5252
|
/**
|
|
5253
|
+
* disallow duplication of class names in class attributes
|
|
5254
|
+
* @see https://eslint.vuejs.org/rules/no-duplicate-class-names.html
|
|
5255
|
+
*/
|
|
5256
|
+
"vue/no-duplicate-class-names"?: Linter.RuleEntry<[]>;
|
|
5257
|
+
/**
|
|
5223
5258
|
* disallow the `<template>` `<script>` `<style>` block to be empty
|
|
5224
5259
|
* @see https://eslint.vuejs.org/rules/no-empty-component-block.html
|
|
5225
5260
|
*/
|
|
@@ -7118,6 +7153,26 @@ type ArrowSpacing = [] | [{
|
|
|
7118
7153
|
before?: boolean;
|
|
7119
7154
|
after?: boolean;
|
|
7120
7155
|
}];
|
|
7156
|
+
type BaselineJsUseBaseline = [] | [{
|
|
7157
|
+
baseline?: (("widely" | "newly") | number);
|
|
7158
|
+
available?: (("widely" | "newly") | number);
|
|
7159
|
+
ignoreFeatures?: string[];
|
|
7160
|
+
ignoreNodeTypes?: string[];
|
|
7161
|
+
includeWebApis?: (boolean | {
|
|
7162
|
+
preset?: ("auto" | "safe" | "type-aware" | "heuristic");
|
|
7163
|
+
useTypes?: ("off" | "auto" | "require");
|
|
7164
|
+
heuristics?: ("off" | "conservative" | "aggressive");
|
|
7165
|
+
only?: string[];
|
|
7166
|
+
ignore?: string[];
|
|
7167
|
+
});
|
|
7168
|
+
includeJsBuiltins?: (boolean | {
|
|
7169
|
+
preset?: ("auto" | "safe" | "type-aware" | "heuristic");
|
|
7170
|
+
useTypes?: ("off" | "auto" | "require");
|
|
7171
|
+
heuristics?: ("off" | "conservative" | "aggressive");
|
|
7172
|
+
only?: string[];
|
|
7173
|
+
ignore?: string[];
|
|
7174
|
+
});
|
|
7175
|
+
}];
|
|
7121
7176
|
type BlockSpacing = [] | [("always" | "never")];
|
|
7122
7177
|
type BraceStyle = [] | [("1tbs" | "stroustrup" | "allman")] | [("1tbs" | "stroustrup" | "allman"), {
|
|
7123
7178
|
allowSingleLine?: boolean;
|
|
@@ -7559,6 +7614,7 @@ type JsdocCheckExamples = [] | [{
|
|
|
7559
7614
|
reportUnusedDisableDirectives?: boolean;
|
|
7560
7615
|
}];
|
|
7561
7616
|
type JsdocCheckIndentation = [] | [{
|
|
7617
|
+
allowIndentedSections?: boolean;
|
|
7562
7618
|
excludeTags?: string[];
|
|
7563
7619
|
}];
|
|
7564
7620
|
type JsdocCheckLineAlignment = [] | [("always" | "never" | "any")] | [("always" | "never" | "any"), {
|
|
@@ -7870,6 +7926,13 @@ type JsdocRequireParamType = [] | [{
|
|
|
7870
7926
|
defaultDestructuredRootType?: string;
|
|
7871
7927
|
setDefaultDestructuredRootType?: boolean;
|
|
7872
7928
|
}];
|
|
7929
|
+
type JsdocRequireRejects = [] | [{
|
|
7930
|
+
contexts?: (string | {
|
|
7931
|
+
comment?: string;
|
|
7932
|
+
context?: string;
|
|
7933
|
+
})[];
|
|
7934
|
+
exemptedBy?: string[];
|
|
7935
|
+
}];
|
|
7873
7936
|
type JsdocRequireReturns = [] | [{
|
|
7874
7937
|
checkConstructors?: boolean;
|
|
7875
7938
|
checkGetters?: boolean;
|
|
@@ -7950,6 +8013,9 @@ type JsdocSortTags = [] | [{
|
|
|
7950
8013
|
linesBetween?: number;
|
|
7951
8014
|
reportIntraTagGroupSpacing?: boolean;
|
|
7952
8015
|
reportTagGroupSpacing?: boolean;
|
|
8016
|
+
tagExceptions?: {
|
|
8017
|
+
[k: string]: number;
|
|
8018
|
+
};
|
|
7953
8019
|
tagSequence?: {
|
|
7954
8020
|
tags?: string[];
|
|
7955
8021
|
}[];
|
|
@@ -12874,7 +12940,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
12874
12940
|
exceptRange?: boolean;
|
|
12875
12941
|
onlyEquality?: boolean;
|
|
12876
12942
|
}];
|
|
12877
|
-
type ConfigNames = "sxzz/global-ignores" | "sxzz/gitignore" | "sxzz/js/recommended" | "sxzz/js" | "sxzz/comments/recommended" | "sxzz/comments" | "sxzz/imports" | "sxzz/unicorn/unopinionated" | "sxzz/unicorn" | "sxzz/node" | "sxzz/jsdoc" | "sxzz/regexp" | "sxzz/de-morgan" | "sxzz/typescript > typescript-eslint/base" | "sxzz/typescript > typescript-eslint/eslint-recommended" | "sxzz/typescript > typescript-eslint/recommended" | "sxzz/typescript" | "sxzz/typescript/dts-rules" | "sxzz/typescript/cjs-rules" | "sxzz/sort/imports" | "sxzz/markdown/recommended/plugin" | "sxzz/markdown/recommended/processor" | "sxzz/markdown/recommended/code-blocks" | "sxzz/markdown-rules" | "sxzz/yaml/setup" | "sxzz/yaml/rules" | "sxzz/json" | "sxzz/sort/package.json" | "sxzz/sort/tsconfig" | "sxzz/sort/pnpm-workspace" | "sxzz/vue/typescript > typescript-eslint/base" | "sxzz/vue/typescript > typescript-eslint/eslint-recommended" | "sxzz/vue/typescript > typescript-eslint/recommended" | "sxzz/vue/typescript" | "sxzz/vue" | "sxzz/vue/reactivity-transform" | "sxzz/unocss" | "sxzz/prettier" | "sxzz/command" | "sxzz/pnpm/package-json" | "sxzz/pnpm/pnpm-workspace-yaml" | "sxzz/special/cli" | "sxzz/special/tests" | "sxzz/special/allow-default-export" | "sxzz/special/github" | "sxzz/special/components";
|
|
12943
|
+
type ConfigNames = "sxzz/global-ignores" | "sxzz/gitignore" | "sxzz/js/recommended" | "sxzz/js" | "sxzz/comments/recommended" | "sxzz/comments" | "sxzz/imports" | "sxzz/unicorn/unopinionated" | "sxzz/unicorn" | "sxzz/node" | "sxzz/jsdoc" | "sxzz/regexp" | "sxzz/de-morgan" | "sxzz/typescript > typescript-eslint/base" | "sxzz/typescript > typescript-eslint/eslint-recommended" | "sxzz/typescript > typescript-eslint/recommended" | "sxzz/typescript" | "sxzz/typescript/dts-rules" | "sxzz/typescript/cjs-rules" | "sxzz/sort/imports" | "sxzz/markdown/recommended/plugin" | "sxzz/markdown/recommended/processor" | "sxzz/markdown/recommended/code-blocks" | "sxzz/markdown-rules" | "sxzz/yaml/setup" | "sxzz/yaml/rules" | "sxzz/json" | "sxzz/sort/package.json" | "sxzz/sort/tsconfig" | "sxzz/sort/pnpm-workspace" | "sxzz/vue/typescript > typescript-eslint/base" | "sxzz/vue/typescript > typescript-eslint/eslint-recommended" | "sxzz/vue/typescript > typescript-eslint/recommended" | "sxzz/vue/typescript" | "sxzz/vue" | "sxzz/vue/reactivity-transform" | "sxzz/unocss" | "sxzz/prettier" | "sxzz/command" | "sxzz/pnpm/package-json" | "sxzz/pnpm/pnpm-workspace-yaml" | "sxzz/baseline" | "sxzz/special/cli" | "sxzz/special/tests" | "sxzz/special/allow-default-export" | "sxzz/special/github" | "sxzz/special/components";
|
|
12878
12944
|
//#endregion
|
|
12879
12945
|
//#region src/types.d.ts
|
|
12880
12946
|
type Config = Omit<Linter.Config<Linter.RulesRecord & Rules>, "plugins"> & {
|
|
@@ -12886,6 +12952,9 @@ type Config = Omit<Linter.Config<Linter.RulesRecord & Rules>, "plugins"> & {
|
|
|
12886
12952
|
plugins?: Record<string, any>;
|
|
12887
12953
|
};
|
|
12888
12954
|
//#endregion
|
|
12955
|
+
//#region src/configs/baseline.d.ts
|
|
12956
|
+
declare const baseline: () => Config[];
|
|
12957
|
+
//#endregion
|
|
12889
12958
|
//#region src/configs/command.d.ts
|
|
12890
12959
|
declare const command: () => Config[];
|
|
12891
12960
|
//#endregion
|
|
@@ -13002,19 +13071,22 @@ declare const presetBasic: () => Config[];
|
|
|
13002
13071
|
*/
|
|
13003
13072
|
declare const presetAll: () => Promise<Config[]>;
|
|
13004
13073
|
interface Options {
|
|
13005
|
-
/**
|
|
13006
|
-
|
|
13007
|
-
/**
|
|
13008
|
-
|
|
13009
|
-
/** markdown support.
|
|
13074
|
+
/** @default true */
|
|
13075
|
+
baseline?: boolean;
|
|
13076
|
+
/** @default true */
|
|
13077
|
+
command?: boolean;
|
|
13078
|
+
/** markdown support. @default true */
|
|
13010
13079
|
markdown?: boolean;
|
|
13080
|
+
/** @default false */
|
|
13081
|
+
pnpm?: boolean;
|
|
13082
|
+
/** Prettier support. @default true */
|
|
13083
|
+
prettier?: boolean;
|
|
13011
13084
|
/** UnoCSS support. Auto-enable if detected. */
|
|
13012
13085
|
unocss?: boolean;
|
|
13013
|
-
|
|
13014
|
-
|
|
13015
|
-
pnpm?: boolean;
|
|
13086
|
+
/** Vue support. Auto-enable if detected. */
|
|
13087
|
+
vue?: boolean;
|
|
13016
13088
|
}
|
|
13017
13089
|
/** `@sxzz`'s preset. */
|
|
13018
13090
|
declare function sxzz(options?: Options, ...userConfigs: Awaitable<Arrayable<Config> | FlatConfigComposer<any, any> | Linter.Config[]>[]): FlatConfigComposer<Config, ConfigNames>;
|
|
13019
13091
|
//#endregion
|
|
13020
|
-
export { Config, ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, Options, Rules, command, comments, configCommand, configComments, configJs, deMorgan, hasTypeScript, hasUnocss, hasVue, ignores, imports, isInEditorEnv, isInGitHooksOrLintStaged, javascript, jsdoc, jsonc, markdown, node, parserJsonc, parserVue, parserYml, pluginAntfu, pluginDeMorgan, pluginIgnore, pluginImport, pluginJsdoc, pluginJsonc, pluginMarkdown, pluginNode, pluginPerfectionist, pluginPnpm, pluginPrettier, pluginPrettierRecommended, pluginSxzz, pluginUnicorn, pluginUnusedImports, pluginVue, pluginYml, pnpm, presetAll, presetBasic, presetJavaScript, presetJsonc, presetLangsExtensions, prettier, reactivityTransform, regexp, restrictedSyntaxJs, sortImports, sortPackageJson, sortPnpmWorkspace, sortTsconfig, specialCases, sxzz, tseslint, typescript, typescriptCore, unicorn, unocss, vue, yml };
|
|
13092
|
+
export { Config, ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, Options, Rules, baseline, command, comments, configCommand, configComments, configJs, deMorgan, hasTypeScript, hasUnocss, hasVue, ignores, imports, isInEditorEnv, isInGitHooksOrLintStaged, javascript, jsdoc, jsonc, markdown, node, parserJsonc, parserVue, parserYml, pluginAntfu, pluginDeMorgan, pluginIgnore, pluginImport, pluginJsdoc, pluginJsonc, pluginMarkdown, pluginNode, pluginPerfectionist, pluginPnpm, pluginPrettier, pluginPrettierRecommended, pluginSxzz, pluginUnicorn, pluginUnusedImports, pluginVue, pluginYml, pnpm, presetAll, presetBasic, presetJavaScript, presetJsonc, presetLangsExtensions, prettier, reactivityTransform, regexp, restrictedSyntaxJs, sortImports, sortPackageJson, sortPnpmWorkspace, sortTsconfig, specialCases, sxzz, tseslint, typescript, typescriptCore, unicorn, unocss, vue, yml };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createRequire as __cjs_createRequire } from "node:module";
|
|
2
2
|
const __cjs_require = __cjs_createRequire(import.meta.url);
|
|
3
|
+
import baselineJs from "eslint-plugin-baseline-js";
|
|
3
4
|
import pluginAntfu from "eslint-plugin-antfu";
|
|
4
5
|
import pluginSxzz from "eslint-plugin-sxzz";
|
|
5
6
|
import pluginMarkdown from "@eslint/markdown";
|
|
@@ -35,6 +36,17 @@ import process from "node:process";
|
|
|
35
36
|
import { isPackageExists } from "local-pkg";
|
|
36
37
|
import { FlatConfigComposer } from "eslint-flat-config-utils";
|
|
37
38
|
|
|
39
|
+
//#region src/configs/baseline.ts
|
|
40
|
+
const baseline = () => [{
|
|
41
|
+
name: "sxzz/baseline",
|
|
42
|
+
plugins: { "baseline-js": baselineJs },
|
|
43
|
+
rules: { "baseline-js/use-baseline": ["warn", {
|
|
44
|
+
includeJsBuiltins: { preset: "auto" },
|
|
45
|
+
includeWebApis: { preset: "auto" }
|
|
46
|
+
}] }
|
|
47
|
+
}];
|
|
48
|
+
|
|
49
|
+
//#endregion
|
|
38
50
|
//#region src/configs/command.ts
|
|
39
51
|
const command = () => [{
|
|
40
52
|
...configCommand(),
|
|
@@ -304,6 +316,7 @@ const markdown = () => [...pluginMarkdown.configs.processor.map((config) => ({
|
|
|
304
316
|
"@typescript-eslint/no-unused-expressions": "off",
|
|
305
317
|
"@typescript-eslint/no-unused-vars": "off",
|
|
306
318
|
"@typescript-eslint/no-use-before-define": "off",
|
|
319
|
+
"baseline-js/use-baseline": "off",
|
|
307
320
|
"no-alert": "off",
|
|
308
321
|
"no-console": "off",
|
|
309
322
|
"no-restricted-imports": "off",
|
|
@@ -647,6 +660,7 @@ const specialCases = () => [
|
|
|
647
660
|
files: [`**/*.{test,spec}.${GLOB_SRC_EXT}`],
|
|
648
661
|
name: "sxzz/special/tests",
|
|
649
662
|
rules: {
|
|
663
|
+
"baseline-js/use-baseline": "off",
|
|
650
664
|
"no-unused-expressions": "off",
|
|
651
665
|
"unicorn/consistent-function-scoping": "off"
|
|
652
666
|
}
|
|
@@ -655,7 +669,7 @@ const specialCases = () => [
|
|
|
655
669
|
files: [
|
|
656
670
|
`**/*config*.${GLOB_SRC_EXT}`,
|
|
657
671
|
`**/{views,pages,routes,middleware,plugins,api,modules}/${GLOB_SRC}`,
|
|
658
|
-
`**/{index,vite,esbuild,rollup,rolldown,webpack,rspack,farm,unloader}.${GLOB_SRC_EXT}`,
|
|
672
|
+
`**/{index,vite,esbuild,rollup,rolldown,webpack,rspack,farm,unloader,nuxt}.${GLOB_SRC_EXT}`,
|
|
659
673
|
"**/*.d.ts",
|
|
660
674
|
`${GLOB_MARKDOWN}/**`,
|
|
661
675
|
"**/.prettierrc*"
|
|
@@ -955,11 +969,12 @@ const presetAll = async () => [
|
|
|
955
969
|
...prettier(),
|
|
956
970
|
...command(),
|
|
957
971
|
...await pnpm(),
|
|
972
|
+
...baseline(),
|
|
958
973
|
...specialCases()
|
|
959
974
|
];
|
|
960
975
|
/** `@sxzz`'s preset. */
|
|
961
976
|
function sxzz(options = {}, ...userConfigs) {
|
|
962
|
-
const { command: enableCommand = true, markdown: enableMarkdown = true, pnpm: enablePnpm = false, prettier: enablePrettier = true, unocss: enableUnocss = hasUnocss(), vue: enableVue = hasVue() } = options;
|
|
977
|
+
const { baseline: enableBaseline = true, command: enableCommand = true, markdown: enableMarkdown = true, pnpm: enablePnpm = false, prettier: enablePrettier = true, unocss: enableUnocss = hasUnocss(), vue: enableVue = hasVue() } = options;
|
|
963
978
|
const configs$1 = [
|
|
964
979
|
presetBasic(),
|
|
965
980
|
yml(),
|
|
@@ -971,9 +986,10 @@ function sxzz(options = {}, ...userConfigs) {
|
|
|
971
986
|
if (enablePrettier) configs$1.push(prettier());
|
|
972
987
|
if (enableCommand) configs$1.push(command());
|
|
973
988
|
if (enablePnpm) configs$1.push(pnpm());
|
|
989
|
+
if (enableBaseline) configs$1.push(baseline());
|
|
974
990
|
configs$1.push(specialCases());
|
|
975
991
|
return new FlatConfigComposer(...configs$1, ...userConfigs);
|
|
976
992
|
}
|
|
977
993
|
|
|
978
994
|
//#endregion
|
|
979
|
-
export { GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, command, comments, configCommand, configComments, configJs, deMorgan, hasTypeScript, hasUnocss, hasVue, ignores, imports, isInEditorEnv, isInGitHooksOrLintStaged, javascript, jsdoc, jsonc, markdown, node, parserJsonc, parserVue, parserYml, pluginAntfu, pluginDeMorgan, pluginIgnore, pluginImport, pluginJsdoc, pluginJsonc, pluginMarkdown, pluginNode, pluginPerfectionist, pluginPnpm, pluginPrettier, pluginPrettierRecommended, pluginSxzz, pluginUnicorn, pluginUnusedImports, pluginVue, pluginYml, pnpm, presetAll, presetBasic, presetJavaScript, presetJsonc, presetLangsExtensions, prettier, reactivityTransform, regexp, restrictedSyntaxJs, sortImports, sortPackageJson, sortPnpmWorkspace, sortTsconfig, specialCases, sxzz, tseslint, typescript, typescriptCore, unicorn, unocss, vue, yml };
|
|
995
|
+
export { GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, baseline, command, comments, configCommand, configComments, configJs, deMorgan, hasTypeScript, hasUnocss, hasVue, ignores, imports, isInEditorEnv, isInGitHooksOrLintStaged, javascript, jsdoc, jsonc, markdown, node, parserJsonc, parserVue, parserYml, pluginAntfu, pluginDeMorgan, pluginIgnore, pluginImport, pluginJsdoc, pluginJsonc, pluginMarkdown, pluginNode, pluginPerfectionist, pluginPnpm, pluginPrettier, pluginPrettierRecommended, pluginSxzz, pluginUnicorn, pluginUnusedImports, pluginVue, pluginYml, pnpm, presetAll, presetBasic, presetJavaScript, presetJsonc, presetLangsExtensions, prettier, reactivityTransform, regexp, restrictedSyntaxJs, sortImports, sortPackageJson, sortPnpmWorkspace, sortTsconfig, specialCases, sxzz, tseslint, typescript, typescriptCore, unicorn, unocss, vue, yml };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sxzz/eslint-config",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.1",
|
|
4
4
|
"description": "ESLint config for @sxzz.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,10 +44,11 @@
|
|
|
44
44
|
"eslint-config-prettier": "^10.1.8",
|
|
45
45
|
"eslint-flat-config-utils": "^2.1.4",
|
|
46
46
|
"eslint-plugin-antfu": "^3.1.1",
|
|
47
|
+
"eslint-plugin-baseline-js": "^0.4.1",
|
|
47
48
|
"eslint-plugin-command": "^3.3.1",
|
|
48
49
|
"eslint-plugin-de-morgan": "^2.0.0",
|
|
49
50
|
"eslint-plugin-import-x": "^4.16.1",
|
|
50
|
-
"eslint-plugin-jsdoc": "^61.
|
|
51
|
+
"eslint-plugin-jsdoc": "^61.4.0",
|
|
51
52
|
"eslint-plugin-jsonc": "^2.21.0",
|
|
52
53
|
"eslint-plugin-n": "^17.23.1",
|
|
53
54
|
"eslint-plugin-perfectionist": "^4.15.1",
|
|
@@ -57,28 +58,28 @@
|
|
|
57
58
|
"eslint-plugin-sxzz": "^0.4.1",
|
|
58
59
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
59
60
|
"eslint-plugin-unused-imports": "^4.3.0",
|
|
60
|
-
"eslint-plugin-vue": "^10.
|
|
61
|
+
"eslint-plugin-vue": "^10.6.0",
|
|
61
62
|
"eslint-plugin-yml": "^1.19.0",
|
|
62
63
|
"globals": "^16.5.0",
|
|
63
64
|
"jsonc-eslint-parser": "^2.4.1",
|
|
64
65
|
"local-pkg": "^1.1.2",
|
|
65
66
|
"prettier": "^3.6.2",
|
|
66
|
-
"typescript-eslint": "^8.
|
|
67
|
+
"typescript-eslint": "^8.47.0",
|
|
67
68
|
"vue-eslint-parser": "^10.2.0",
|
|
68
69
|
"yaml-eslint-parser": "^1.3.0"
|
|
69
70
|
},
|
|
70
71
|
"devDependencies": {
|
|
71
|
-
"@eslint/config-inspector": "^1.
|
|
72
|
-
"@sxzz/prettier-config": "^2.2.
|
|
73
|
-
"@types/node": "^24.10.
|
|
74
|
-
"@unocss/eslint-plugin": "^66.5.
|
|
72
|
+
"@eslint/config-inspector": "^1.4.1",
|
|
73
|
+
"@sxzz/prettier-config": "^2.2.5",
|
|
74
|
+
"@types/node": "^24.10.1",
|
|
75
|
+
"@unocss/eslint-plugin": "^66.5.9",
|
|
75
76
|
"bumpp": "^10.3.1",
|
|
76
77
|
"eslint": "^9.39.1",
|
|
77
78
|
"eslint-typegen": "^2.3.0",
|
|
78
79
|
"rolldown-plugin-require-cjs": "^0.3.1",
|
|
79
|
-
"tsdown": "^0.16.
|
|
80
|
+
"tsdown": "^0.16.6",
|
|
80
81
|
"typescript": "^5.9.3",
|
|
81
|
-
"unrun": "^0.2.
|
|
82
|
+
"unrun": "^0.2.11"
|
|
82
83
|
},
|
|
83
84
|
"engines": {
|
|
84
85
|
"node": ">=20.0.0"
|