eslint-config-xo-typescript
Advanced tools
Comparing version 0.30.0 to 0.31.0
24
index.js
@@ -270,3 +270,4 @@ 'use strict'; | ||
'@typescript-eslint/no-extra-non-null-assertion': 'error', | ||
// TODO: Try to enable this again in 2021. It's currently a bit buggy, most likely caused by TypeScript itself. | ||
// '@typescript-eslint/no-extra-non-null-assertion': 'error', | ||
@@ -297,5 +298,12 @@ // Disabled because it's buggy. It transforms `...(personalToken ? {Authorization: `token ${personalToken}`} : {})` into `...personalToken ? {Authorization: `token ${personalToken}`} : {}` which is not valid. | ||
], | ||
'no-void': [ | ||
'error', | ||
{ | ||
allowAsStatement: true // To allow `ignoreVoid` in `@typescript-eslint/no-floating-promises` | ||
} | ||
], | ||
'@typescript-eslint/no-floating-promises': [ | ||
'error', | ||
{ | ||
ignoreVoid: true, // Prepend a function call with `void` to mark it as not needing to be await'ed, which silences this rule. | ||
ignoreIIFE: true | ||
@@ -323,3 +331,4 @@ } | ||
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error', | ||
// TODO: Try to enable this again in 2021. It's currently a bit buggy, most likely caused by TypeScript itself. | ||
// '@typescript-eslint/no-non-null-asserted-optional-chain': 'error', | ||
@@ -343,3 +352,12 @@ // Disabled until this is resolved: | ||
'no-constant-condition': 'off', // `no-unnecessary-condition` is essentially a stricter version of `no-constant-condition`. | ||
'@typescript-eslint/no-unnecessary-condition': 'error', | ||
// TODO: Try to enable this again in 2023 *if* the following are resolved: | ||
// - https://github.com/microsoft/TypeScript/issues/13778 (otherwise, it will report on if checks for elements extracted from array) | ||
// - https://github.com/microsoft/TypeScript/issues/36393 | ||
// - The rule needs a way to ignore runtime type-checks: https://github.com/sindresorhus/refined-github/pull/3168 | ||
// - Run the rule on https://github.com/sindresorhus/refined-github and ensure there are no false-positives | ||
// | ||
// Also related: https://github.com/typescript-eslint/typescript-eslint/issues/1798 | ||
// '@typescript-eslint/no-unnecessary-condition': 'error', | ||
'@typescript-eslint/no-unnecessary-qualifier': 'error', | ||
@@ -346,0 +364,0 @@ '@typescript-eslint/no-unnecessary-type-arguments': 'error', |
{ | ||
"name": "eslint-config-xo-typescript", | ||
"version": "0.30.0", | ||
"version": "0.31.0", | ||
"description": "ESLint shareable config for TypeScript to be used with eslint-config-xo", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19211
473