eslint-config-angular-strict 22.1.2 → 22.1.4
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/naming-conventions.js +4 -3
- package/package.json +5 -5
package/naming-conventions.js
CHANGED
|
@@ -261,15 +261,16 @@ export const namingConventionOverrides = [
|
|
|
261
261
|
},
|
|
262
262
|
},
|
|
263
263
|
|
|
264
|
-
// routes.ts / *.routes.ts: only imports + export const allowed (
|
|
264
|
+
// routes.ts / *.routes.ts: only imports + export const + function declarations allowed (routes + colocated resolvers/guards)
|
|
265
265
|
{
|
|
266
266
|
files: ['**/routes.ts', '**/*.routes.ts'],
|
|
267
267
|
rules: {
|
|
268
268
|
'no-restricted-syntax': [
|
|
269
269
|
'error',
|
|
270
270
|
{
|
|
271
|
-
selector:
|
|
272
|
-
|
|
271
|
+
selector:
|
|
272
|
+
'Program > :not(ImportDeclaration, ExportNamedDeclaration:has(> VariableDeclaration[kind="const"]), FunctionDeclaration, ExportNamedDeclaration:has(> FunctionDeclaration))',
|
|
273
|
+
message: 'Only imports, export const and function declarations allowed in *.routes.ts',
|
|
273
274
|
},
|
|
274
275
|
],
|
|
275
276
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-angular-strict",
|
|
3
|
-
"version": "22.1.
|
|
3
|
+
"version": "22.1.04",
|
|
4
4
|
"description": "Modern ESLint configuration with strict rules for Angular development.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"@angular-eslint/eslint-plugin-template": "22.1.0",
|
|
41
41
|
"@angular-eslint/template-parser": "22.1.0",
|
|
42
42
|
"@stylistic/eslint-plugin": "5.10.0",
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
44
|
-
"@typescript-eslint/parser": "8.
|
|
45
|
-
"@typescript-eslint/types": "8.
|
|
46
|
-
"@typescript-eslint/utils": "8.
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "8.65.0",
|
|
44
|
+
"@typescript-eslint/parser": "8.65.0",
|
|
45
|
+
"@typescript-eslint/types": "8.65.0",
|
|
46
|
+
"@typescript-eslint/utils": "8.65.0",
|
|
47
47
|
"eslint": "10.7.0",
|
|
48
48
|
"eslint-config-airbnb-extended": "3.1.1",
|
|
49
49
|
"eslint-plugin-import-x": "4.17.1",
|