tslint-config-m18

1.6.2 • Public • Published

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.

Package Sidebar

Install

npm i tslint-config-m18

Weekly Downloads

2

Version

1.6.2

License

MIT

Last publish

Collaborators

  • avol