Wondering what’s next for npm?Check out our public roadmap! »

    @typescript-eslint/eslint-plugin-tslint
    TypeScript icon, indicating that this package has built-in type declarations

    4.27.0 • Public • Published

    ESLint Plugin TSLint

    ESLint plugin wraps a TSLint configuration and lints the whole source using TSLint.

    CI NPM Version NPM Downloads

    Installation

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

    Usage

    Configure in your ESLint config file:

    {
      "plugins": [
        "@typescript-eslint/tslint"
      ],
      "parserOptions": {
          "project": "tsconfig.json",
      },
      "rules": {
        "@typescript-eslint/tslint/config": ["warn", {
          "lintFile": "", // path to tslint.json of your project
          "rules": {
            // tslint rules (will be used if `lintFile` is not specified)
          },
          "rulesDirectory": [
            // array of paths to directories with rules, e.g. 'node_modules/tslint/lib/rules' (will be used if `lintFile` is not specified)
          ]
        }],
      }
    }

    Note: The ability to automatically fix problems with --fix is unavailable for TSLint rules loaded with this plugin.

    Rules

    Plugin contains only single rule @typescript-eslint/tslint/config.

    Examples

    TSLint Plugins

    Contributing

    See the contributing guide here

    Install

    npm i @typescript-eslint/eslint-plugin-tslint

    DownloadsWeekly Downloads

    183,402

    Version

    4.27.0

    License

    MIT

    Unpacked Size

    45.4 kB

    Total Files

    16

    Last publish

    Collaborators

    • avatar