eslint-config-angular-strict 22.0.0 → 22.0.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.
- package/README.md +5 -7
- package/index.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,7 +70,7 @@ Add the following to your `package.json`:
|
|
|
70
70
|
```jsonc
|
|
71
71
|
{
|
|
72
72
|
// ...
|
|
73
|
-
"type": "module"
|
|
73
|
+
"type": "module",
|
|
74
74
|
}
|
|
75
75
|
```
|
|
76
76
|
|
|
@@ -88,7 +88,6 @@ Make sure your `tsconfig.json` is properly configured:
|
|
|
88
88
|
"noUncheckedIndexedAccess": true,
|
|
89
89
|
"noUnusedLocals": true,
|
|
90
90
|
"noUnusedParameters": true,
|
|
91
|
-
"strict": true
|
|
92
91
|
},
|
|
93
92
|
"angularCompilerOptions": {
|
|
94
93
|
// ...
|
|
@@ -96,8 +95,7 @@ Make sure your `tsconfig.json` is properly configured:
|
|
|
96
95
|
"strictInjectionParameters": true,
|
|
97
96
|
"strictStandalone": true,
|
|
98
97
|
"strictTemplates": true,
|
|
99
|
-
|
|
100
|
-
}
|
|
98
|
+
},
|
|
101
99
|
}
|
|
102
100
|
```
|
|
103
101
|
|
|
@@ -127,8 +125,8 @@ This config handles **TypeScript formatting via ESLint**. Prettier should only b
|
|
|
127
125
|
"scripts": {
|
|
128
126
|
// ...
|
|
129
127
|
"lint": "ng lint && prettier --check \"src/**/*.html\"",
|
|
130
|
-
"lint:fix": "ng lint --fix && prettier --write \"src/**/*.html\""
|
|
131
|
-
}
|
|
128
|
+
"lint:fix": "ng lint --fix && prettier --write \"src/**/*.html\"",
|
|
129
|
+
},
|
|
132
130
|
}
|
|
133
131
|
```
|
|
134
132
|
|
|
@@ -144,7 +142,7 @@ This config handles **TypeScript formatting via ESLint**. Prettier should only b
|
|
|
144
142
|
"editor.formatOnSave": true,
|
|
145
143
|
"editor.formatOnType": true,
|
|
146
144
|
"eslint.format.enable": true,
|
|
147
|
-
"eslint.validate": [
|
|
145
|
+
"eslint.validate": [, /*...*/ "html", "typescript"],
|
|
148
146
|
}
|
|
149
147
|
```
|
|
150
148
|
|
package/index.js
CHANGED
|
@@ -278,6 +278,7 @@ export default [
|
|
|
278
278
|
'unicorn/no-abusive-eslint-disable': 'off',
|
|
279
279
|
'unicorn/no-array-for-each': 'off',
|
|
280
280
|
'unicorn/no-null': 'off',
|
|
281
|
+
'unicorn/no-this-outside-of-class': 'off',
|
|
281
282
|
'unicorn/prefer-includes-over-repeated-comparisons': ['error', { minimumComparisons: 6 }],
|
|
282
283
|
'unicorn/prefer-split-limit': 'off',
|
|
283
284
|
'unicorn/prefer-top-level-await': 'off',
|