@spscommerce/eslint-config-typescript 0.0.7 → 0.0.8
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.
|
@@ -93,8 +93,9 @@ exports.possibleErrors = {
|
|
|
93
93
|
/**
|
|
94
94
|
* disallow double-negation boolean casts in a boolean context ✅ 🔧
|
|
95
95
|
* https://eslint.org/docs/rules/no-extra-boolean-cast
|
|
96
|
+
* Disabled because it conflicts with @typescript-eslint/strict-boolean-expressions
|
|
96
97
|
*/
|
|
97
|
-
"no-extra-boolean-cast": "
|
|
98
|
+
"no-extra-boolean-cast": "off",
|
|
98
99
|
/**
|
|
99
100
|
* disallow unnecessary parentheses 🔧
|
|
100
101
|
* https://eslint.org/docs/rules/no-extra-parens
|
package/lib/rules/typescript.js
CHANGED
|
@@ -111,10 +111,7 @@ exports.typescript = {
|
|
|
111
111
|
* Requires expressions of type void to appear in statement position 🔧 💭
|
|
112
112
|
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-confusing-void-expression.md
|
|
113
113
|
*/
|
|
114
|
-
"@typescript-eslint/no-confusing-void-expression": [
|
|
115
|
-
"error",
|
|
116
|
-
{ "ignoreArrowShorthand": true }
|
|
117
|
-
],
|
|
114
|
+
"@typescript-eslint/no-confusing-void-expression": ["error", { ignoreArrowShorthand: true }],
|
|
118
115
|
/**
|
|
119
116
|
* Disallow the delete operator with computed key expressions 🔧
|
|
120
117
|
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-dynamic-delete.md
|
|
@@ -284,8 +281,10 @@ exports.typescript = {
|
|
|
284
281
|
/**
|
|
285
282
|
* Prefers a non-null assertion over explicit type cast when possible 🔧 💭
|
|
286
283
|
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/non-nullable-type-assertion-style.md
|
|
284
|
+
* Disabled because it enforces use of postfix ! operator, which is banned by
|
|
285
|
+
* @typescript-eslint/no-non-null-assertion (a recommended rule)
|
|
287
286
|
*/
|
|
288
|
-
"@typescript-eslint/non-nullable-type-assertion-style": "
|
|
287
|
+
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
|
289
288
|
/**
|
|
290
289
|
* Prefer usage of as const over literal type ✅ 🔧
|
|
291
290
|
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-as-const.md
|
|
@@ -433,5 +432,5 @@ exports.typescript = {
|
|
|
433
432
|
* one by using a union or an optional/rest parameter
|
|
434
433
|
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/unified-signatures.md
|
|
435
434
|
*/
|
|
436
|
-
"@typescript-eslint/unified-signatures": "
|
|
435
|
+
"@typescript-eslint/unified-signatures": "warn",
|
|
437
436
|
};
|