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.
- package/.claude/settings.local.json +34 -0
- package/.nx/cache/18.3.5-nx.darwin-arm64.node +0 -0
- package/.nx/cache/nx_files.nxt +0 -0
- package/package.json +2 -2
- package/yarn-error.log +1352 -0
- package/tests/eslint.config.js +0 -3
- package/tests/package.json +0 -9
- package/tests/sample.component.html +0 -38
- package/tests/sample.component.ts +0 -25
- package/tests/tsconfig.json +0 -25
package/tests/eslint.config.js
DELETED
package/tests/package.json
DELETED
|
@@ -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
|
-
}
|
package/tests/tsconfig.json
DELETED
|
@@ -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
|
-
}
|