Skip to content

Commit b6947be

Browse files
author
roman.vasilev
committed
docs: Updated README
1 parent 07fa1d6 commit b6947be

File tree

2 files changed

+25
-16
lines changed

2 files changed

+25
-16
lines changed

README.md

+24-15
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
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.
23

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
1226

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>

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"devDependencies": {
4040
"@types/eslint": "^4.16.3",
4141
"@types/jest": "^23.3.1",
42-
"@types/node": "^10.9.1",
42+
"@types/node": "^10.9.2",
4343
"cz-conventional-changelog": "^2.1.0",
4444
"eslint": "^5.4.0",
4545
"jest": "^23.5.0",

0 commit comments

Comments
 (0)