eslint-config-angular-strict 2.3.77 → 2.3.79

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.
Files changed (2) hide show
  1. package/index.js +24 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -170,13 +170,37 @@ export default [
170
170
  },
171
171
  { anyOf: [{ selector: 'get-method' }, { selector: 'set-method' }], groupName: 'public-accessors' },
172
172
  { anyOf: [{ selector: 'method' }, { selector: 'function-property' }], groupName: 'public-methods' },
173
+ {
174
+ anyOf: [
175
+ { modifiers: ['public', 'readonly'], selector: 'property' },
176
+ { modifiers: ['public', 'readonly'], selector: 'accessor-property' },
177
+ ],
178
+ groupName: 'public-readonly-fields',
179
+ },
180
+ {
181
+ anyOf: [
182
+ { modifiers: ['protected', 'readonly'], selector: 'property' },
183
+ { modifiers: ['protected', 'readonly'], selector: 'accessor-property' },
184
+ ],
185
+ groupName: 'protected-readonly-fields',
186
+ },
187
+ {
188
+ anyOf: [
189
+ { modifiers: ['private', 'readonly'], selector: 'property' },
190
+ { modifiers: ['private', 'readonly'], selector: 'accessor-property' },
191
+ ],
192
+ groupName: 'private-readonly-fields',
193
+ },
173
194
  ],
174
195
  groups: [
175
196
  'decorated-public',
176
197
  'decorated-private',
177
198
  ['property', 'accessor-property', 'static-property', 'static-accessor-property'],
199
+ 'public-readonly-fields',
178
200
  ['protected-property', 'protected-accessor-property', 'protected-static-property', 'protected-static-accessor-property'],
201
+ 'protected-readonly-fields',
179
202
  ['private-property', 'private-accessor-property', 'private-static-property', 'private-static-accessor-property'],
203
+ 'private-readonly-fields',
180
204
  'ctor',
181
205
  'static-block',
182
206
  { group: 'lifecycle', newlinesInside: 1, type: 'unsorted' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-angular-strict",
3
- "version": "2.3.77",
3
+ "version": "2.3.79",
4
4
  "description": "Modern ESLint configuration with strict rules for Angular development.",
5
5
  "keywords": [
6
6
  "angular",