eslint-config-angular-strict 2.3.58 → 2.3.60

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 +3 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -139,8 +139,9 @@ export default [
139
139
  customGroups: [
140
140
  { groupName: 'decorated-public', modifiers: ['decorated', 'public'] },
141
141
  { groupName: 'decorated-private', modifiers: ['decorated', 'private'] },
142
+ { groupName: 'ctor', selector: 'constructor' },
142
143
  {
143
- elementNamePattern: '^ng(OnChanges|OnInit|DoCheck|AfterContentInit|AfterContentChecked|AfterViewInit|AfterViewChecked|OnDestroy)$',
144
+ elementNamePattern: '^(init|ng(OnChanges|OnInit|DoCheck|AfterContentInit|AfterContentChecked|AfterViewInit|AfterViewChecked|OnDestroy))$',
144
145
  groupName: 'lifecycle',
145
146
  },
146
147
  { anyOf: [{ selector: 'get-method' }, { selector: 'set-method' }], groupName: 'public-accessors' },
@@ -165,7 +166,7 @@ export default [
165
166
  'decorated-private',
166
167
  ['property', 'accessor-property', 'static-property', 'static-accessor-property'],
167
168
  ['private-property', 'private-accessor-property', 'private-static-property', 'private-static-accessor-property'],
168
- 'constructor',
169
+ 'ctor',
169
170
  'static-block',
170
171
  { group: 'lifecycle', newlinesInside: 1, type: 'unsorted' },
171
172
  { group: 'public-accessors', newlinesInside: 1 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-angular-strict",
3
- "version": "2.3.58",
3
+ "version": "2.3.60",
4
4
  "description": "Modern ESLint configuration with strict rules for Angular development.",
5
5
  "keywords": [
6
6
  "angular",