https://github.com/thundernet8/customtslintrules
Custom TSLint rules
https://github.com/thundernet8/customtslintrules
react tslint tslint-rules typescript
Last synced: 10 months ago
JSON representation
Custom TSLint rules
- Host: GitHub
- URL: https://github.com/thundernet8/customtslintrules
- Owner: thundernet8
- License: mit
- Created: 2017-12-15T14:58:13.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-01T08:19:06.000Z (over 7 years ago)
- Last Synced: 2025-02-11T20:50:01.197Z (11 months ago)
- Topics: react, tslint, tslint-rules, typescript
- Language: TypeScript
- Size: 21.5 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## CustomTSLintRules
**Custom TSLint rules .**
[](https://github.com/thundernet8/CustomTSLintRules/issues)
[](https://github.com/thundernet8/CustomTSLintRules/network)
[](https://github.com/thundernet8/CustomTSLintRules/stargazers)
[](https://david-dm.org/thundernet8/CustomTSLintRules)
[](https://travis-ci.org/thundernet8/CustomTSLintRules)
[](https://github.com/thundernet8/CustomTSLintRules/blob/master/LICENSE)
[](https://github.com/prettier/prettier)
## Install
`npm install custom-tslint-rules-collection --save-dev`
or
`yarn add custom-tslint-rules-collection --dev`
## Usage
custom-tslint-rules has peer dependencies on TSLint and TypeScript.
To use these lint rules with the default preset, use configuration inheritance via the extends keyword. Here's a sample configuration where tslint.json lives adjacent to your node_modules folder:
```
{
"extends": ["tslint:latest", "custom-tslint-rules-collection"],
"rules": {
// override custom-tslint-rules rules here
"tsx-no-any-props": false
}
}
```
To lint your .ts and .tsx files you can simply run tslint -c tslint.json 'src/\*_/_.{ts,tsx}'.
## Rules
* [x] `tsx-no-any-props`
* [x] `tsx-no-any-state`
## License
CustomTSLintRules is freely distributable under the terms of the
[MIT license](https://github.com/thundernet8/CustomTSLintRules/blob/master/LICENSE).