Anvilabs' TSLint config, designed to be used in conjunction with ESLint and our shareable ESLint configs. Includes mostly TS-specific rules taking advantage of TSLint's ability to work with the type checker.
Install the package as a development dependency:
$ yarn add typescript tslint @anvilabs/tslint-config --dev
# or
$ npm install typescript tslint @anvilabs/tslint-config --save-dev
Then create a tslint.json
file in the root of your project:
{
"extends": "@anvilabs/tslint-config"
}
New rules may be added or existing ones modified like so:
{
"extends": "@anvilabs/tslint-config",
"rules": {
// your overrides
}
}
It is recommended to use the TypeScript language service plugin for TSLint to ensure easier integration with different code editors.
MIT License © Anvilabs LLC