1.6.2 • Published 7 years ago

tslint-config-m18 v1.6.2

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

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.

1.6.2

7 years ago

1.6.1

7 years ago

1.6.0

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago