@fabdeh/eslint-config 0.9.0-beta.1 → 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.mts +6 -0
- package/dist/index.mjs +2 -2
- package/package.json +3 -5
package/dist/index.d.mts
CHANGED
|
@@ -15211,6 +15211,12 @@ interface AngularOptions {
|
|
|
15211
15211
|
* @default true
|
|
15212
15212
|
*/
|
|
15213
15213
|
banDeveloperPreviewApi?: boolean;
|
|
15214
|
+
/**
|
|
15215
|
+
* Whether the Angular application uses inline templates and styles instead of external files.
|
|
15216
|
+
*
|
|
15217
|
+
* @default false
|
|
15218
|
+
*/
|
|
15219
|
+
inlineTemplateAndStyles?: boolean;
|
|
15214
15220
|
}
|
|
15215
15221
|
/**
|
|
15216
15222
|
* Interface representing configuration options for enforcing NgRx operators rules.
|
package/dist/index.mjs
CHANGED
|
@@ -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,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fabdeh/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.9.0-beta.
|
|
4
|
+
"version": "0.9.0-beta.2",
|
|
5
5
|
"description": "My personal eslint config preset",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Fabien Dehopré",
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"tsx": "^4.20.6",
|
|
141
141
|
"typescript": "^5.9.3",
|
|
142
142
|
"vitest": "^4.0.14",
|
|
143
|
-
"@fabdeh/eslint-config": "0.9.0-beta.
|
|
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
|
}
|