eslint-config-angular-strict 22.0.13 → 22.0.15
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 +3 -0
- package/index.js +1 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -88,6 +88,7 @@ Make sure your `tsconfig.json` is properly configured:
|
|
|
88
88
|
"noUncheckedIndexedAccess": true,
|
|
89
89
|
"noUnusedLocals": true,
|
|
90
90
|
"noUnusedParameters": true,
|
|
91
|
+
"target": "esnext",
|
|
91
92
|
},
|
|
92
93
|
"angularCompilerOptions": {
|
|
93
94
|
// ...
|
|
@@ -99,6 +100,8 @@ Make sure your `tsconfig.json` is properly configured:
|
|
|
99
100
|
}
|
|
100
101
|
```
|
|
101
102
|
|
|
103
|
+
> **ℹ️ Note**: `target: "esnext"` auto-includes the latest standard libs, which several Unicorn rules require. Without it, some rules may suggest APIs that TypeScript doesn't recognize as built-in.
|
|
104
|
+
|
|
102
105
|
## Prettier
|
|
103
106
|
|
|
104
107
|
This config handles **TypeScript formatting via ESLint**. Prettier should only be used for **HTML templates**.
|
package/index.js
CHANGED
|
@@ -285,8 +285,6 @@ export default [
|
|
|
285
285
|
'unicorn/prefer-await': 'off',
|
|
286
286
|
'unicorn/prefer-includes-over-repeated-comparisons': ['error', { minimumComparisons: 6 }],
|
|
287
287
|
'unicorn/prefer-split-limit': 'off',
|
|
288
|
-
'unicorn/prefer-temporal': 'off',
|
|
289
|
-
'unicorn/prefer-top-level-await': 'off',
|
|
290
288
|
'unicorn/switch-case-braces': ['error', 'avoid'],
|
|
291
289
|
'unicorn/try-complexity': ['error', { max: 5 }],
|
|
292
290
|
},
|
|
@@ -313,6 +311,7 @@ export default [
|
|
|
313
311
|
|
|
314
312
|
// Unicorn rules
|
|
315
313
|
'unicorn/no-empty-file': 'off',
|
|
314
|
+
'unicorn/no-incorrect-template-string-interpolation': 'off',
|
|
316
315
|
'unicorn/no-useless-template-literals': 'off',
|
|
317
316
|
'unicorn/prefer-string-raw': 'off',
|
|
318
317
|
'unicorn/template-indent': 'off',
|