@will-stone/eslint-config 4.0.0 → 4.0.4
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/package.json +1 -1
- package/rules/typescript.js +4 -2
package/package.json
CHANGED
package/rules/typescript.js
CHANGED
|
@@ -187,7 +187,8 @@ module.exports = {
|
|
|
187
187
|
// Disallow duplicate class members
|
|
188
188
|
'@typescript-eslint/no-dupe-class-members': 'error',
|
|
189
189
|
|
|
190
|
-
|
|
190
|
+
// Deleting missing key/value is safe
|
|
191
|
+
'@typescript-eslint/no-dynamic-delete': 'off',
|
|
191
192
|
|
|
192
193
|
// ❌ const bar = foo!!!.bar
|
|
193
194
|
// ✅ const bar = foo!.bar
|
|
@@ -234,7 +235,8 @@ module.exports = {
|
|
|
234
235
|
'no-shadow': 'off',
|
|
235
236
|
'@typescript-eslint/no-shadow': ['error'],
|
|
236
237
|
|
|
237
|
-
|
|
238
|
+
// Aliasing can be useful
|
|
239
|
+
'@typescript-eslint/no-type-alias': 'off',
|
|
238
240
|
|
|
239
241
|
// Disallows unnecessary constraints on generic types
|
|
240
242
|
'@typescript-eslint/no-unnecessary-type-constraint': 'warn',
|