@fabdeh/eslint-config 0.8.0 → 0.9.0-beta.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.ts → index.d.mts} +390 -168
- package/dist/{index.js → index.mjs} +3 -5
- package/package.json +45 -47
|
@@ -285,7 +285,7 @@ function resolveSubOptions(options, key) {
|
|
|
285
285
|
*/
|
|
286
286
|
async function angular(options = {}) {
|
|
287
287
|
const angularEslint = await interopDefault(import("angular-eslint"));
|
|
288
|
-
const { enableAccessibilityRules = true, tsOverrides = {}, htmlOverrides = {}, prefix = "app", ignoreClassNamePatternForInjectableProvidedIn: ignoreClassNamePattern, componentStylesMode = "string", preferOnPushOnly = true, banExperimentalApi = true, banDeveloperPreviewApi = true } = options;
|
|
288
|
+
const { enableAccessibilityRules = true, tsOverrides = {}, htmlOverrides = {}, prefix = "app", ignoreClassNamePatternForInjectableProvidedIn: ignoreClassNamePattern, componentStylesMode = "string", preferOnPushOnly = true, banExperimentalApi = true, banDeveloperPreviewApi = true, inlineTemplateAndStyles = false } = options;
|
|
289
289
|
return tseslint.config({
|
|
290
290
|
name: "fabdeh/angular/rules",
|
|
291
291
|
plugins: { "@angular-eslint": angularEslint.tsPlugin },
|
|
@@ -316,7 +316,7 @@ async function angular(options = {}) {
|
|
|
316
316
|
"ViewChildren"
|
|
317
317
|
] }],
|
|
318
318
|
...angularEslint.configs.tsRecommended.find((c) => c.name === "angular-eslint/ts-recommended")?.rules,
|
|
319
|
-
"@angular-eslint/component-max-inline-declarations": "error",
|
|
319
|
+
...inlineTemplateAndStyles ? {} : { "@angular-eslint/component-max-inline-declarations": "error" },
|
|
320
320
|
"@angular-eslint/component-selector": ["error", {
|
|
321
321
|
type: "element",
|
|
322
322
|
prefix,
|
|
@@ -331,7 +331,6 @@ async function angular(options = {}) {
|
|
|
331
331
|
}],
|
|
332
332
|
"@angular-eslint/no-async-lifecycle-method": "error",
|
|
333
333
|
"@angular-eslint/no-attribute-decorator": "error",
|
|
334
|
-
"@angular-eslint/no-conflicting-lifecycle": "error",
|
|
335
334
|
...banDeveloperPreviewApi ? { "@angular-eslint/no-developer-preview": "error" } : {},
|
|
336
335
|
"@angular-eslint/no-duplicates-in-metadata-arrays": "error",
|
|
337
336
|
...banExperimentalApi ? { "@angular-eslint/no-experimental": "error" } : {},
|
|
@@ -369,7 +368,6 @@ async function angular(options = {}) {
|
|
|
369
368
|
"@angular-eslint/template/no-duplicate-attributes": "error",
|
|
370
369
|
"@angular-eslint/template/no-interpolation-in-attributes": "error",
|
|
371
370
|
"@angular-eslint/template/no-positive-tabindex": "error",
|
|
372
|
-
"@angular-eslint/template/prefer-control-flow": "error",
|
|
373
371
|
"@angular-eslint/template/prefer-ngsrc": "error",
|
|
374
372
|
"@angular-eslint/template/prefer-self-closing-tags": "error",
|
|
375
373
|
"@angular-eslint/template/prefer-static-string-properties": "error",
|
|
@@ -1765,7 +1763,7 @@ function sortTsConfig() {
|
|
|
1765
1763
|
async function tailwindcss(options = {}) {
|
|
1766
1764
|
await ensurePackages(["eslint-plugin-better-tailwindcss"]);
|
|
1767
1765
|
const betterTailwindcssPlugin = await interopDefault(import("eslint-plugin-better-tailwindcss"));
|
|
1768
|
-
const { files: filesGlob, overrides, enableAllRules, parsers
|
|
1766
|
+
const { files: filesGlob, overrides, enableAllRules, parsers, ...settings } = options;
|
|
1769
1767
|
let files;
|
|
1770
1768
|
let parserConfigs;
|
|
1771
1769
|
if (parsers) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fabdeh/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.9.0-beta.2",
|
|
5
5
|
"description": "My personal eslint config preset",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Fabien Dehopré",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
},
|
|
28
28
|
"sideEffects": false,
|
|
29
29
|
"exports": {
|
|
30
|
-
".": "./dist/index.
|
|
30
|
+
".": "./dist/index.mjs"
|
|
31
31
|
},
|
|
32
|
-
"main": "./dist/index.
|
|
33
|
-
"module": "./dist/index.
|
|
34
|
-
"types": "./dist/index.d.
|
|
32
|
+
"main": "./dist/index.mjs",
|
|
33
|
+
"module": "./dist/index.mjs",
|
|
34
|
+
"types": "./dist/index.d.mts",
|
|
35
35
|
"files": [
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@prettier/plugin-xml": "^3.4.2",
|
|
43
|
-
"eslint": "^9.
|
|
44
|
-
"eslint-plugin-better-tailwindcss": "^3.7.
|
|
45
|
-
"eslint-plugin-erasable-syntax-only": "^0.
|
|
43
|
+
"eslint": "^9.39.1",
|
|
44
|
+
"eslint-plugin-better-tailwindcss": "^3.7.11",
|
|
45
|
+
"eslint-plugin-erasable-syntax-only": "^0.4.0",
|
|
46
46
|
"eslint-plugin-format": "^1.0.2",
|
|
47
47
|
"prettier-plugin-slidev": "^1.0.5"
|
|
48
48
|
},
|
|
@@ -67,63 +67,63 @@
|
|
|
67
67
|
"@antfu/install-pkg": "^1.1.0",
|
|
68
68
|
"@clack/prompts": "^0.11.0",
|
|
69
69
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
70
|
-
"@eslint/js": "^9.
|
|
71
|
-
"@eslint/markdown": "^7.
|
|
72
|
-
"@ngrx/eslint-plugin": "^20.0
|
|
73
|
-
"@stylistic/eslint-plugin": "^5.
|
|
74
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
75
|
-
"@typescript-eslint/parser": "^8.
|
|
76
|
-
"@typescript-eslint/utils": "^8.
|
|
77
|
-
"@vitest/eslint-plugin": "^1.
|
|
78
|
-
"angular-eslint": "^
|
|
70
|
+
"@eslint/js": "^9.39.1",
|
|
71
|
+
"@eslint/markdown": "^7.5.1",
|
|
72
|
+
"@ngrx/eslint-plugin": "^20.1.0",
|
|
73
|
+
"@stylistic/eslint-plugin": "^5.6.1",
|
|
74
|
+
"@typescript-eslint/eslint-plugin": "^8.48.0",
|
|
75
|
+
"@typescript-eslint/parser": "^8.48.0",
|
|
76
|
+
"@typescript-eslint/utils": "^8.48.0",
|
|
77
|
+
"@vitest/eslint-plugin": "^1.5.0",
|
|
78
|
+
"angular-eslint": "^21.0.1",
|
|
79
79
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
80
80
|
"eslint-flat-config-utils": "^2.1.4",
|
|
81
81
|
"eslint-merge-processors": "^2.0.0",
|
|
82
82
|
"eslint-plugin-import-x": "^4.16.1",
|
|
83
83
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
84
|
-
"eslint-plugin-jsdoc": "^
|
|
84
|
+
"eslint-plugin-jsdoc": "^61.4.1",
|
|
85
85
|
"eslint-plugin-jsonc": "^2.21.0",
|
|
86
86
|
"eslint-plugin-n": "^17.23.1",
|
|
87
87
|
"eslint-plugin-perfectionist": "^4.15.1",
|
|
88
|
-
"eslint-plugin-pnpm": "^1.
|
|
88
|
+
"eslint-plugin-pnpm": "^1.3.0",
|
|
89
89
|
"eslint-plugin-prefer-arrow-functions": "^3.9.1",
|
|
90
90
|
"eslint-plugin-regexp": "^2.10.0",
|
|
91
|
-
"eslint-plugin-testing-library": "^7.
|
|
91
|
+
"eslint-plugin-testing-library": "^7.13.5",
|
|
92
92
|
"eslint-plugin-toml": "^0.12.0",
|
|
93
|
-
"eslint-plugin-unicorn": "^
|
|
94
|
-
"eslint-plugin-unused-imports": "^4.
|
|
93
|
+
"eslint-plugin-unicorn": "^62.0.0",
|
|
94
|
+
"eslint-plugin-unused-imports": "^4.3.0",
|
|
95
95
|
"eslint-plugin-yml": "^1.19.0",
|
|
96
|
-
"globals": "^16.
|
|
96
|
+
"globals": "^16.5.0",
|
|
97
97
|
"jsonc-eslint-parser": "^2.4.1",
|
|
98
98
|
"local-pkg": "^1.1.2",
|
|
99
99
|
"toml-eslint-parser": "^0.10.0",
|
|
100
|
-
"typescript-eslint": "^8.
|
|
101
|
-
"yaml-eslint-parser": "^1.3.
|
|
100
|
+
"typescript-eslint": "^8.48.0",
|
|
101
|
+
"yaml-eslint-parser": "^1.3.1"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
|
-
"@angular/core": "^
|
|
104
|
+
"@angular/core": "^21.0.1",
|
|
105
105
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
106
106
|
"@commitlint/cli": "^20.1.0",
|
|
107
107
|
"@commitlint/config-conventional": "^20.0.0",
|
|
108
108
|
"@commitlint/cz-commitlint": "^20.1.0",
|
|
109
109
|
"@commitlint/lint": "^20.0.0",
|
|
110
110
|
"@commitlint/load": "^20.1.0",
|
|
111
|
-
"@ngrx/effects": "^20.0
|
|
112
|
-
"@ngrx/operators": "^20.0
|
|
113
|
-
"@ngrx/signals": "^20.0
|
|
114
|
-
"@ngrx/store": "^20.0
|
|
111
|
+
"@ngrx/effects": "^20.1.0",
|
|
112
|
+
"@ngrx/operators": "^20.1.0",
|
|
113
|
+
"@ngrx/signals": "^20.1.0",
|
|
114
|
+
"@ngrx/store": "^20.1.0",
|
|
115
115
|
"@prettier/plugin-xml": "^3.4.2",
|
|
116
|
-
"@testing-library/angular": "^18.1.
|
|
116
|
+
"@testing-library/angular": "^18.1.1",
|
|
117
117
|
"@testing-library/jest-dom": "^6.9.1",
|
|
118
118
|
"@types/fs-extra": "^11.0.4",
|
|
119
|
-
"@types/node": "^22.
|
|
120
|
-
"@vitest/coverage-v8": "^
|
|
121
|
-
"bumpp": "^10.2
|
|
122
|
-
"changelogithub": "^
|
|
119
|
+
"@types/node": "^22.19.1",
|
|
120
|
+
"@vitest/coverage-v8": "^4.0.14",
|
|
121
|
+
"bumpp": "^10.3.2",
|
|
122
|
+
"changelogithub": "^14.0.0",
|
|
123
123
|
"commitizen": "^4.3.1",
|
|
124
|
-
"eslint": "^9.
|
|
125
|
-
"eslint-plugin-better-tailwindcss": "^3.7.
|
|
126
|
-
"eslint-plugin-erasable-syntax-only": "^0.
|
|
124
|
+
"eslint": "^9.39.1",
|
|
125
|
+
"eslint-plugin-better-tailwindcss": "^3.7.11",
|
|
126
|
+
"eslint-plugin-erasable-syntax-only": "^0.4.0",
|
|
127
127
|
"eslint-plugin-format": "^1.0.2",
|
|
128
128
|
"eslint-typegen": "^2.3.0",
|
|
129
129
|
"execa": "^9.6.0",
|
|
@@ -131,16 +131,16 @@
|
|
|
131
131
|
"fs-extra": "^11.3.2",
|
|
132
132
|
"is-ci": "^4.1.0",
|
|
133
133
|
"jiti": "^2.6.1",
|
|
134
|
-
"nano-staged": "^0.
|
|
134
|
+
"nano-staged": "^0.9.0",
|
|
135
135
|
"prettier-plugin-slidev": "^1.0.5",
|
|
136
|
-
"semver": "^7.7.
|
|
136
|
+
"semver": "^7.7.3",
|
|
137
137
|
"simple-git-hooks": "^2.13.1",
|
|
138
|
-
"tailwindcss": "^4.1.
|
|
139
|
-
"tsdown": "^0.
|
|
138
|
+
"tailwindcss": "^4.1.17",
|
|
139
|
+
"tsdown": "^0.16.7",
|
|
140
140
|
"tsx": "^4.20.6",
|
|
141
141
|
"typescript": "^5.9.3",
|
|
142
|
-
"vitest": "^
|
|
143
|
-
"@fabdeh/eslint-config": "0.
|
|
142
|
+
"vitest": "^4.0.14",
|
|
143
|
+
"@fabdeh/eslint-config": "0.9.0-beta.2"
|
|
144
144
|
},
|
|
145
145
|
"resolutions": {
|
|
146
146
|
"eslint": "catalog:peer"
|
|
@@ -171,8 +171,6 @@
|
|
|
171
171
|
"typecheck": "tsc --noEmit",
|
|
172
172
|
"gen": "tsx scripts/typegen.ts",
|
|
173
173
|
"validate-pr-title": "tsx scripts/validate-pr-title.ts",
|
|
174
|
-
"test": "vitest"
|
|
175
|
-
"test:watch": "vitest --watch",
|
|
176
|
-
"test:ci": "vitest --coverage"
|
|
174
|
+
"test": "vitest"
|
|
177
175
|
}
|
|
178
176
|
}
|