Socket
Socket
Sign inDemoInstall

eslint-config-xo-typescript

Package Overview
Dependencies
Maintainers
1
Versions
80
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 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',

2

package.json
{
"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",

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