eslint-config-angular-strict 2.2.4 → 2.2.6

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.
package/index.js CHANGED
@@ -138,7 +138,7 @@ export default [
138
138
  'no-plusplus': 'off',
139
139
  'no-restricted-globals': 'off',
140
140
  'no-return-assign': 'off',
141
- 'no-underscore-dangle': 'off',
141
+ 'no-underscore-dangle': ['error', { allowAfterThis: true }],
142
142
  'radix': ['error', 'as-needed'],
143
143
  'sort-keys': ['error', 'asc', { allowLineSeparatedGroups: true, natural: true }]
144
144
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-angular-strict",
3
- "version": "2.2.04",
3
+ "version": "2.2.06",
4
4
  "description": "Modern ESLint configuration with strict rules for Angular development.",
5
5
  "keywords": [
6
6
  "angular",
@@ -10,12 +10,13 @@ export class SampleComponent {
10
10
  private _items!: string[]; // Non-null assertion
11
11
  public name = 'sample';
12
12
 
13
- constructor() {
14
- const obj1 = {
15
- a: 1,
16
- C: 4,
17
- b: 2,
18
- c: 3,
19
- };
13
+ constructor(
14
+ private _testt = 'test', // 'no-underscore-dangle'
15
+ ) {
16
+ const _test = parseInt('42', 7); // 'as-needed' radix
17
+ }
18
+
19
+ private _test() {
20
+ this._items = ['one', 'two', 'three'];
20
21
  }
21
22
  }