|
1 |
| -<h1 align="center">ESLint Plugin TSLint</h1> |
| 1 | +# eslint-plugin-tslint2 |
| 2 | +ESLint plugin wraps a TSLint configuration and lints the whole source using TSLint. |
2 | 3 |
|
3 |
| -<p align="center"> |
4 |
| - <a href="https://travis-ci.org/JamesHenry/eslint-plugin-tslint"><img src="https://img.shields.io/travis/JamesHenry/eslint-plugin-tslint.svg?style=flat-square" alt="Travis"/></a> |
5 |
| - <a href="https://github.com/JamesHenry/eslint-plugin-tslint/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/eslint-plugin-tslint.svg?style=flat-square" alt="GitHub license" /></a> |
6 |
| - <a href="https://www.npmjs.com/package/eslint-plugin-tslint"><img src="https://img.shields.io/npm/v/eslint-plugin-tslint.svg?style=flat-square" alt="NPM Version" /></a> |
7 |
| - <a href="https://www.npmjs.com/package/eslint-plugin-tslint"><img src="https://img.shields.io/npm/dt/eslint-plugin-tslint.svg?style=flat-square" alt="NPM Downloads" /></a> |
8 |
| - <a href="http://commitizen.github.io/cz-cli/"><img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg" alt="Commitizen friendly" /></a> |
9 |
| - <a href="https://github.com/semantic-release/semantic-release"><img src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square" alt="semantic-release" /></a> |
10 |
| - <a href="https://greenkeeper.io"><img src="https://badges.greenkeeper.io/JamesHenry/mongoose-schema-to-typescript-interface.svg?style=flat-square" alt="greenkeeper.io" /></a> |
11 |
| -</p> |
| 4 | +## USAGE |
| 5 | +Configure in your eslint config file: |
| 6 | +``` |
| 7 | +"plugins": [ |
| 8 | + "tslint2" |
| 9 | +], |
| 10 | +"rules": { |
| 11 | + "tslint2/config": ["warn", { |
| 12 | + rules: { /* tslint rules */ }, |
| 13 | + rulesDirectory: [ /* array of paths to directories with rules, e.g. 'node_modules/tslint/lib/rules' */ ], |
| 14 | + configFile: '/* path to tsconfig.json of your project */', |
| 15 | + compilerOptions: { /* ability to override TypeScript compilers options defined in tsconfig.json */ } |
| 16 | + }], |
| 17 | +} |
| 18 | +``` |
| 19 | + |
| 20 | +## RULES |
| 21 | +Plugin contains only single rule `tslint2/config`. |
| 22 | + |
| 23 | +### TSLint Plugins |
| 24 | +* https://github.com/Glavin001/tslint-clean-code |
| 25 | +* https://github.com/Microsoft/tslint-microsoft-contrib |
12 | 26 |
|
13 |
| -<br> |
14 |
| -<p align="center" style="border: 1px solid blue;"> |
15 |
| -<a href="http://typescriptcourses.com" target="_blank"><img src="https://james-henry-cdn.firebaseapp.com/images/typescriptcourses-github-banner.png" alt="typescriptcourses.com"/></a> |
16 |
| -</p> |
17 |
| -<br> |
|
0 commit comments