eslint-config-angular-strict 2.3.77 → 2.3.78

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
@@ -140,6 +140,27 @@ export default [
140
140
  elementNamePattern: '^(init|ng(OnChanges|OnInit|DoCheck|AfterContentInit|AfterContentChecked|AfterViewInit|AfterViewChecked|OnDestroy))$',
141
141
  groupName: 'lifecycle',
142
142
  },
143
+ {
144
+ anyOf: [
145
+ { modifiers: ['public', 'readonly'], selector: 'property' },
146
+ { modifiers: ['public', 'readonly'], selector: 'accessor-property' },
147
+ ],
148
+ groupName: 'public-readonly-fields',
149
+ },
150
+ {
151
+ anyOf: [
152
+ { modifiers: ['protected', 'readonly'], selector: 'property' },
153
+ { modifiers: ['protected', 'readonly'], selector: 'accessor-property' },
154
+ ],
155
+ groupName: 'protected-readonly-fields',
156
+ },
157
+ {
158
+ anyOf: [
159
+ { modifiers: ['private', 'readonly'], selector: 'property' },
160
+ { modifiers: ['private', 'readonly'], selector: 'accessor-property' },
161
+ ],
162
+ groupName: 'private-readonly-fields',
163
+ },
143
164
  {
144
165
  anyOf: [
145
166
  { modifiers: ['private'], selector: 'get-method' },
@@ -175,8 +196,11 @@ export default [
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.78",
4
4
  "description": "Modern ESLint configuration with strict rules for Angular development.",
5
5
  "keywords": [
6
6
  "angular",