eslint-config-angular-strict 22.1.3 → 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.
@@ -261,15 +261,16 @@ export const namingConventionOverrides = [
261
261
  },
262
262
  },
263
263
 
264
- // routes.ts / *.routes.ts: only imports + export const allowed (route definitions, any folder)
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: 'Program > :not(ImportDeclaration, ExportNamedDeclaration:has(> VariableDeclaration[kind="const"]))',
272
- message: 'Only imports and export const allowed in *.routes.ts',
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.03",
3
+ "version": "22.1.04",
4
4
  "description": "Modern ESLint configuration with strict rules for Angular development.",
5
5
  "keywords": [
6
6
  "angular",