Socket
Socket
Sign inDemoInstall

@lmc-eu/eslint-config-jest

Package Overview
Dependencies
3
Maintainers
7
Versions
10
Alerts
File Explorer

Advanced tools

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


Version published
Weekly downloads
546
increased by8.12%
Maintainers
7
Created
Weekly downloads
 

Readme

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

Last updated on 14 Dec 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc