Package Exports
- @ssense/tslint-config
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ssense/tslint-config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
tslint-config
The tslint config we use at SSENSE for all TypeScript projects. It's a combination of base rules provided by tslint as well as rules from tslint-microsoft-contrib.
Installation
- Install the package
npm install --save-dev tslint @ssense/tslint-config
- Create a file named tslint.json in your project root
touch tslint.json
- Add the contents referenced in the section below to tslint.json
- Run tslint
./node_modules/.bin/tslint
tslint.json
{
"extends": "@ssense/tslint-config"
}
corresponding SSENSE TSLint, TSLint and tslint-microsoft-contrib version
SSENSE VERSION | TSLint version | tslint-microsoft-contrib version | Typescript version |
---|---|---|---|
>= 5.x | >= 5.x | 5.x | >= 2.3.x |
>= 4.x | >= 4.x | 4.x | |
>= 2.x | >= 3.2.x | 2.x |