@isfawwaz/eslint-config-jest

1.0.0-beta.1 • Public • Published

@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"]
}

Package Sidebar

Install

npm i @isfawwaz/eslint-config-jest

Weekly Downloads

4

Version

1.0.0-beta.1

License

MIT

Unpacked Size

2.83 kB

Total Files

4

Last publish

Collaborators

  • isfawwaz