eslint-config-angular-strict 2.2.34 → 2.2.36
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 +16 -24
- package/logo.svg +1 -0
- package/package.json +1 -1
- package/yarn-error.log +0 -1352
package/README.md
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
<
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="logo.svg" alt="Angular Strict ESLint Logo" width="120" height="120">
|
|
3
|
+
</p>
|
|
2
4
|
|
|
3
5
|
<h1 align="center">Angular Strict ESLint</h1>
|
|
4
6
|
|
|
@@ -12,7 +14,7 @@
|
|
|
12
14
|
|
|
13
15
|
<br>
|
|
14
16
|
|
|
15
|
-
## ⚠️
|
|
17
|
+
## ⚠️ V2 - Flat Config
|
|
16
18
|
|
|
17
19
|
This package includes **ESLint 9** and uses the new **flat configuration format** : [ESLint 9 Migration Guide](https://eslint.org/docs/latest/use/configure/migration-guide).
|
|
18
20
|
|
|
@@ -97,33 +99,23 @@ Make sure your `tsconfig.json` is properly configured:
|
|
|
97
99
|
|
|
98
100
|
## Features
|
|
99
101
|
|
|
100
|
-
### Angular Rules
|
|
101
|
-
|
|
102
|
-
- ✅ **Best practices**: Standalone components, view encapsulation, injectable provided-in
|
|
103
|
-
- ✅ **Component standards**: Class suffixes (Component, Modal, Page), kebab-case selectors
|
|
104
|
-
- ✅ **Directive standards**: CamelCase selectors, proper class suffixes
|
|
105
|
-
- ✅ **Lifecycle enforcement**: Interface usage, method ordering, async restrictions
|
|
106
|
-
- ✅ **Template validation**: Accessibility, attributes ordering, trackBy functions
|
|
107
|
-
|
|
108
|
-
### TypeScript Rules
|
|
102
|
+
### 🅰️ Angular Rules
|
|
109
103
|
|
|
110
|
-
-
|
|
111
|
-
-
|
|
112
|
-
-
|
|
113
|
-
- ✅ **Strict typing**: Member ordering, type safety, no explicit any allowed
|
|
104
|
+
- 🏗️ **Best practices**: Standalone components, view encapsulation
|
|
105
|
+
- 🎯 **Component standards**: Class suffixes, kebab-case selectors
|
|
106
|
+
- 🔄 **Lifecycle enforcement**: Interface usage, method ordering
|
|
114
107
|
|
|
115
|
-
###
|
|
108
|
+
### 📘 TypeScript Rules
|
|
116
109
|
|
|
117
|
-
-
|
|
118
|
-
-
|
|
119
|
-
-
|
|
120
|
-
- ✅ **Import organization**: Alphabetical ordering with framework prioritization
|
|
110
|
+
- 📦 **Code organization**: Import/export management, type definitions
|
|
111
|
+
- ⚡ **Modern patterns**: Optional chaining, destructuring, async/await
|
|
112
|
+
- 🛡️ **Strict typing**: Member ordering, type safety, no explicit any
|
|
121
113
|
|
|
122
|
-
###
|
|
114
|
+
### 🎨 Style & Formatting
|
|
123
115
|
|
|
124
|
-
-
|
|
125
|
-
-
|
|
126
|
-
-
|
|
116
|
+
- 📋 **Airbnb compliance**: 531 strict rules from eslint-config-airbnb-extended
|
|
117
|
+
- 📏 **Code structure**: Max line length (180), proper spacing
|
|
118
|
+
- 🔤 **Import organization**: Alphabetical ordering with framework prioritization
|
|
127
119
|
|
|
128
120
|
## Contributing
|
|
129
121
|
|
package/logo.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg height="200" viewBox="0 0 200 200" width="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a" x1="0%" x2="100%" y1="0%" y2="100%"><stop offset="0" stop-color="#4b32c3"/><stop offset="1" stop-color="#3b28a3"/></linearGradient><path d="m100 25 60 25-5 75-55 50-55-50-5-75z" fill="#fff" opacity=".95"/><path d="m100 45 30 20v40l-30 20-30-20v-40z" fill="url(#a)"/><path d="m100 55-15 40h10l3-7h4l3 7h10zm-4 23 4-10 4 10z" fill="#fff"/><g fill="url(#a)"><rect height="3" rx="1.5" width="50" x="75" y="135"/><rect height="2" rx="1" width="40" x="80" y="142"/><rect height="2" rx="1" width="30" x="85" y="148"/></g></svg>
|