Socket
Socket
Sign inDemoInstall

eslint-config-xo-typescript

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-xo-typescript - npm Package Compare versions

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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc