@daopk/eslint-config 0.5.2 → 0.5.3
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 -1
- package/dist/presets/nestjs.d.mts +1 -1
- package/dist/presets/nestjs.mjs +1 -1
- package/dist/{src-BEal04_4.mjs → src-clcGUe6i.mjs} +1 -1
- package/dist/{types-BBjqzb35.d.mts → types-CT32pGP-.d.mts} +10 -0
- package/dist/{vue-A9YP-IN_.mjs → vue-Cha6BN6i.mjs} +4 -0
- package/package.json +24 -18
package/dist/index.d.mts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Options, t as LinterConfig } from "../types-
|
|
1
|
+
import { n as Options, t as LinterConfig } from "../types-CT32pGP-.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/presets/nestjs.d.ts
|
|
4
4
|
declare function presetNestjs(options?: Options, ...userConfigs: LinterConfig[]): Promise<LinterConfig[]>;
|
package/dist/presets/nestjs.mjs
CHANGED
|
@@ -205,7 +205,7 @@ async function daopk(options = {}, ...userConfigs) {
|
|
|
205
205
|
node(),
|
|
206
206
|
perfectionist()
|
|
207
207
|
];
|
|
208
|
-
if (enableVue) configs.push(...await interopDefault((await import("./vue-
|
|
208
|
+
if (enableVue) configs.push(...await interopDefault((await import("./vue-Cha6BN6i.mjs")).vue()));
|
|
209
209
|
if (options.rules) configs.push({
|
|
210
210
|
name: "daopk/rules",
|
|
211
211
|
rules: { ...options.rules }
|
|
@@ -3044,6 +3044,11 @@ interface RuleOptions {
|
|
|
3044
3044
|
* @see https://typescript-eslint.io/rules/no-unused-expressions
|
|
3045
3045
|
*/
|
|
3046
3046
|
'typescript/no-unused-expressions'?: Linter.RuleEntry<TypescriptNoUnusedExpressions>;
|
|
3047
|
+
/**
|
|
3048
|
+
* Disallow unused private class members
|
|
3049
|
+
* @see https://typescript-eslint.io/rules/no-unused-private-class-members
|
|
3050
|
+
*/
|
|
3051
|
+
'typescript/no-unused-private-class-members'?: Linter.RuleEntry<[]>;
|
|
3047
3052
|
/**
|
|
3048
3053
|
* Disallow unused variables
|
|
3049
3054
|
* @see https://typescript-eslint.io/rules/no-unused-vars
|
|
@@ -3748,6 +3753,11 @@ interface RuleOptions {
|
|
|
3748
3753
|
* @see https://eslint.vuejs.org/rules/no-duplicate-attributes.html
|
|
3749
3754
|
*/
|
|
3750
3755
|
'vue/no-duplicate-attributes'?: Linter.RuleEntry<VueNoDuplicateAttributes>;
|
|
3756
|
+
/**
|
|
3757
|
+
* disallow duplication of class names in class attributes
|
|
3758
|
+
* @see https://eslint.vuejs.org/rules/no-duplicate-class-names.html
|
|
3759
|
+
*/
|
|
3760
|
+
'vue/no-duplicate-class-names'?: Linter.RuleEntry<[]>;
|
|
3751
3761
|
/**
|
|
3752
3762
|
* disallow the `<template>` `<script>` `<style>` block to be empty
|
|
3753
3763
|
* @see https://eslint.vuejs.org/rules/no-empty-component-block.html
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daopk/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.3",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "github:daopk/eslint-config",
|
|
7
7
|
"exports": {
|
|
@@ -16,38 +16,44 @@
|
|
|
16
16
|
"files": [
|
|
17
17
|
"dist"
|
|
18
18
|
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"dev": "eslint-config-inspector",
|
|
21
|
+
"typegen": "tsx scripts/typegen.ts",
|
|
22
|
+
"build": "pnpm typegen && tsdown",
|
|
23
|
+
"build:inspector": "pnpm build && eslint-config-inspector build",
|
|
24
|
+
"lint": "eslint .",
|
|
25
|
+
"prepack": "pnpm build",
|
|
26
|
+
"release": "bumpp && pnpm publish"
|
|
27
|
+
},
|
|
19
28
|
"dependencies": {
|
|
20
|
-
"@stylistic/eslint-plugin": "^5.
|
|
21
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
22
|
-
"@typescript-eslint/parser": "^8.
|
|
29
|
+
"@stylistic/eslint-plugin": "^5.6.1",
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "^8.49.0",
|
|
31
|
+
"@typescript-eslint/parser": "^8.49.0",
|
|
23
32
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
24
33
|
"eslint-plugin-antfu": "^3.1.1",
|
|
25
34
|
"eslint-plugin-import-x": "^4.16.1",
|
|
26
35
|
"eslint-plugin-n": "^17.23.1",
|
|
27
36
|
"eslint-plugin-perfectionist": "^4.15.1",
|
|
28
37
|
"eslint-plugin-unused-imports": "^4.3.0",
|
|
29
|
-
"eslint-plugin-vue": "^10.
|
|
38
|
+
"eslint-plugin-vue": "^10.6.2",
|
|
30
39
|
"globals": "^16.5.0",
|
|
31
40
|
"local-pkg": "^1.1.2",
|
|
32
41
|
"vue-eslint-parser": "^10.2.0"
|
|
33
42
|
},
|
|
34
43
|
"devDependencies": {
|
|
35
|
-
"@eslint/config-inspector": "^1.
|
|
36
|
-
"@types/node": "^24.10.
|
|
37
|
-
"bumpp": "^10.3.
|
|
44
|
+
"@eslint/config-inspector": "^1.4.2",
|
|
45
|
+
"@types/node": "^24.10.3",
|
|
46
|
+
"bumpp": "^10.3.2",
|
|
38
47
|
"eslint": "^9.39.1",
|
|
39
48
|
"eslint-typegen": "^2.3.0",
|
|
40
49
|
"jiti": "^2.6.1",
|
|
41
|
-
"tsdown": "^0.
|
|
42
|
-
"tsx": "^4.
|
|
50
|
+
"tsdown": "^0.17.3",
|
|
51
|
+
"tsx": "^4.21.0",
|
|
43
52
|
"typescript": "^5.9.3"
|
|
44
53
|
},
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"build:inspector": "pnpm build && eslint-config-inspector build",
|
|
50
|
-
"lint": "eslint .",
|
|
51
|
-
"release": "bumpp && pnpm publish"
|
|
54
|
+
"pnpm": {
|
|
55
|
+
"onlyBuiltDependencies": [
|
|
56
|
+
"esbuild"
|
|
57
|
+
]
|
|
52
58
|
}
|
|
53
|
-
}
|
|
59
|
+
}
|