1.0.0-beta.4 • Published 7 years ago
@altibox/tslint-config v1.0.0-beta.4
TSLint Config Altibox
Installation
npm install @altibox/tslint-config --save-dev
Usage
In tslint.json add:
{
"extends": "@altibox/tslint-config"
}In package.json set the environment variable CI=true in your build script:
"scripts": {
- "build": "react-scripts-ts build"
+ "build": "CI=true react-scripts-ts build"
}In tsconfig.json set the compiler option "noUnusedLocals" to false:
"compilerOptions": {
- "noUnusedLocals": true
+ "noUnusedLocals": false
}