TSLint shareable config for the IVWEB TypeScript style guide.
$ npm install --save-dev tslint typescript tslint-config-ivweb
Once the tslint-config-ivweb package is installed, you can use it by specifying ivweb.
create tslint.config and copy this.
{
"extends": ["tslint-config-ivweb"],
"linterOptions": {
"exclude": ["**/node_modules/**"]
},
"rules": {
// your own special config rule
}
}./node_modules/.bin/tslint ./**/*.ts
- install tslint plugin
- use
Cmd +orCtrl + - set
tslint.autoFixOnSaveastrue
- open setting
- search
tslint - set
enableas true, and choseSearch for tslint.json