eslint-config-angular-strict 2.3.50 → 2.3.52

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
@@ -124,6 +124,30 @@ export default [
124
124
  '@typescript-eslint/unbound-method': ['error', { ignoreStatic: true }],
125
125
 
126
126
  // Perfectionist rules
127
+ 'perfectionist/sort-classes': [
128
+ 'error',
129
+ {
130
+ customGroups: [
131
+ { groupName: 'decorated-public', modifiers: ['decorated', 'public'], selector: 'property' },
132
+ { groupName: 'decorated-private', modifiers: ['decorated', 'private'], selector: 'property' },
133
+ ],
134
+ groups: [
135
+ 'decorated-public',
136
+ 'decorated-private',
137
+ ['property', 'accessor-property'],
138
+ ['private-property', 'private-accessor-property'],
139
+ 'constructor',
140
+ ['get-method', 'set-method'],
141
+ ['method', 'function-property'],
142
+ ['private-method', 'private-function-property'],
143
+ 'unknown',
144
+ ],
145
+ newlinesBetween: 1,
146
+ newlinesInside: 'ignore',
147
+ order: 'asc',
148
+ type: 'natural',
149
+ },
150
+ ],
127
151
  'perfectionist/sort-imports': [
128
152
  'error',
129
153
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-angular-strict",
3
- "version": "2.3.50",
3
+ "version": "2.3.52",
4
4
  "description": "Modern ESLint configuration with strict rules for Angular development.",
5
5
  "keywords": [
6
6
  "angular",