Minoris's baseline TSLint config.
npm install tslint-config-minorisMinoris’s TSlint rules and configs.
Install TSlint and tslint-config-minoris:
With Yarn
```
yarn add --dev tslint tslint-config-minoris
With npm
``
npm install tslint tslint-config-minoris --save-dev
.
To enable these rules, create a tslint.json file at the root level of your project, and extend tslint-config-minoris.
`
{
"extends": "tslint-config-minoris"
}
`Now you can run TSLint by adding the following linting script to your
package.json. See here for more script configurations.
`
{
"scripts": {
"lint": "tslint './src/*/.{ts,tsx}' --project tsconfig.json"
}
}
`
Run it:With Yarn
`
yarn run tslint
`With npm
`
npm run tslint
`Configuration
* See here for more details on configuring your
tslint.json.
* See here for all the rules provided by TSlintSome of the rules configured in
tslint-config-minoris may not be sufficient for your project. You can override these rules in tslint.json:`json
{
"extends": "tslint-config-minoris",
"rules": {
"no-console": false
}
}
``