Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@supercharge/eslint-config-typescript

supercharge63MIT4.0.2TypeScript support: included

A Shareable ESLint Config for Supercharge Projects using TypeScript

supercharge, superchargejs, eslint, eslintconfig, eslint-config, eslint-config-supercharge, code style, typescript, typescript-eslint, nodejs

readme

@supercharge/eslint-config-typescript

A shareable ESLint config for projects using TypeScript.

Installation

npm i -D eslint@8 @supercharge/eslint-config-typescript

Compatibility

eslint @supercharge/eslint-config-typescript
8.x >=2.x
7.x 1.x

Usage

Update your ESLint configuration file (for example the .eslintrc.js file) and extend @supercharge/typescript:

.eslintrc.js

module.exports = {
  extends: '@supercharge/typescript'
}

changelog

Changelog

4.0.2 - 2024-03-10

Updated

  • bump dependencies

4.0.1 - 2023-12-03

Updated

  • bump dependencies

4.0.0 - 2023-10-11

Updated

  • bump dependencies

Breaking Changes

  • require at least Node.js 18
  • bump @typescript-eslint/parser to v6.x
  • bump @typescript-eslint/eslint-plugin to v6.x

3.0.1 - 2023-07-25

Fixed

  • removed outdated (and invalid in v6) checkCompoundAssignments option from restrict-plus-operands. The related option is now called skipCompoundAssignments and it’s default value is true (which is what we want)

3.0.0 - 2023-07-09

Updated

  • bump dependencies

Breaking Changes

  • require at least Node.js 16
  • default to ecmaVersion 2021

2.3.4 - 2023-05-14

Updated

  • bump dependencies

2.3.3 - 2022-11-25

Updated

  • bump dependencies

2.3.2 - 2022-11-17

Updated

  • bump dependencies

2.3.1 - 2022-09-17

Updated

  • bump dependencies

2.3.0 - 2022-06-13

Added

  • added no-constant-binary-expression: 'error' rule in @supercharge/eslint-config

Updated

  • bump dependencies

Removed

  • removed the rule for method-signature-style allowing users to use shorthand method definitions

2.2.0 - 2022-06-01

Updated

  • bump dependencies

Removed

  • removed the rule for method-signature-style allowing users to use shorthand method definitions

2.1.0 - 2022-05-25

Added

  • support TypeScript 4.7

Updated

  • bump dependencies

2.0.0 - 2022-05-18

Added

  • enrolled our own rule set to avoid the dependency on standard-with-typescript
    • standard-with-typescript is not actively maintained at the moment and their peer dependencies don’t support ESLint 8.x (and related dependencies). This also blocks updating to new TypeScript versions because new versions of the @typescript-eslint plugin are incompatible with the outdated standard-with-typescript package
  • the ESLint rule set of this package is based on standard-with-typescript and we’re refining the rules over time
  • added the @supercharge/eslint-config as a dependency for base linting rules

Removed

  • removed ESLint config dependencies for standard-with-typescript

Breaking Changes

  • require ESLint 8.x

1.0.0 - 2021-12-21

Added

  • 1.0.0 release 🚀 🎉