tslint-config-dollarshaveclub
v8.0.0
Published
TSLint configuration for Dollar Shave Club
Downloads
28
Keywords
Readme
tslint-config-dollarshaveclub
This repository contains Dollar Shave Club Tslint rules.
Installation
$ npm install --save-dev tslint-config-dollarshaveclub
Usage
Once the tslint-config-dollarshaveclub
package is installed, used by specifying dollarshaveclub
.
For frameworkless JavaScript modules:
// tslint.json
{
"extends": [
"tslint-config-dollarshaveclub"
],
"rules": {
"no-unnecessary-type-assertion": false,
"trailing-comma": false,
"semicolon": [
true,
"never"
]
}
}
For React projects:
// tslint.json
{
"extends": "tslint-config-dollarshaveclub/react"
}
Dependencies
- globby: used for testing all test files in
tests/
. - mocha: used for testing.
- tslint: used for linting typescript (
.ts
) files. - tslint-config-standard: extends
tslint
. - tslint-react: extends
tslint
forreact
. - typescript: add type checking for JavaScript.
License
MIT