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

@lmc-eu/eslint-config-jest

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lmc-eu/eslint-config-jest

LMC's ESlint configuration for projects using Jest as test runner

  • 3.0.4
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@lmc-eu/eslint-config-jest

LMC’s ESLint config for projects using Jest as test runner

These configuration files are suitable to lint Jest test files.

Install

npm install @lmc-eu/eslint-config-jest -D

or

yarn add @lmc-eu/eslint-config-jest -D

Usage

Create a .eslintrc.js file with the following contents:

module.exports = {
  extends: [
    // ... (base eslint config)
    '@lmc-eu/eslint-config-jest',
  ],
};

The shareable config can be customized in your eslint configuration file.

Use this ruleset to configure ESLint to lint your Jest test files. Jest test files are by default identified by *.test.* or *.spec.* filenames or by being in the test/ directory in your project root or by using __test__/ directories near your tested files.

⚠️ You can use this environment ruleset in combination with any of the existing environment rulesets. Just make sure this one comes in as the last one.

Plugins

This configuration uses the following plugins:

Rules

For available rules see ESLint plugin Jest and ESLint plugin Jest Formatting

License

See the LICENSE file for information.

Keywords

FAQs

Package last updated on 09 Aug 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