@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.
@@ -237,9 +237,12 @@ exports.bestPractices = {
237
237
  "@typescript-eslint/no-magic-numbers": [
238
238
  "error",
239
239
  {
240
- ignore: [0,
240
+ ignore: [
241
+ -1,
242
+ 0,
241
243
  1,
242
- 2],
244
+ 2,
245
+ ],
243
246
  ignoreArrayIndexes: true,
244
247
  },
245
248
  ],
@@ -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": "error",
98
+ "no-extra-boolean-cast": "off",
98
99
  /**
99
100
  * disallow unnecessary parentheses 🔧
100
101
  * https://eslint.org/docs/rules/no-extra-parens
@@ -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": "error",
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": "error",
435
+ "@typescript-eslint/unified-signatures": "warn",
437
436
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spscommerce/eslint-config-typescript",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "SPS official linter configuration for TypeScript.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {