šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

eslint-plugin-tap

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
e

eslint-plugin-tap

ESLint rules for tap

1.2.1
latest
67

Supply Chain Security

100

Vulnerability

98

Quality

76

Maintenance

100

License

Version published
Weekly downloads
226
4.15%
Maintainers
1
Weekly downloads
 
Created
Issues
6

eslint-plugin-tap

npm version npm size install size code coverage Release Open in Visual Studio Code

šŸ•µšŸ¼ ESLint rules for tap tests.

Install

npm install --save-dev eslint eslint-plugin-tap
# OR
yarn add --dev eslint eslint-plugin-tap

Usage

Configure it in your package.json or eslintrc.* file as described in the ESLint user guide –

{
  "plugins": [
    "tap"
  ],
  "rules": {
    "tap/assertion-message": ["error", "always"],
    "tap/max-asserts": ["error", 8],
    "tap/no-identical-title": "error",
    "tap/no-ignored-test-files": "error",
    "tap/no-only-test": "error",
    "tap/no-skip-test": "error",
    "tap/no-statement-after-end": "error",
    "tap/no-unknown-modifiers": "error",
    "tap/test-ended": "error",
    "tap/test-title": ["error", "if-multiple"],
    "tap/use-plan": ["error", "always"],
    "tap/use-plan-well": "error",
    "tap/use-t-well": "error",
    "tap/use-t": "error",
    "tap/use-tap": "error",
  }
}

Rules

The rules will activate only in tap test files.

This plugin exports a recommended configuration that enforces good practices.

Enable it in your package.json or eslintrc.* file with the extends option –

{
  "plugins": [
    "tap"
  ],
  "extends": "plugin:tap/recommended"
}

See the ESLint documentation for more information about extending configuration files.

Note: This config will also enable the correct parser options and environment.

Credits

License

The code in this project is released under the MIT License.

FOSSA Status

FAQs

Package last updated on 07 Mar 2022

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