It is used by Finger,for checking TypeScript code.
中文文档: zh
# npm
npm install tslint tslint-config-finger --save-dev
## OR
#yarn
yarn add tslint tslint-config-finger --dev
tslint --init
After running above script, we will find a tslint.json
file in root directory of your project.
Your tslint.json
may be same as below:
{
"defaultSeverity": "error",
"extends": ["tslint:recommend"],
"jsRules": {},
"rules": {}
}
Change your tslint.json
file as below:
{
"defaultSeverity": "error",
"extends": ["tslint-config-finger"],
"jsRules": {},
"rules": {}
}
That's all, thanks for using!