eslint-config-angular-strict 0.5.9 → 0.6.1

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 (3) hide show
  1. package/README.md +24 -2
  2. package/package.json +1 -1
  3. package/template.js +0 -1
package/README.md CHANGED
@@ -18,13 +18,16 @@ yarn add eslint-config-angular-strict --dev
18
18
 
19
19
  Within your **ESLint** config file:
20
20
 
21
- ```json
21
+ ```javascript
22
22
  {
23
23
  "root": true,
24
24
  "overrides": [
25
25
  {
26
26
  "extends": ["angular-strict/typescript"],
27
- "files": ["*.ts"]
27
+ "files": ["*.ts"],
28
+ "parserOptions": {
29
+ "project": ["./tsconfig.json"] // Specify your tsconfig relative path
30
+ }
28
31
  },
29
32
  {
30
33
  "extends": ["angular-strict/template"],
@@ -34,6 +37,25 @@ Within your **ESLint** config file:
34
37
  }
35
38
  ```
36
39
 
40
+ ## Configuring Eslint for Typescript only projects
41
+
42
+ Within your **ESLint** config file:
43
+
44
+ ```javascript
45
+ {
46
+ "root": true,
47
+ "overrides": [
48
+ {
49
+ "extends": ["angular-strict/typescript"],
50
+ "files": ["*.ts"],
51
+ "parserOptions": {
52
+ "project": ["./tsconfig.json"] // Specify your tsconfig relative path
53
+ }
54
+ }
55
+ ]
56
+ }
57
+ ```
58
+
37
59
  ℹ️ `eslint` dependencies are included, so you can remove all `eslint` related dependencies from your project.
38
60
 
39
61
  ## Tsconfig
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-angular-strict",
3
- "version": "0.5.9",
3
+ "version": "0.6.1",
4
4
  "description": "Stricts rules to enforce a consistent code style for Angular development",
5
5
  "repository": {
6
6
  "type": "git",
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',