0.2.1 • Published 7 years ago
@qulix/tslint-config-react v0.2.1
tslint-config-react
TSLint shareable config for the Qulix React Style Guide
Installation
Install with npm:
$ npm install --save-dev tslint @qulix/tslint-config-reactInstall with yarn:
$ yarn --dev tslint @qulix/tslint-config-reactUsage
Once the tslint-config-react package is installed, you can use it by specifying @qulix/tslint-config-react in the extends section of your TSLint configuration.
// tslint.json
{
"extends": [
"@qulix/tslint-config-react"
],
"rules": {
// Additional, per-project rules...
}
}Migration
During migration, you can disable rulesets by overriding them in yours .tslint configuration file
The rule set is stored in
node_modules/@qulix/tslint-config-react/tslint.js
"extends": [
"@qulix/tslint-config-react"
],
"rules": {
"jsx-no-multiline-js": false,
"jsx-no-string-ref": false,
}