Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-ava

Package Overview
Dependencies
Maintainers
3
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-ava

ESLint rules for AVA

  • 10.4.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
65K
decreased by-58.07%
Maintainers
3
Weekly downloads
 
Created

What is eslint-plugin-ava?

eslint-plugin-ava is an ESLint plugin that provides linting rules specific to the AVA test runner. It helps ensure best practices and consistency when writing tests with AVA.

What are eslint-plugin-ava's main functionalities?

Ensure test file naming conventions

This rule enforces a specific naming pattern for test files, ensuring that all test files follow a consistent naming convention.

module.exports = { "rules": { "ava/test-file-name": ["error", { "pattern": "test-*.js" }] } };

Disallow use of t.pass() and t.fail()

This rule disallows the use of t.pass() and t.fail() in tests, encouraging more meaningful assertions.

module.exports = { "rules": { "ava/no-t-pass-fail": "error" } };

Ensure correct use of t.plan()

This rule ensures that t.plan() is used correctly, helping to avoid common mistakes when planning assertions in tests.

module.exports = { "rules": { "ava/use-t-well": "error" } };

Disallow use of assertions outside of tests

This rule disallows the use of assertions outside of test functions, ensuring that all assertions are made within the context of a test.

module.exports = { "rules": { "ava/no-assertion-outside-test": "error" } };

Other packages similar to eslint-plugin-ava

Keywords

FAQs

Package last updated on 06 Jul 2020

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