eslint-config-angular-strict 2.2.32 → 2.2.33

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.
@@ -1,3 +0,0 @@
1
- import angularStrict from '../index.js';
2
-
3
- export default [...angularStrict];
@@ -1,9 +0,0 @@
1
- {
2
- "name": "eslint-config-angular-strict-tests",
3
- "version": "1.0.0",
4
- "private": true,
5
- "type": "module",
6
- "dependencies": {
7
- "@angular/core": "^20.3.2"
8
- }
9
- }
@@ -1,38 +0,0 @@
1
- <!-- Angular template with intentional violations to test ESLint rules -->
2
- <div class="sample-container">
3
- <h2>Sample Test Component</h2>
4
-
5
- <!-- Missing trackBy function in ngFor -->
6
- <ul>
7
- <li *ngFor="let item of _items">
8
- {{ item }}
9
- </li>
10
- </ul>
11
-
12
- <!-- Attributes not in alphabetical order -->
13
- <input
14
- type="text"
15
- placeholder="Enter name"
16
- id="name-field"
17
- class="form-control"
18
- [(ngModel)]="name">
19
-
20
- <!-- Missing label for accessibility -->
21
- <input type="checkbox" id="option1" name="options" value="1">
22
- Option 1
23
-
24
- <!-- Positive tabindex (accessibility violation) -->
25
- <button tabindex="2" (click)="processItems()">Process</button>
26
-
27
- <!-- Non-self-closing tags -->
28
- <br>
29
- <hr>
30
-
31
- <!-- Using any type in template -->
32
- <div>{{ config.anyProperty }}</div>
33
-
34
- <!-- Missing key events for mouse events -->
35
- <div (click)="loadData()" class="clickable">
36
- Click to load data
37
- </div>
38
- </div>
@@ -1,25 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'app-sample',
5
- templateUrl: './sample.component.html',
6
- })
7
-
8
- export class SampleComponent {
9
- @Input() config: any;
10
- private _items!: string[]; // Non-null assertion
11
- public name = 'sample';
12
-
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
- let test = 0;
21
- test++;
22
- this._items = ['one', 'two', 'three'];
23
- const { qux } = object;
24
- }
25
- }
@@ -1,25 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "declaration": false,
4
- "esModuleInterop": true,
5
- "experimentalDecorators": true,
6
- "forceConsistentCasingInFileNames": true,
7
- "importHelpers": true,
8
- "incremental": true,
9
- "lib": ["es2022", "dom"],
10
- "module": "es2022",
11
- "moduleResolution": "bundler",
12
- "noImplicitAny": true,
13
- "noImplicitOverride": true,
14
- "noUnusedLocals": true,
15
- "outDir": "./dist/out-tsc",
16
- "sourceMap": true,
17
- "strict": true,
18
- "target": "es2022"
19
- },
20
- "angularCompilerOptions": {
21
- "strictInjectionParameters": true,
22
- "strictStandalone": true,
23
- "strictTemplates": true
24
- }
25
- }