1.0.0-beta.1 • Published 1 year ago

@isfawwaz/eslint-config-jest v1.0.0-beta.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@isfawwaz/eslint-config-jest

NPM version Downloads

Shared ESLint configuration for projects that use Jest for testing.

Installation

npm install --save-dev @isfawwaz/eslint-config-jest
# or
pnpm add -D @isfawwaz/eslint-config-jest
# or
yarn add -D @isfawwaz/eslint-config-jest

Usage

Create a .eslintrc.json file in the project root and extend @isfawwaz/eslint-config-jest.

This package should be used in conjunction with @isfawwaz/eslint-config-base.

ℹ️ Only test files will have Jest globals and rules activated. Please check the test-patterns to see how you should name your test files.

Example

{
  "root": true,
  "env": {
    "browser": true
  },
  "extends": ["@isfawwaz/eslint-config-base/esm", "@isfawwaz/eslint-config-jest"]
}