Skip to content

tmorell/tslint-checks

Repository files navigation

Travis (.com) David (path) Snyk Vulnerabilities for npm scoped package Quality Gate Status

npm NPM

TSLint Checks

A set of additional rules for TSLint.

Installation

npm install --save-dev tslint-checks

Configuration

Add node_modules/tslint-checks under rulesDirectory entry in tslint.json:

    "rulesDirectory": [
        "node_modules/tslint-checks"
    ],
    "rules": {
        ...
    }

Rules

The following rules are available:

Rule name Description
no-focused-tests Do not commit code with focused tests. This is useful during development, but it might hide failing tests that do not get executed. Configuration:
runner: Select one of the available options, ava, jasmine, jest, or mocha.
suffix: Suffix for the test files; if not specified, all files will be analyzed.

Example:
                "no-focused-tests": [
                    true,
                    {
                        "runner": "ava",
                        "suffix": ".spec.ts"
                    }
                ]
                

License

MIT

About

A set of additional rules for TSLint.

Resources

License

Stars

Watchers

Forks

Packages

No packages published