eslint-config-angular-strict 2.3.76 → 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 -5
  2. package/package.json +1 -2
package/index.js CHANGED
@@ -4,7 +4,6 @@ import angularTemplateParser from '@angular-eslint/template-parser';
4
4
  import angularTemplatePlugin from '@angular-eslint/eslint-plugin-template';
5
5
  import importXPlugin from 'eslint-plugin-import-x';
6
6
  import perfectionistPlugin from 'eslint-plugin-perfectionist';
7
- import rdlaboRulesPlugin from '@rdlabo/eslint-plugin-rules';
8
7
  import stylistic from '@stylistic/eslint-plugin';
9
8
  import tsEslintParser from '@typescript-eslint/parser';
10
9
  import tsEslintPlugin from '@typescript-eslint/eslint-plugin';
@@ -15,7 +14,6 @@ export default [
15
14
  ignores: ['dist/**', 'node_modules/**'],
16
15
  plugins: {
17
16
  '@angular-eslint/template': angularTemplatePlugin,
18
- '@rdlabo/rules': rdlaboRulesPlugin,
19
17
  '@stylistic': stylistic,
20
18
  '@typescript-eslint': tsEslintPlugin,
21
19
  'import-x': importXPlugin,
@@ -62,9 +60,6 @@ export default [
62
60
  'import-x/order': 'off',
63
61
  'import-x/prefer-default-export': 'off',
64
62
 
65
- // Rdlabo rules
66
- '@rdlabo/rules/component-property-use-readonly': ['error', { ignorePrivateProperties: true }],
67
-
68
63
  // Stylistic rules
69
64
  '@stylistic/array-element-newline': ['error', { consistent: true, multiline: true }],
70
65
  '@stylistic/arrow-parens': ['error', 'as-needed', { requireForBlockBody: true }],
@@ -145,6 +140,27 @@ export default [
145
140
  elementNamePattern: '^(init|ng(OnChanges|OnInit|DoCheck|AfterContentInit|AfterContentChecked|AfterViewInit|AfterViewChecked|OnDestroy))$',
146
141
  groupName: 'lifecycle',
147
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
+ },
148
164
  {
149
165
  anyOf: [
150
166
  { modifiers: ['private'], selector: 'get-method' },
@@ -180,8 +196,11 @@ export default [
180
196
  'decorated-public',
181
197
  'decorated-private',
182
198
  ['property', 'accessor-property', 'static-property', 'static-accessor-property'],
199
+ 'public-readonly-fields',
183
200
  ['protected-property', 'protected-accessor-property', 'protected-static-property', 'protected-static-accessor-property'],
201
+ 'protected-readonly-fields',
184
202
  ['private-property', 'private-accessor-property', 'private-static-property', 'private-static-accessor-property'],
203
+ 'private-readonly-fields',
185
204
  'ctor',
186
205
  'static-block',
187
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.76",
3
+ "version": "2.3.78",
4
4
  "description": "Modern ESLint configuration with strict rules for Angular development.",
5
5
  "keywords": [
6
6
  "angular",
@@ -39,7 +39,6 @@
39
39
  "@angular-eslint/eslint-plugin": "21.3.1",
40
40
  "@angular-eslint/eslint-plugin-template": "21.3.1",
41
41
  "@angular-eslint/template-parser": "21.3.1",
42
- "@rdlabo/eslint-plugin-rules": "21.0.0",
43
42
  "@stylistic/eslint-plugin": "5.10.0",
44
43
  "@typescript-eslint/eslint-plugin": "8.59.2",
45
44
  "@typescript-eslint/parser": "8.59.2",