New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-tape

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-tape

ESLint rules for tape

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
77
increased by133.33%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-plugin-tape Build Status Coverage Status

ESLint rules for tape

This ESLint plugin is a copy of the great eslint-plugin-ava adapting the rules to work for tape tests and removing AVA specific rules.

Install

$ npm install --save-dev eslint eslint-plugin-tape

Usage

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

{
	"env": {
		"es6": true
	},
	"parserOptions": {
		"ecmaVersion": 7,
		"sourceType": "module"
	},
	"plugins": [
		"tape"
	],
	"rules": {
		"tape/assertion-message": ["off", "always"],
		"tape/max-asserts": ["off", 5],
		"tape/no-identical-title": "error",
		"tape/no-ignored-test-files": "error",
		"tape/no-only-test": "error",
		"tape/no-skip-assert": "error",
		"tape/no-skip-test": "error",
		"tape/no-statement-after-end": "error",
		"tape/no-unknown-modifiers": "error",
		"tape/test-ended": "error",
		"tape/test-title": ["error", "if-multiple"],
		"tape/use-t-well": "error",
		"tape/use-t": "error",
		"tape/use-test": "error",
	}
}

Rules

The rules will only activate in test files.

This plugin exports a recommended config that enforces good practices.

Enable it in your package.json with the extends option:

{
	"name": "my-awesome-project",
	"eslintConfig": {
		"plugins": [
			"tape"
		],
		"extends": "plugin:tape/recommended"
	}
}

See the ESLint docs for more information about extending config files.

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

Credit

Keywords

FAQs

Package last updated on 30 May 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc