Skip to content

m18ru/tslint-config-m18

Repository files navigation

NPM Dependencies DevDependencies

tslint-config-m18

M18 config for TSLint.

Installation

npm install --save-dev tslint tslint-config-m18

Usage

In tslint.json:

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

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

{
	"extends": ["tslint-config-m18", "tslint-config-m18/typeCheck"]
}

And run with:

tslint -c tslint-type-check.json -p \"scripts/tsconfig.json\" --type-check

Example scripts for package.json:

{
  "scripts": {
    "lint:scripts-project": "tslint -c tslint-type-check.json -p tsconfig.json --type-check",
    "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.

About

M18 config for TSLint

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published