Skip to content

✨ A plugin which allows you to run a full instance of TSLint within ESLint

License

Notifications You must be signed in to change notification settings

unlight/eslint-plugin-tslint2

 
 

Repository files navigation

eslint-plugin-tslint2

ESLint plugin wraps a TSLint configuration and lints the whole source using TSLint.
Fork of eslint-plugin-tslint, the main difference are:

  • Support rules which requires type information
  • Support tsx

INSTALL

npm i -D eslint-plugin-tslint2

USAGE

Configure in your eslint config file:

"plugins": [
    "tslint2"
],
"rules": {
    "tslint2/config": ["warn", {
        rules: { /* tslint rules */ },
        rulesDirectory: [ /* array of paths to directories with rules, e.g. 'node_modules/tslint/lib/rules' */ ],
        configFile: '/* path to tsconfig.json of your project */',
        compilerOptions: { /* ability to override TypeScript compilers options defined in tsconfig.json */ }
    }],
}

RULES

Plugin contains only single rule tslint2/config.

EXAMPLES

TSLint Plugins

About

✨ A plugin which allows you to run a full instance of TSLint within ESLint

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 95.7%
  • JavaScript 4.3%