tslint-checks

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i tslint-checks

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

12.6 kB

Total Files

9

Last publish

Collaborators

  • tmorell