
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
eslint-plugin-tap
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
šµš¼ ESLint rules for tap
tests.
npm install --save-dev eslint eslint-plugin-tap
# OR
yarn add --dev eslint eslint-plugin-tap
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",
}
}
The rules will activate only in tap
test files.
test.only()
are present.t.end()
is the last statement executed.t.plan()
.t.plan()
.t
.t
as their parameter.tap
as the variable name.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.
eslint-plugin-ava
.eslint-plugin-ava
to build eslint-plugin-tape
, on which this project is heavily based on.The code in this project is released under the MIT License.
FAQs
ESLint rules for tap
The npm package eslint-plugin-tap receives a total of 214 weekly downloads. As such, eslint-plugin-tap popularity was classified as not popular.
We found that eslint-plugin-tap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.