@fabdeh/eslint-config 0.11.1 → 0.12.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 +417 -205
- package/dist/index.mjs +3 -4
- package/package.json +60 -59
package/dist/index.mjs
CHANGED
|
@@ -366,7 +366,7 @@ function getPlaywrightDirectory() {
|
|
|
366
366
|
*/
|
|
367
367
|
async function angular(options = {}) {
|
|
368
368
|
const angularEslint = await interopDefault(import("angular-eslint"));
|
|
369
|
-
const { enableAccessibilityRules = true, overrides = {}, prefix = "app", ignoreClassNamePatternForInjectableProvidedIn: ignoreClassNamePattern, componentStylesMode = "string",
|
|
369
|
+
const { enableAccessibilityRules = true, overrides = {}, prefix = "app", ignoreClassNamePatternForInjectableProvidedIn: ignoreClassNamePattern, componentStylesMode = "string", banExperimentalApi = true, banDeveloperPreviewApi = true, inlineTemplateAndStyles = false } = options;
|
|
370
370
|
const tsOverrides = {};
|
|
371
371
|
const htmlOverrides = {};
|
|
372
372
|
for (const [key, value] of Object.entries(overrides)) if (key.startsWith("@angular-eslint/template/")) htmlOverrides[key] = value;
|
|
@@ -427,7 +427,6 @@ async function angular(options = {}) {
|
|
|
427
427
|
"@angular-eslint/prefer-output-emitter-ref": "error",
|
|
428
428
|
"@angular-eslint/prefer-output-readonly": "error",
|
|
429
429
|
"@angular-eslint/prefer-signals": "error",
|
|
430
|
-
...preferOnPushOnly ? { "@angular-eslint/prefer-on-push-component-change-detection": "error" } : {},
|
|
431
430
|
"@angular-eslint/relative-url-prefix": "error",
|
|
432
431
|
"@angular-eslint/require-lifecycle-on-prototype": "error",
|
|
433
432
|
"@angular-eslint/sort-keys-in-type-decorator": "error",
|
|
@@ -2349,14 +2348,14 @@ async function vitest(options = {}) {
|
|
|
2349
2348
|
const { files = GLOB_VITEST, overrides = {}, useJestDom = isPackageExists("@testing-library/jest-dom"), useTestingLibrary = isPackageExists("@testing-library/angular"), enableVitestGlobals = true, e2eFolderPath } = options;
|
|
2350
2349
|
const [vitestPlugin, jestDomPlugin, testingLibraryPlugin] = await Promise.all([
|
|
2351
2350
|
interopDefault(import("@vitest/eslint-plugin")),
|
|
2352
|
-
useJestDom ? interopDefault(import("eslint-plugin-jest-dom")) : Promise.resolve(void 0),
|
|
2351
|
+
useJestDom ? interopDefault(import("eslint-plugin-jest-dom-ya")) : Promise.resolve(void 0),
|
|
2353
2352
|
useTestingLibrary ? interopDefault(import("eslint-plugin-testing-library")) : Promise.resolve(void 0)
|
|
2354
2353
|
]);
|
|
2355
2354
|
return [{
|
|
2356
2355
|
name: "fabdeh/vitest/rules",
|
|
2357
2356
|
plugins: {
|
|
2358
2357
|
vitest: vitestPlugin,
|
|
2359
|
-
...jestDomPlugin ? { "jest-dom": jestDomPlugin } : {},
|
|
2358
|
+
...jestDomPlugin ? { "jest-dom-ya": jestDomPlugin } : {},
|
|
2360
2359
|
...testingLibraryPlugin ? { "testing-library": testingLibraryPlugin } : {}
|
|
2361
2360
|
},
|
|
2362
2361
|
languageOptions: { globals: {
|
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.12.0",
|
|
5
5
|
"description": "My personal eslint config preset",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Fabien Dehopré",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"eslint": "^9.38.0",
|
|
40
|
-
"eslint-plugin-better-tailwindcss": "^4.
|
|
41
|
-
"eslint-plugin-erasable-syntax-only": "^0.4.
|
|
39
|
+
"eslint": "^9.38.0 || ^10.0.0",
|
|
40
|
+
"eslint-plugin-better-tailwindcss": "^4.5.0",
|
|
41
|
+
"eslint-plugin-erasable-syntax-only": "^0.4.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"eslint-plugin-better-tailwindcss": {
|
|
@@ -50,89 +50,89 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@antfu/install-pkg": "^1.1.0",
|
|
53
|
-
"@clack/prompts": "^1.1
|
|
54
|
-
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.
|
|
55
|
-
"@eslint/markdown": "^8.0.
|
|
56
|
-
"@ngrx/eslint-plugin": "^21.1.
|
|
53
|
+
"@clack/prompts": "^1.5.1",
|
|
54
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
|
|
55
|
+
"@eslint/markdown": "^8.0.2",
|
|
56
|
+
"@ngrx/eslint-plugin": "^21.1.1",
|
|
57
57
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
58
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
59
|
-
"@typescript-eslint/parser": "^8.
|
|
60
|
-
"@typescript-eslint/utils": "^8.
|
|
61
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
62
|
-
"angular-eslint": "^
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "^8.61.0",
|
|
59
|
+
"@typescript-eslint/parser": "^8.61.0",
|
|
60
|
+
"@typescript-eslint/utils": "^8.61.0",
|
|
61
|
+
"@vitest/eslint-plugin": "^1.6.19",
|
|
62
|
+
"angular-eslint": "^22.0.0",
|
|
63
63
|
"eslint-config-flat-gitignore": "^2.3.0",
|
|
64
|
-
"eslint-flat-config-utils": "^3.0
|
|
64
|
+
"eslint-flat-config-utils": "^3.2.0",
|
|
65
65
|
"eslint-merge-processors": "^2.0.0",
|
|
66
66
|
"eslint-plugin-import-x": "^4.16.2",
|
|
67
|
-
"eslint-plugin-jest-dom": "^
|
|
68
|
-
"eslint-plugin-jsdoc": "^
|
|
69
|
-
"eslint-plugin-jsonc": "^3.
|
|
70
|
-
"eslint-plugin-n": "^
|
|
71
|
-
"eslint-plugin-perfectionist": "^5.
|
|
72
|
-
"eslint-plugin-playwright": "^2.10.
|
|
73
|
-
"eslint-plugin-pnpm": "^1.6.
|
|
67
|
+
"eslint-plugin-jest-dom-ya": "^1.0.1",
|
|
68
|
+
"eslint-plugin-jsdoc": "^63.0.2",
|
|
69
|
+
"eslint-plugin-jsonc": "^3.2.0",
|
|
70
|
+
"eslint-plugin-n": "^18.1.0",
|
|
71
|
+
"eslint-plugin-perfectionist": "^5.9.0",
|
|
72
|
+
"eslint-plugin-playwright": "^2.10.4",
|
|
73
|
+
"eslint-plugin-pnpm": "^1.6.1",
|
|
74
74
|
"eslint-plugin-prefer-arrow-functions": "^3.9.1",
|
|
75
75
|
"eslint-plugin-regexp": "^3.1.0",
|
|
76
76
|
"eslint-plugin-testing-library": "^7.16.2",
|
|
77
|
-
"eslint-plugin-toml": "^1.
|
|
78
|
-
"eslint-plugin-unicorn": "^
|
|
77
|
+
"eslint-plugin-toml": "^1.4.0",
|
|
78
|
+
"eslint-plugin-unicorn": "^65.0.1",
|
|
79
79
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
80
|
-
"eslint-plugin-yml": "^3.
|
|
80
|
+
"eslint-plugin-yml": "^3.4.0",
|
|
81
81
|
"find-up-simple": "^1.0.1",
|
|
82
82
|
"glob": "^13.0.6",
|
|
83
|
-
"globals": "^17.
|
|
83
|
+
"globals": "^17.6.0",
|
|
84
84
|
"jsonc-eslint-parser": "^3.1.0",
|
|
85
|
-
"local-pkg": "^1.1
|
|
86
|
-
"typescript-eslint": "^8.
|
|
85
|
+
"local-pkg": "^1.2.1",
|
|
86
|
+
"typescript-eslint": "^8.61.0",
|
|
87
87
|
"yaml-eslint-parser": "^2.0.0"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
-
"@angular/core": "^
|
|
91
|
-
"@arethetypeswrong/cli": "^0.18.
|
|
92
|
-
"@commitlint/cli": "^
|
|
93
|
-
"@commitlint/config-conventional": "^
|
|
94
|
-
"@commitlint/cz-commitlint": "^
|
|
95
|
-
"@commitlint/lint": "^
|
|
96
|
-
"@commitlint/load": "^
|
|
97
|
-
"@ngrx/effects": "^21.1.
|
|
98
|
-
"@ngrx/operators": "^21.1.
|
|
99
|
-
"@ngrx/signals": "^21.1.
|
|
100
|
-
"@ngrx/store": "^21.1.
|
|
101
|
-
"@testing-library/angular": "^19.
|
|
90
|
+
"@angular/core": "^22.0.0",
|
|
91
|
+
"@arethetypeswrong/cli": "^0.18.3",
|
|
92
|
+
"@commitlint/cli": "^21.0.2",
|
|
93
|
+
"@commitlint/config-conventional": "^21.0.2",
|
|
94
|
+
"@commitlint/cz-commitlint": "^21.0.2",
|
|
95
|
+
"@commitlint/lint": "^21.0.2",
|
|
96
|
+
"@commitlint/load": "^21.0.2",
|
|
97
|
+
"@ngrx/effects": "^21.1.1",
|
|
98
|
+
"@ngrx/operators": "^21.1.1",
|
|
99
|
+
"@ngrx/signals": "^21.1.1",
|
|
100
|
+
"@ngrx/store": "^21.1.1",
|
|
101
|
+
"@testing-library/angular": "^19.4.1",
|
|
102
102
|
"@testing-library/jest-dom": "^6.9.1",
|
|
103
103
|
"@types/fs-extra": "^11.0.4",
|
|
104
|
-
"@types/node": "^24.
|
|
105
|
-
"@vitest/coverage-v8": "^4.1.
|
|
106
|
-
"
|
|
104
|
+
"@types/node": "^24.13.1",
|
|
105
|
+
"@vitest/coverage-v8": "^4.1.8",
|
|
106
|
+
"@vitest/ui": "^4.1.8",
|
|
107
|
+
"bumpp": "^11.1.0",
|
|
107
108
|
"change-case": "^5.4.4",
|
|
108
109
|
"changelogithub": "^14.0.0",
|
|
109
110
|
"commitizen": "^4.3.1",
|
|
110
|
-
"eslint": "^
|
|
111
|
-
"eslint-plugin-better-tailwindcss": "^4.
|
|
112
|
-
"eslint-plugin-erasable-syntax-only": "^0.4.
|
|
111
|
+
"eslint": "^10.4.1",
|
|
112
|
+
"eslint-plugin-better-tailwindcss": "^4.5.0",
|
|
113
|
+
"eslint-plugin-erasable-syntax-only": "^0.4.1",
|
|
113
114
|
"eslint-typegen": "^2.3.1",
|
|
114
115
|
"execa": "^9.6.1",
|
|
115
|
-
"fs-extra": "^11.3.
|
|
116
|
-
"inquirer": "^9.0.0",
|
|
116
|
+
"fs-extra": "^11.3.5",
|
|
117
117
|
"is-ci": "^4.1.0",
|
|
118
|
-
"jiti": "^2.
|
|
119
|
-
"nano-staged": "^1.0.
|
|
120
|
-
"playwright": "^1.
|
|
121
|
-
"semver": "^7.
|
|
118
|
+
"jiti": "^2.7.0",
|
|
119
|
+
"nano-staged": "^1.0.2",
|
|
120
|
+
"playwright": "^1.60.0",
|
|
121
|
+
"semver": "^7.8.3",
|
|
122
122
|
"simple-git-hooks": "^2.13.1",
|
|
123
|
-
"tailwindcss": "^4.
|
|
124
|
-
"tsdown": "^0.
|
|
125
|
-
"tsx": "^4.
|
|
126
|
-
"typescript": "^
|
|
127
|
-
"vitest": "^4.1.
|
|
128
|
-
"@fabdeh/eslint-config": "0.
|
|
123
|
+
"tailwindcss": "^4.3.0",
|
|
124
|
+
"tsdown": "^0.22.2",
|
|
125
|
+
"tsx": "^4.22.4",
|
|
126
|
+
"typescript": "^6.0.3",
|
|
127
|
+
"vitest": "^4.1.8",
|
|
128
|
+
"@fabdeh/eslint-config": "0.12.0"
|
|
129
129
|
},
|
|
130
130
|
"simple-git-hooks": {
|
|
131
131
|
"pre-commit": "pnpm nano-staged",
|
|
132
132
|
"commit-msg": "pnpm commitlint --edit ${1}"
|
|
133
133
|
},
|
|
134
134
|
"nano-staged": {
|
|
135
|
-
"*": "eslint --fix"
|
|
135
|
+
"*": "eslint --fix --pass-on-no-patterns --no-error-on-unmatched-pattern"
|
|
136
136
|
},
|
|
137
137
|
"config": {
|
|
138
138
|
"commitizen": {
|
|
@@ -153,6 +153,7 @@
|
|
|
153
153
|
"typecheck": "tsc --noEmit -p tsconfig.src.json && tsc --noEmit -p tsconfig.test.json",
|
|
154
154
|
"gen": "tsx scripts/typegen.ts",
|
|
155
155
|
"validate-pr-title": "tsx scripts/validate-pr-title.ts",
|
|
156
|
-
"test": "vitest"
|
|
156
|
+
"test": "vitest",
|
|
157
|
+
"test:ui": "vitest --ui"
|
|
157
158
|
}
|
|
158
159
|
}
|