tslint-react-r2v
Lint rules for react to vue tools.
Usage
tslint-react-r2v 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", "tslint-react-r2v"],
"rules": {
// override r2v-no-decorato rules here
"r2v-no-decorator": true
}
}To lint your .ts and .tsx files you can simply run tslint -c tslint.json 'src/**/*.{ts,tsx}'.
Rules
- `r2v-no-decorator`
- Enforces a consistent style for multiline JSX elements which promotes ease of editing via line-wise manipulations
as well as maintainability via small diffs when changes are made.
- `r2v-no-lifecycle`
- Allows blacklisting of JSX elements with an optional explanatory message in the reported failure.Dev
Notice publish
npm run build
npm run copy
npm publish build/