Lint rules related to React & JSX for TSLint.
tslint-sf-react has peer dependencies on TSLint and TypeScript.
npm install --save-dev tslint-sf-react [email protected] [email protected]
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-sf-react"],
"rules": {
// override tslint-sf-react rules here
"jsx-wrap-multiline": false
}
}
v1.0.1 Add hooks rules;