npm.io
0.1.0 • Published 4 years agoCLI

no-tslint-disable

Licence
MIT
Version
0.1.0
Deps
4
Size
34 kB
Vulns
0
Weekly
0

no-tslint-disable

A simple CLI that checks for the existence of "tslint" in a project. If found, it fails and lists all occurrences. In most occurrences, these are likely tslint disable comments. Use the exclude argument to ignore occurrences in specific glob patterns.

Great for keeping your code clean and free of "disable" comments; discourages deviations from your linting configuration.

Installation

You may not need to install it as a dependency (see "Usage" below), but if you do:

npm

npm install --save-dev no-tslint-disable
yarn
yarn add -D no-tslint-disable

Usage

npx no-tslint-disable <dir> [--exclude=glob]

minimatch is used for glob patterns.

Examples

Checking your src directory, excluding JS config files:

npx no-tslint-disable src --exclude="*.config.js"

License

MIT - see LICENSE