@favorodera/eslint-config 1.0.3 → 1.1.0
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 +3144 -1011
- package/dist/index.mjs +16 -6
- package/package.json +28 -28
package/dist/index.mjs
CHANGED
|
@@ -114,8 +114,8 @@ function disables() {
|
|
|
114
114
|
"no-unused-labels": "off",
|
|
115
115
|
"no-unused-vars": "off",
|
|
116
116
|
"unicode-bom": "off",
|
|
117
|
-
"node/prefer-global/process": "off",
|
|
118
117
|
"node/no-extraneous-import": "off",
|
|
118
|
+
"node/prefer-global/process": "off",
|
|
119
119
|
"style/comma-dangle": "off",
|
|
120
120
|
"style/eol-last": "off",
|
|
121
121
|
"style/line-comment-position": "off",
|
|
@@ -145,13 +145,12 @@ function disables() {
|
|
|
145
145
|
"jsdoc/require-throws-type": "off",
|
|
146
146
|
"node/no-missing-import": "off",
|
|
147
147
|
"node/no-missing-require": "off",
|
|
148
|
-
"node/no-process-exit": "off",
|
|
149
148
|
"tailwind/enforce-consistent-important-position": "off",
|
|
150
149
|
"tailwind/enforce-consistent-variable-syntax": "off",
|
|
151
150
|
"tailwind/enforce-shorthand-classes": "off",
|
|
152
151
|
"unicorn/filename-case": "off",
|
|
152
|
+
"unicorn/name-replacements": "off",
|
|
153
153
|
"unicorn/no-process-exit": "off",
|
|
154
|
-
"unicorn/prevent-abbreviations": "off",
|
|
155
154
|
"no-unused-vars": "off",
|
|
156
155
|
"ts/no-unused-vars": "off"
|
|
157
156
|
}
|
|
@@ -1153,7 +1152,6 @@ async function typescript() {
|
|
|
1153
1152
|
"ts/default-param-last": "error",
|
|
1154
1153
|
"ts/method-signature-style": "error",
|
|
1155
1154
|
"ts/no-import-type-side-effects": "error",
|
|
1156
|
-
"ts/no-loop-func": "error",
|
|
1157
1155
|
"ts/no-redeclare": "error"
|
|
1158
1156
|
}
|
|
1159
1157
|
}];
|
|
@@ -1184,7 +1182,10 @@ async function unicorn() {
|
|
|
1184
1182
|
}, {
|
|
1185
1183
|
files,
|
|
1186
1184
|
name: "favorodera/unicorn/rules",
|
|
1187
|
-
rules
|
|
1185
|
+
rules: {
|
|
1186
|
+
...rules,
|
|
1187
|
+
"unicorn/single-line-block-comment-style": ["error", "single-line"]
|
|
1188
|
+
}
|
|
1188
1189
|
}];
|
|
1189
1190
|
}
|
|
1190
1191
|
//#endregion
|
|
@@ -1367,8 +1368,17 @@ async function vue(options) {
|
|
|
1367
1368
|
name: "favorodera/vue/a11y/rules",
|
|
1368
1369
|
rules: {
|
|
1369
1370
|
...a11yRules,
|
|
1371
|
+
"vue-a11y/form-control-has-label": ["error", {
|
|
1372
|
+
controlComponents: [],
|
|
1373
|
+
labelComponents: []
|
|
1374
|
+
}],
|
|
1375
|
+
"vue-a11y/label-has-for": ["error", {
|
|
1376
|
+
allowChildren: true,
|
|
1377
|
+
components: [],
|
|
1378
|
+
controlComponents: [],
|
|
1379
|
+
required: { some: ["nesting", "id"] }
|
|
1380
|
+
}],
|
|
1370
1381
|
"vue-a11y/no-aria-hidden-on-focusable": "error",
|
|
1371
|
-
"vue-a11y/no-onchange": "error",
|
|
1372
1382
|
"vue-a11y/no-role-presentation-on-focusable": "error"
|
|
1373
1383
|
}
|
|
1374
1384
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@favorodera/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Opinionated, type-safe flat ESLint configuration factory for Vue, TypeScript, Tailwind, and more.",
|
|
7
7
|
"author": "Favour Emeka <favorodera@gmail.com>",
|
|
@@ -44,53 +44,53 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@eslint/js": "^10.0.1",
|
|
47
|
-
"@eslint/markdown": "^8.0.
|
|
47
|
+
"@eslint/markdown": "^8.0.3",
|
|
48
48
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
49
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
49
|
+
"@vitest/eslint-plugin": "^1.6.27",
|
|
50
50
|
"defu": "^6.1.7",
|
|
51
51
|
"eslint-flat-config-utils": "^3.2.0",
|
|
52
52
|
"eslint-merge-processors": "^2.0.0",
|
|
53
|
-
"eslint-plugin-better-tailwindcss": "^4.
|
|
53
|
+
"eslint-plugin-better-tailwindcss": "^4.7.0",
|
|
54
54
|
"eslint-plugin-import-lite": "^0.6.0",
|
|
55
|
-
"eslint-plugin-jsdoc": "^
|
|
56
|
-
"eslint-plugin-jsonc": "^3.
|
|
57
|
-
"eslint-plugin-n": "^18.
|
|
58
|
-
"eslint-plugin-perfectionist": "^5.
|
|
59
|
-
"eslint-plugin-pnpm": "^1.
|
|
60
|
-
"eslint-plugin-unicorn": "^
|
|
55
|
+
"eslint-plugin-jsdoc": "^64.1.0",
|
|
56
|
+
"eslint-plugin-jsonc": "^3.4.1",
|
|
57
|
+
"eslint-plugin-n": "^18.3.0",
|
|
58
|
+
"eslint-plugin-perfectionist": "^5.10.1",
|
|
59
|
+
"eslint-plugin-pnpm": "^1.8.0",
|
|
60
|
+
"eslint-plugin-unicorn": "^73.0.0",
|
|
61
61
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
62
|
-
"eslint-plugin-vue": "^10.
|
|
63
|
-
"eslint-plugin-vuejs-accessibility": "^2.
|
|
64
|
-
"eslint-plugin-yml": "^3.
|
|
62
|
+
"eslint-plugin-vue": "^10.10.0",
|
|
63
|
+
"eslint-plugin-vuejs-accessibility": "^2.6.0",
|
|
64
|
+
"eslint-plugin-yml": "^3.8.1",
|
|
65
65
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
66
|
-
"globals": "^17.
|
|
67
|
-
"typescript-eslint": "^8.
|
|
66
|
+
"globals": "^17.11.0",
|
|
67
|
+
"typescript-eslint": "^8.67.0",
|
|
68
68
|
"vue-eslint-parser": "^10.4.1",
|
|
69
|
-
"yaml-eslint-parser": "^2.
|
|
69
|
+
"yaml-eslint-parser": "^2.1.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@types/node": "^
|
|
73
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
74
|
-
"@vitest/ui": "4.1.
|
|
75
|
-
"concurrently": "^10.0.
|
|
72
|
+
"@types/node": "^26.2.0",
|
|
73
|
+
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
74
|
+
"@vitest/ui": "4.1.10",
|
|
75
|
+
"concurrently": "^10.0.4",
|
|
76
76
|
"eslint": "^10.4.1",
|
|
77
77
|
"eslint-typegen": "^2.3.1",
|
|
78
|
-
"relizy": "^1.4.
|
|
79
|
-
"tsdown": "^0.22.
|
|
80
|
-
"tsx": "^4.
|
|
78
|
+
"relizy": "^1.4.9",
|
|
79
|
+
"tsdown": "^0.22.14",
|
|
80
|
+
"tsx": "^4.23.12",
|
|
81
81
|
"typescript": "^6.0.3",
|
|
82
|
-
"vitest": "^4.1.
|
|
82
|
+
"vitest": "^4.1.10"
|
|
83
83
|
},
|
|
84
84
|
"scripts": {
|
|
85
|
-
"
|
|
85
|
+
"generate-rules-types": "tsx scripts/generate-rules-types.ts",
|
|
86
86
|
"dev:inspector": "pnpm dlx @eslint/config-inspector@latest",
|
|
87
|
-
"prebuild": "pnpm
|
|
87
|
+
"prebuild": "pnpm generate-rules-types",
|
|
88
88
|
"build": "tsdown",
|
|
89
89
|
"dev": "pnpm prebuild && concurrently \"tsdown --watch\" \"pnpm dev:inspector\"",
|
|
90
90
|
"test": "vitest run",
|
|
91
91
|
"test:watch": "vitest --watch --ui",
|
|
92
|
-
"typecheck": "tsc --noEmit",
|
|
92
|
+
"typecheck": "pnpm generate-rules-types && tsc --noEmit",
|
|
93
93
|
"lint": "eslint . --fix",
|
|
94
|
-
"ready": "pnpm install && pnpm
|
|
94
|
+
"ready": "pnpm install && pnpm lint && pnpm typecheck && pnpm test && pnpm build"
|
|
95
95
|
}
|
|
96
96
|
}
|