0.3.1 • Published 4 months ago

@topotal/eslint-config-typescript v0.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@topotal/eslint-config-typescript

npm version

This is a common ESlint setting for TypeScript used within Topotal

Installation

yarn add -D @topotal/eslint-config-typescript

If your npm version is lower than v6, please also install the peerDependencies package.

yarn add -D @typescript-eslint/eslint-plugin @typescript-eslint/parser

Usage

Legacy ESLint Configuration (ESLint v8 and below)

Add @topotal/eslint-config-typescript to eslintrc extends.

{
  "extends": [
    "@topotal/eslint-config-typescript"
  ]
}

Flat ESLint Configuration (ESLint v9 and above)

In your eslint.config.js:

const topotalTypescriptConfig = require('@topotal/eslint-config-typescript/flat');

// Or using the conditional exports (recommended)
// const { flat: topotalTypescriptConfig } = require('@topotal/eslint-config-typescript');

module.exports = [
  topotalTypescriptConfig,
  // other configs...
];
0.3.1

4 months ago

0.2.5

1 year ago

0.2.4

1 year ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

3 years ago

0.2.0

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.0.3

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago