@sxzz/eslint-config 7.3.0 → 7.3.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.mts +18 -0
- package/dist/index.mjs +4 -2
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -1605,6 +1605,11 @@ interface Rules {
|
|
|
1605
1605
|
*/
|
|
1606
1606
|
"jsdoc/require-property-type"?: Linter.RuleEntry<[]>;
|
|
1607
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
|
+
/**
|
|
1608
1613
|
* Requires that returns are documented with `@returns`.
|
|
1609
1614
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns.md#repos-sticky-header
|
|
1610
1615
|
*/
|
|
@@ -5245,6 +5250,11 @@ interface Rules {
|
|
|
5245
5250
|
*/
|
|
5246
5251
|
"vue/no-duplicate-attributes"?: Linter.RuleEntry<VueNoDuplicateAttributes>;
|
|
5247
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
|
+
/**
|
|
5248
5258
|
* disallow the `<template>` `<script>` `<style>` block to be empty
|
|
5249
5259
|
* @see https://eslint.vuejs.org/rules/no-empty-component-block.html
|
|
5250
5260
|
*/
|
|
@@ -7604,6 +7614,7 @@ type JsdocCheckExamples = [] | [{
|
|
|
7604
7614
|
reportUnusedDisableDirectives?: boolean;
|
|
7605
7615
|
}];
|
|
7606
7616
|
type JsdocCheckIndentation = [] | [{
|
|
7617
|
+
allowIndentedSections?: boolean;
|
|
7607
7618
|
excludeTags?: string[];
|
|
7608
7619
|
}];
|
|
7609
7620
|
type JsdocCheckLineAlignment = [] | [("always" | "never" | "any")] | [("always" | "never" | "any"), {
|
|
@@ -7915,6 +7926,13 @@ type JsdocRequireParamType = [] | [{
|
|
|
7915
7926
|
defaultDestructuredRootType?: string;
|
|
7916
7927
|
setDefaultDestructuredRootType?: boolean;
|
|
7917
7928
|
}];
|
|
7929
|
+
type JsdocRequireRejects = [] | [{
|
|
7930
|
+
contexts?: (string | {
|
|
7931
|
+
comment?: string;
|
|
7932
|
+
context?: string;
|
|
7933
|
+
})[];
|
|
7934
|
+
exemptedBy?: string[];
|
|
7935
|
+
}];
|
|
7918
7936
|
type JsdocRequireReturns = [] | [{
|
|
7919
7937
|
checkConstructors?: boolean;
|
|
7920
7938
|
checkGetters?: boolean;
|
package/dist/index.mjs
CHANGED
|
@@ -316,6 +316,7 @@ const markdown = () => [...pluginMarkdown.configs.processor.map((config) => ({
|
|
|
316
316
|
"@typescript-eslint/no-unused-expressions": "off",
|
|
317
317
|
"@typescript-eslint/no-unused-vars": "off",
|
|
318
318
|
"@typescript-eslint/no-use-before-define": "off",
|
|
319
|
+
"baseline-js/use-baseline": "off",
|
|
319
320
|
"no-alert": "off",
|
|
320
321
|
"no-console": "off",
|
|
321
322
|
"no-restricted-imports": "off",
|
|
@@ -659,6 +660,7 @@ const specialCases = () => [
|
|
|
659
660
|
files: [`**/*.{test,spec}.${GLOB_SRC_EXT}`],
|
|
660
661
|
name: "sxzz/special/tests",
|
|
661
662
|
rules: {
|
|
663
|
+
"baseline-js/use-baseline": "off",
|
|
662
664
|
"no-unused-expressions": "off",
|
|
663
665
|
"unicorn/consistent-function-scoping": "off"
|
|
664
666
|
}
|
|
@@ -667,7 +669,7 @@ const specialCases = () => [
|
|
|
667
669
|
files: [
|
|
668
670
|
`**/*config*.${GLOB_SRC_EXT}`,
|
|
669
671
|
`**/{views,pages,routes,middleware,plugins,api,modules}/${GLOB_SRC}`,
|
|
670
|
-
`**/{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}`,
|
|
671
673
|
"**/*.d.ts",
|
|
672
674
|
`${GLOB_MARKDOWN}/**`,
|
|
673
675
|
"**/.prettierrc*"
|
|
@@ -978,13 +980,13 @@ function sxzz(options = {}, ...userConfigs) {
|
|
|
978
980
|
yml(),
|
|
979
981
|
presetJsonc()
|
|
980
982
|
];
|
|
983
|
+
if (enableBaseline) configs$1.push(baseline());
|
|
981
984
|
if (enableVue) configs$1.push(vue());
|
|
982
985
|
if (enableMarkdown) configs$1.push(markdown());
|
|
983
986
|
if (enableUnocss) configs$1.push(unocss());
|
|
984
987
|
if (enablePrettier) configs$1.push(prettier());
|
|
985
988
|
if (enableCommand) configs$1.push(command());
|
|
986
989
|
if (enablePnpm) configs$1.push(pnpm());
|
|
987
|
-
if (enableBaseline) configs$1.push(baseline());
|
|
988
990
|
configs$1.push(specialCases());
|
|
989
991
|
return new FlatConfigComposer(...configs$1, ...userConfigs);
|
|
990
992
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sxzz/eslint-config",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.2",
|
|
4
4
|
"description": "ESLint config for @sxzz.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,11 +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.
|
|
47
|
+
"eslint-plugin-baseline-js": "^0.4.1",
|
|
48
48
|
"eslint-plugin-command": "^3.3.1",
|
|
49
49
|
"eslint-plugin-de-morgan": "^2.0.0",
|
|
50
50
|
"eslint-plugin-import-x": "^4.16.1",
|
|
51
|
-
"eslint-plugin-jsdoc": "^61.
|
|
51
|
+
"eslint-plugin-jsdoc": "^61.4.0",
|
|
52
52
|
"eslint-plugin-jsonc": "^2.21.0",
|
|
53
53
|
"eslint-plugin-n": "^17.23.1",
|
|
54
54
|
"eslint-plugin-perfectionist": "^4.15.1",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"eslint-plugin-sxzz": "^0.4.1",
|
|
59
59
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
60
60
|
"eslint-plugin-unused-imports": "^4.3.0",
|
|
61
|
-
"eslint-plugin-vue": "^10.
|
|
61
|
+
"eslint-plugin-vue": "^10.6.0",
|
|
62
62
|
"eslint-plugin-yml": "^1.19.0",
|
|
63
63
|
"globals": "^16.5.0",
|
|
64
64
|
"jsonc-eslint-parser": "^2.4.1",
|
|
@@ -69,17 +69,17 @@
|
|
|
69
69
|
"yaml-eslint-parser": "^1.3.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@eslint/config-inspector": "^1.
|
|
72
|
+
"@eslint/config-inspector": "^1.4.1",
|
|
73
73
|
"@sxzz/prettier-config": "^2.2.5",
|
|
74
74
|
"@types/node": "^24.10.1",
|
|
75
|
-
"@unocss/eslint-plugin": "^66.5.
|
|
75
|
+
"@unocss/eslint-plugin": "^66.5.9",
|
|
76
76
|
"bumpp": "^10.3.1",
|
|
77
77
|
"eslint": "^9.39.1",
|
|
78
78
|
"eslint-typegen": "^2.3.0",
|
|
79
79
|
"rolldown-plugin-require-cjs": "^0.3.1",
|
|
80
|
-
"tsdown": "^0.16.
|
|
80
|
+
"tsdown": "^0.16.6",
|
|
81
81
|
"typescript": "^5.9.3",
|
|
82
|
-
"unrun": "^0.2.
|
|
82
|
+
"unrun": "^0.2.11"
|
|
83
83
|
},
|
|
84
84
|
"engines": {
|
|
85
85
|
"node": ">=20.0.0"
|