@tada5hi/eslint-config-typescript

1.2.10 • Public • Published

@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-typescript

Usage

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,.js

License

Made with 💚

Published under MIT License.

Package Sidebar

Install

npm i @tada5hi/eslint-config-typescript

Weekly Downloads

1,424

Version

1.2.10

License

MIT

Unpacked Size

43.3 kB

Total Files

5

Last publish

Collaborators

  • tada5hi