Socket
Socket
Sign inDemoInstall

eslint-plugin-jest-formatting

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-jest-formatting

ESLint rules for formatting jest tests


Version published
Weekly downloads
570K
decreased by-6.3%
Maintainers
1
Weekly downloads
 
Created

What is eslint-plugin-jest-formatting?

eslint-plugin-jest-formatting is an ESLint plugin that enforces consistent formatting for Jest test suites. It helps maintain a uniform style across your test files, making them easier to read and maintain.

What are eslint-plugin-jest-formatting's main functionalities?

Enforce consistent test block spacing

This rule ensures that there is consistent padding around test blocks, improving readability.

module.exports = {
  "plugins": ["jest-formatting"],
  "rules": {
    "jest-formatting/padding-around-test-blocks": "error"
  }
};

Enforce consistent describe block spacing

This rule ensures that there is consistent padding around describe blocks, making the structure of the tests clearer.

module.exports = {
  "plugins": ["jest-formatting"],
  "rules": {
    "jest-formatting/padding-around-describe-blocks": "error"
  }
};

Enforce consistent expect statement spacing

This rule ensures that there is consistent padding around all Jest blocks, including expect statements, for a uniform look.

module.exports = {
  "plugins": ["jest-formatting"],
  "rules": {
    "jest-formatting/padding-around-all": "error"
  }
};

Other packages similar to eslint-plugin-jest-formatting

Keywords

FAQs

Package last updated on 17 Nov 2021

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