@tada5hi/eslint-config-typescript
v2.2.0
Published
Shared ESLint flat config for TypeScript projects (deprecated — use @tada5hi/eslint-config)
Maintainers
Readme
@tada5hi/eslint-config-typescript 📚
This package provides ESLint rules for TypeScript, including ECMAScript 6+.
Table of Contents
Installation
npm install --save-dev @tada5hi/eslint-config-typescriptUsage
To use this package ESLint needs to be configured properly.
Basic
Add the following line to the ESLint config file:
extends: [
+ '@tada5hi/eslint-config-typescript'
]Parser
In the ESLint configuration file, set the parserOptions.project to the location of the project tsconfig.json.
For example:
{
extends: [
'@tada5hi/eslint-config-typescript'
],
+ parserOptions: {
+ project: './tsconfig.json'
+ }
}Run
Open a terminal to the root of your project, and run the following command:
eslint --ext .ts,.jsLicense
Made with 💚
Published under MIT License.
