eslint-config-angular-strict 2.3.74 → 2.3.75
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 +5 -1
- package/index.js +17 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -90,9 +90,12 @@ Make sure your `tsconfig.json` is properly configured:
|
|
|
90
90
|
"strict": true
|
|
91
91
|
},
|
|
92
92
|
"angularCompilerOptions": {
|
|
93
|
+
// ...
|
|
94
|
+
"extendedDiagnostics": { "defaultCategory": "error" },
|
|
93
95
|
"strictInjectionParameters": true,
|
|
94
96
|
"strictStandalone": true,
|
|
95
|
-
"strictTemplates": true
|
|
97
|
+
"strictTemplates": true,
|
|
98
|
+
"typeCheckHostBindings": true
|
|
96
99
|
}
|
|
97
100
|
}
|
|
98
101
|
```
|
|
@@ -134,6 +137,7 @@ This config handles **TypeScript formatting via ESLint**. Prettier should only b
|
|
|
134
137
|
|
|
135
138
|
```jsonc
|
|
136
139
|
{
|
|
140
|
+
// ...
|
|
137
141
|
"[html]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
|
|
138
142
|
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
|
|
139
143
|
"editor.formatOnSave": true,
|
package/index.js
CHANGED
|
@@ -154,6 +154,20 @@ export default [
|
|
|
154
154
|
],
|
|
155
155
|
groupName: 'private-methods',
|
|
156
156
|
},
|
|
157
|
+
{
|
|
158
|
+
anyOf: [
|
|
159
|
+
{ modifiers: ['protected'], selector: 'get-method' },
|
|
160
|
+
{ modifiers: ['protected'], selector: 'set-method' },
|
|
161
|
+
],
|
|
162
|
+
groupName: 'protected-accessors',
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
anyOf: [
|
|
166
|
+
{ modifiers: ['protected'], selector: 'method' },
|
|
167
|
+
{ modifiers: ['protected'], selector: 'function-property' },
|
|
168
|
+
],
|
|
169
|
+
groupName: 'protected-methods',
|
|
170
|
+
},
|
|
157
171
|
{ anyOf: [{ selector: 'get-method' }, { selector: 'set-method' }], groupName: 'public-accessors' },
|
|
158
172
|
{ anyOf: [{ selector: 'method' }, { selector: 'function-property' }], groupName: 'public-methods' },
|
|
159
173
|
],
|
|
@@ -161,12 +175,15 @@ export default [
|
|
|
161
175
|
'decorated-public',
|
|
162
176
|
'decorated-private',
|
|
163
177
|
['property', 'accessor-property', 'static-property', 'static-accessor-property'],
|
|
178
|
+
['protected-property', 'protected-accessor-property', 'protected-static-property', 'protected-static-accessor-property'],
|
|
164
179
|
['private-property', 'private-accessor-property', 'private-static-property', 'private-static-accessor-property'],
|
|
165
180
|
'ctor',
|
|
166
181
|
'static-block',
|
|
167
182
|
{ group: 'lifecycle', newlinesInside: 1, type: 'unsorted' },
|
|
168
183
|
{ group: 'public-accessors', newlinesInside: 1 },
|
|
169
184
|
{ group: 'public-methods', newlinesInside: 1 },
|
|
185
|
+
{ group: 'protected-accessors', newlinesInside: 1 },
|
|
186
|
+
{ group: 'protected-methods', newlinesInside: 1 },
|
|
170
187
|
{ group: 'private-accessors', newlinesInside: 1 },
|
|
171
188
|
{ group: 'private-methods', newlinesInside: 1 },
|
|
172
189
|
'unknown',
|