A TSLint config for React and React Native DVHB projects
npm install @dvhb/tslint-config-react --save-dev
In tslint.json
:
{
"extends": "@dvhb/tslint-config-react"
}
- @dvhb/tslint-config — basic rules for DVHB projects
- tslint-react — default rules for React by TSLint team
jsx-boolean-value
— forbids value for truthy props