This package has been deprecated

Author message:

Deprecated: Use @typescript-eslint/eslint-plugin instead

eslint-plugin-typescript

0.14.0 • Public • Published

eslint-plugin-typescript

TypeScript support for ESLint. (This is still in the very early stages, so please be patient.)

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install typescript-eslint-parser:

$ npm install typescript-eslint-parser --save-dev

Last, install eslint-plugin-typescript:

$ npm install eslint-plugin-typescript --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-typescript globally.

Usage

Add typescript-eslint-parser to the parser field and typescript to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "parser": "typescript-eslint-parser",
    "plugins": [
        "typescript"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "typescript/rule-name": "error"
    }
}

Supported Rules

Dependents (86)

Package Sidebar

Install

npm i eslint-plugin-typescript

Weekly Downloads

63,217

Version

0.14.0

License

MIT

Unpacked Size

192 kB

Total Files

53

Last publish

Collaborators

  • bradzacher