This package provides ESLint rules for TypeScript, including ECMAScript 6+.
Table of Contents
npm install --save-dev @tada5hi/eslint-config-typescript
To use this package ESLint needs to be configured properly.
Add the following line to the ESLint config file:
extends: [
+ '@tada5hi/eslint-config-typescript'
]
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'
+ }
}
Open a terminal to the root of your project, and run the following command:
eslint --ext .ts,.js
Made with 💚
Published under MIT License.