eslint-config-angular-strict 0.5.9 → 0.6.0
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/README.md +19 -0
- package/package.json +1 -1
- package/template.js +0 -1
package/README.md
CHANGED
|
@@ -34,6 +34,25 @@ Within your **ESLint** config file:
|
|
|
34
34
|
}
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
+
## Configuring Eslint for Typescript only projects
|
|
38
|
+
|
|
39
|
+
Within your **ESLint** config file:
|
|
40
|
+
|
|
41
|
+
```json
|
|
42
|
+
{
|
|
43
|
+
"root": true,
|
|
44
|
+
"overrides": [
|
|
45
|
+
{
|
|
46
|
+
"extends": ["angular-strict/typescript"],
|
|
47
|
+
"files": ["*.ts"],
|
|
48
|
+
"parserOptions": {
|
|
49
|
+
"project": ["./tsconfig.json"] // Specify your tsconfig relative path
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
37
56
|
ℹ️ `eslint` dependencies are included, so you can remove all `eslint` related dependencies from your project.
|
|
38
57
|
|
|
39
58
|
## Tsconfig
|
package/package.json
CHANGED
package/template.js
CHANGED
|
@@ -2,7 +2,6 @@ module.exports = {
|
|
|
2
2
|
extends: ['plugin:@angular-eslint/template/recommended'],
|
|
3
3
|
rules: {
|
|
4
4
|
'@angular-eslint/template/accessibility-elements-content': 'error',
|
|
5
|
-
'@angular-eslint/template/accessibility-interactive-supports-focus': 'error',
|
|
6
5
|
'@angular-eslint/template/accessibility-label-has-associated-control': 'error',
|
|
7
6
|
'@angular-eslint/template/accessibility-role-has-required-aria': 'error',
|
|
8
7
|
'@angular-eslint/template/accessibility-table-scope': 'error',
|