eslint-config-widen-jest

2.2.1 • Public • Published

eslint-config-widen-jest

Widen's shared ESLint config for Jest.

Installation

yarn add -D eslint eslint-config-widen-jest eslint-plugin-jest

Usage

In your eslint.config.mjs file, add the following four entries to your extends list. If you don't need a specific configuration, simply remove it from the list.

import jest from 'eslint-config-widen-jest'

export default [
  ...[
    // you can specify what to ignore by using the `ignores` key before any other rule
    // this will filter out things we dont want this to run on
    { ignores: ['*.test.*'] },
    ...jest,
    // you can also override rules by specifying the rule and the new value
    { files: ['*.spec.js'], rules: { 'jest/expect-expect': 'off' } },
  ],
]

/eslint-config-widen-jest/

    Package Sidebar

    Install

    npm i eslint-config-widen-jest

    Weekly Downloads

    8

    Version

    2.2.1

    License

    ISC

    Unpacked Size

    1.98 kB

    Total Files

    4

    Last publish

    Collaborators

    • widen-npm