1.0.0-beta.4 • Published 5 years ago

@altibox/tslint-config v1.0.0-beta.4

Weekly downloads
3
License
© Altibox AS
Repository
-
Last release
5 years ago

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
    }