eslint-config-angular-strict 2.3.83 → 2.3.84

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/README.md CHANGED
@@ -24,6 +24,7 @@ A production-ready, opinionated ESLint configuration that enforces best practice
24
24
  📘 **TypeScript**: Promise-async, type imports, strict typing, type safety, extraneous classes,...<br>
25
25
  ✨ **Code Quality**: Complexity max, file length control, import cycles detection, 100+ Unicorn best practices,...<br>
26
26
  🎨 **Style**: Airbnb extended, max line length, object/class newlines, sorted classes/imports/objects/types,...<br>
27
+ 📁 **Naming**: File/folder/class suffix conventions enforced (components, services, pipes, interfaces,...)<br>
27
28
  🔍 **Templates**: 30+ rules with alphabetical attrs, complexity max, control flow, trackBy, a11y, no-any,...
28
29
 
29
30
  ## What's Included
@@ -4,10 +4,10 @@ const classSuffixRestriction = (suffix, location) => ({
4
4
  message: `Classes in ${location} must end with "${suffix}"`,
5
5
  });
6
6
 
7
- // Files containing only imports + export const should be named *.constant.ts
7
+ // Files containing only imports + export const (literal values, not functions) should be named *.constant.ts
8
8
  const constantsFileRestriction = {
9
9
  selector:
10
- 'Program:has(ExportNamedDeclaration VariableDeclaration[kind="const"]):not(:has(:matches(ClassDeclaration, FunctionDeclaration, TSInterfaceDeclaration, TSEnumDeclaration, TSTypeAliasDeclaration)))',
10
+ 'Program:has(ExportNamedDeclaration VariableDeclaration[kind="const"]):not(:has(:matches(ClassDeclaration, FunctionDeclaration, TSInterfaceDeclaration, TSEnumDeclaration, TSTypeAliasDeclaration))):not(:has(VariableDeclarator > :matches(ArrowFunctionExpression, FunctionExpression, CallExpression)))',
11
11
  message: 'Files containing only constants must be named constants/*.constant.ts',
12
12
  };
13
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-angular-strict",
3
- "version": "2.3.83",
3
+ "version": "2.3.84",
4
4
  "description": "Modern ESLint configuration with strict rules for Angular development.",
5
5
  "keywords": [
6
6
  "angular",