eslint-config-xo-typescript
Advanced tools
Comparing version 4.0.0 to 5.0.0
13
index.js
@@ -447,2 +447,3 @@ 'use strict'; | ||
{ | ||
checkThenables: true, | ||
ignoreVoid: true, // Prepend a function call with `void` to mark it as not needing to be await'ed, which silences this rule. | ||
@@ -509,3 +510,3 @@ ignoreIIFE: true | ||
'no-throw-literal': 'off', | ||
'@typescript-eslint/no-throw-literal': [ | ||
'@typescript-eslint/only-throw-error': [ | ||
'error', | ||
@@ -532,2 +533,3 @@ { | ||
'@typescript-eslint/no-unnecessary-parameter-property-assignment': 'error', | ||
'@typescript-eslint/no-unnecessary-qualifier': 'error', | ||
@@ -537,2 +539,7 @@ '@typescript-eslint/no-unnecessary-type-arguments': 'error', | ||
'@typescript-eslint/no-unnecessary-type-constraint': 'error', | ||
// TODO: Enable at some point. Currently disabled because it's marked as unstable. | ||
// https://typescript-eslint.io/rules/no-unnecessary-type-parameters/ | ||
// '@typescript-eslint/no-unnecessary-type-parameters': 'error', | ||
'@typescript-eslint/no-unsafe-argument': 'error', | ||
@@ -620,3 +627,2 @@ '@typescript-eslint/no-unsafe-assignment': 'error', | ||
'@typescript-eslint/prefer-string-starts-ends-with': 'error', | ||
'@typescript-eslint/prefer-ts-expect-error': 'error', | ||
'@typescript-eslint/promise-function-async': 'error', | ||
@@ -685,3 +691,3 @@ quotes: 'off', | ||
// ], | ||
'default-case': 'off', // It conflicts with `@typescript-eslint/switch-exhaustiveness-check`. It would still be nice to have this rule for non-exhaustive switches though. | ||
@@ -722,2 +728,3 @@ '@typescript-eslint/switch-exhaustiveness-check': [ | ||
], | ||
'@typescript-eslint/use-unknown-in-catch-callback-variable': 'error', | ||
@@ -724,0 +731,0 @@ // Disabled per typescript-eslint recommendation: https://github.com/typescript-eslint/typescript-eslint/blob/e26e43ffba96f6d46198b22f1c8dd5c814db2652/docs/getting-started/linting/FAQ.md#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors |
{ | ||
"name": "eslint-config-xo-typescript", | ||
"version": "4.0.0", | ||
"version": "5.0.0", | ||
"description": "ESLint shareable config for TypeScript to be used with eslint-config-xo", | ||
@@ -48,4 +48,4 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^7.0.2", | ||
"@typescript-eslint/parser": "^7.0.2", | ||
"@typescript-eslint/eslint-plugin": "^7.16.0", | ||
"@typescript-eslint/parser": "^7.16.0", | ||
"ava": "^6.1.2", | ||
@@ -56,4 +56,4 @@ "eslint": "^8.56.0", | ||
"peerDependencies": { | ||
"@typescript-eslint/eslint-plugin": ">=7.0.2", | ||
"@typescript-eslint/parser": ">=7.0.2", | ||
"@typescript-eslint/eslint-plugin": ">=7.16.0", | ||
"@typescript-eslint/parser": ">=7.16.0", | ||
"eslint": ">=8.56.0", | ||
@@ -60,0 +60,0 @@ "typescript": ">=5.0.0" |
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
26999
734