パッケージの詳細

eslint-plugin-tap

getoslash548MIT1.2.1

ESLint rules for tap

eslint, eslintplugin, eslint-plugin, tap

readme

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.

Recommended configuration

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

  1. Sindre Sorhus & AVA team for building eslint-plugin-ava.
  2. Abel Toledano for adapting eslint-plugin-ava to build eslint-plugin-tape, on which this project is heavily based on.

License

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

FOSSA Status

更新履歴

1.2.1 (2022-03-07)

Bug Fixes

1.2.0 (2022-03-05)

Features

  • tap: support new assert methods introduced in tap 15.2.x (#35) (bc6a0ce)

1.1.0 (2021-12-23)

Features

  • bump version to try to republish on npm (51ac5fb)

1.0.0 (2021-12-20)

Bug Fixes

  • ci: add missing code coverage instrumentation step (a77468f)
  • ci: configure default release branches for semantic-release (6e14ba2)
  • ci: configure semantic-release npm plugin (9fe4b3b)
  • ci: fix broken config (66f35f8)
  • ci: fix broken YAML (3fbd075)
  • ci: fix broken YAML (63d3acd)
  • ci: fix broken YAML (5a31dc1)
  • ci: fix broken YAML (4e18699)
  • ci: fix releaserc configuration (70d4a8a)
  • ci: fix the npm registry publishing (30b5bd6)
  • ci: turn off signed git tags as well (5d90b73)
  • ci: turn off signed pushes (730bfa8)
  • ci: use oslashbot personal access token always (f6c7590)
  • ci: use the action directive correctly for 'npm ci' commands (27b2c83)
  • docs: update markdown formatting to fix badge (5daa557)
  • release: set missing env for alex (571445e)
  • test: configure nyc correctly for TypeScript and turn on coverage for ALL files (03fa86c)

Features