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

@side/eslint-config-jest

Package Overview
Dependencies
Maintainers
0
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@side/eslint-config-jest

An ESLint configuration which enables lint rules for Jest tests.

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@side/eslint-config-jest

An ESLint configuration which enables lint rules for Jest tests.

Installation

Install this package, and ensure you have installed its peer dependencies.

yarn info @side/eslint-config-jest peerDependencies

yarn add -D @side/eslint-config-jest

Usage

Once all peer dependencies have been added to your project, extend this configuration in your project's .eslintrc.js.

.eslintrc.js

module.exports = {
  overrides: [
    {
      files: [
        '**/__tests__/**',
        '**/__mocks__/**',
        'test.{js,jsx}',
        'test-*.{js,jsx}',
        '**/*{.,_}{test,spec}.{js,jsx}',
      ],
      // Make sure you exclude any paths where Cypress tests are located
      excludedFiles: ['**/cypress/**/*.js'],
      extends: ['@side/jest'],
    },
  ],
};

Note: Make sure to extend this as an override so you can specify the exact Jest test files you want these rules to be run against. Please reference the eslint-plugin-jest documentation for more details.

FAQs

Package last updated on 09 Jul 2024

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