Socket
Book a DemoInstallSign in
Socket

tslint-config-m18

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tslint-config-m18

M18 config for TSLint

latest
Source
npmnpm
Version
1.6.2
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

tslint

FAQs

Package last updated on 04 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts