2.3.0 • Published 6 years ago

tslint-config-avol v2.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

NPM Dependencies DevDependencies

tslint-config-avol

Avol’s config for TSLint.

Installation

npm install --save-dev tslint tslint-config-avol

Usage

In tslint.json:

{
	"extends": "tslint-config-avol"
}

To use with type-check rules, in tslint-project.json:

{
	"extends": ["tslint-config-avol", "tslint-config-avol/project"]
}

And run with:

tslint -c tslint-project.json -p \"scripts/tsconfig.json\"

Example scripts for package.json:

{
  "scripts": {
    "lint:scripts-project": "tslint -c tslint-project.json -p tsconfig.json",
    "lint:scripts-other": "tslint \"{*.js,src/*.d.ts,test/*.{ts,tsx}}\"",
    "lint": "npm run lint:scripts-project && npm run lint:scripts-other"
  }
}

Rules

TSLint

Change Log

View changelog.

License

MIT.