{
  "manifest": {
    "name": "eslint-plugin-jest",
    "version": "25.7.0",
    "description": "Eslint rules for Jest",
    "keywords": [
      "eslint",
      "eslintplugin",
      "eslint-plugin"
    ],
    "repository": {
      "type": "git",
      "url": "https://github.com/jest-community/eslint-plugin-jest.git"
    },
    "license": "MIT",
    "author": {
      "name": "Jonathan Kim",
      "email": "hello@jkimbo.com",
      "url": "jkimbo.com"
    },
    "main": "lib/",
    "files": [
      "docs/",
      "lib/"
    ],
    "scripts": {
      "build": "babel --extensions .js,.ts src --out-dir lib --copy-files && rimraf lib/__tests__ 'lib/**/__tests__'",
      "lint": "eslint . --ignore-pattern '!.eslintrc.js' --ext js,ts",
      "prepack": "rimraf lib && yarn build",
      "prettier:check": "prettier --check 'docs/**/*.md' README.md '.github/**' package.json tsconfig.json src/globals.json .yarnrc.yml",
      "prettier:write": "prettier --write 'docs/**/*.md' README.md '.github/**' package.json tsconfig.json src/globals.json .yarnrc.yml",
      "test": "jest",
      "tools:regenerate-docs": "ts-node -T tools/regenerate-docs",
      "typecheck": "tsc -p .",
      "_postinstall": "is-ci || husky install",
      "prepublishOnly": "pinst --disable",
      "postpublish": "pinst --enable"
    },
    "commitlint": {
      "extends": [
        "@commitlint/config-conventional"
      ]
    },
    "lint-staged": {
      "*.{js,ts}": "eslint --fix",
      "*.{md,json,yml}": "prettier --write"
    },
    "prettier": {
      "arrowParens": "avoid",
      "endOfLine": "auto",
      "proseWrap": "always",
      "singleQuote": true,
      "trailingComma": "all"
    },
    "jest": {
      "coverageThreshold": {
        "global": {
          "branches": 100,
          "functions": 100,
          "lines": 100,
          "statements": 100
        }
      },
      "projects": [
        {
          "displayName": "test",
          "moduleNameMapper": {
            "eslint/use-at-your-own-risk": "eslint/lib/unsupported-api.js"
          },
          "testPathIgnorePatterns": [
            "<rootDir>/lib/.*",
            "<rootDir>/src/rules/__tests__/fixtures/*",
            "<rootDir>/src/rules/__tests__/test-utils.ts"
          ]
        },
        {
          "displayName": "lint",
          "runner": "jest-runner-eslint",
          "testMatch": [
            "<rootDir>/**/*.{js,ts}"
          ],
          "testPathIgnorePatterns": [
            "<rootDir>/lib/.*"
          ]
        }
      ]
    },
    "dependencies": {
      "@typescript-eslint/experimental-utils": "^5.0.0"
    },
    "devDependencies": {
      "@babel/cli": "^7.4.4",
      "@babel/core": "^7.4.4",
      "@babel/preset-env": "^7.4.4",
      "@babel/preset-typescript": "^7.3.3",
      "@commitlint/cli": "^16.0.0",
      "@commitlint/config-conventional": "^16.0.0",
      "@schemastore/package": "^0.0.6",
      "@semantic-release/changelog": "^6.0.0",
      "@semantic-release/git": "^10.0.0",
      "@types/dedent": "^0.7.0",
      "@types/jest": "^27.0.0",
      "@types/node": "^16.0.0",
      "@types/prettier": "^2.0.0",
      "@typescript-eslint/eslint-plugin": "^5.0.0",
      "@typescript-eslint/parser": "^5.0.0",
      "babel-jest": "^27.0.0",
      "babel-plugin-replace-ts-export-assignment": "^0.0.2",
      "dedent": "^0.7.0",
      "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0",
      "eslint-config-prettier": "^8.3.0",
      "eslint-plugin-eslint-comments": "^3.1.2",
      "eslint-plugin-eslint-config": "^2.0.0",
      "eslint-plugin-eslint-plugin": "^4.0.1",
      "eslint-plugin-import": "^2.25.1",
      "eslint-plugin-node": "^11.0.0",
      "eslint-plugin-prettier": "^3.4.1",
      "eslint-remote-tester": "^2.1.0",
      "eslint-remote-tester-repositories": "^0.0.3",
      "husky": "^7.0.2",
      "is-ci": "^3.0.0",
      "jest": "^27.0.0",
      "jest-runner-eslint": "^1.0.0",
      "lint-staged": "^12.0.0",
      "pinst": "^2.0.0",
      "prettier": "^2.0.5",
      "rimraf": "^3.0.0",
      "semantic-release": "^18.0.0",
      "semver": "^7.3.5",
      "ts-node": "^10.2.1",
      "typescript": "^4.4.0"
    },
    "peerDependencies": {
      "@typescript-eslint/eslint-plugin": "^4.0.0 || ^5.0.0",
      "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
    },
    "peerDependenciesMeta": {
      "@typescript-eslint/eslint-plugin": {
        "optional": true
      },
      "jest": {
        "optional": true
      }
    },
    "engines": {
      "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
    },
    "release": {
      "branches": [
        "main",
        {
          "name": "next",
          "prerelease": true
        }
      ],
      "plugins": [
        "@semantic-release/commit-analyzer",
        "@semantic-release/release-notes-generator",
        "@semantic-release/changelog",
        "@semantic-release/npm",
        "@semantic-release/git",
        "@semantic-release/github"
      ]
    },
    "resolutions": {
      "@typescript-eslint/experimental-utils": "^5.0.0"
    },
    "packageManager": "yarn@3.1.1",
    "_registry": "npm",
    "_loc": "/homez.1033/heliovt/.cache/yarn/v6/npm-eslint-plugin-jest-25.7.0-ff4ac97520b53a96187bad9c9814e7d00de09a6a-integrity/node_modules/eslint-plugin-jest/package.json",
    "readmeFilename": "README.md",
    "readme": "<div align=\"center\">\n  <a href=\"https://eslint.org/\">\n    <img width=\"150\" height=\"150\" src=\"https://eslint.org/assets/img/logo.svg\">\n  </a>\n  <a href=\"https://facebook.github.io/jest/\">\n    <img width=\"150\" height=\"150\" vspace=\"\" hspace=\"25\" src=\"https://jestjs.io/img/jest.png\">\n  </a>\n  <h1>eslint-plugin-jest</h1>\n  <p>ESLint plugin for Jest</p>\n</div>\n\n[![Actions Status](https://github.com/jest-community/eslint-plugin-jest/actions/workflows/nodejs.yml/badge.svg?branch=main)](https://github.com/jest-community/eslint-plugin-jest/actions)\n\n## Installation\n\n```bash\nyarn add --dev eslint eslint-plugin-jest\n```\n\n**Note:** If you installed ESLint globally then you must also install\n`eslint-plugin-jest` globally.\n\n## Usage\n\nAdd `jest` to the plugins section of your `.eslintrc` configuration file. You\ncan omit the `eslint-plugin-` prefix:\n\n```json\n{\n  \"plugins\": [\"jest\"]\n}\n```\n\nThen configure the rules you want to use under the rules section.\n\n```json\n{\n  \"rules\": {\n    \"jest/no-disabled-tests\": \"warn\",\n    \"jest/no-focused-tests\": \"error\",\n    \"jest/no-identical-title\": \"error\",\n    \"jest/prefer-to-have-length\": \"warn\",\n    \"jest/valid-expect\": \"error\"\n  }\n}\n```\n\nYou can also tell ESLint about the environment variables provided by Jest by\ndoing:\n\n```json\n{\n  \"env\": {\n    \"jest/globals\": true\n  }\n}\n```\n\nThis is included in all configs shared by this plugin, so can be omitted if\nextending them.\n\n### Jest `version` setting\n\nThe behaviour of some rules (specifically [`no-deprecated-functions`][]) change\ndepending on the version of Jest being used.\n\nBy default, this plugin will attempt to determine to locate Jest using\n`require.resolve`, meaning it will start looking in the closest `node_modules`\nfolder to the file being linted and work its way up.\n\nSince we cache the automatically determined version, if you're linting\nsub-folders that have different versions of Jest, you may find that the wrong\nversion of Jest is considered when linting. You can work around this by\nproviding the Jest version explicitly in nested ESLint configs:\n\n```json\n{\n  \"settings\": {\n    \"jest\": {\n      \"version\": 27\n    }\n  }\n}\n```\n\nTo avoid hard-coding a number, you can also fetch it from the installed version\nof Jest if you use a JavaScript config file such as `.eslintrc.js`:\n\n```js\nmodule.exports = {\n  settings: {\n    jest: {\n      version: require('jest/package.json').version,\n    },\n  },\n};\n```\n\n## Shareable configurations\n\n### Recommended\n\nThis plugin exports a recommended configuration that enforces good testing\npractices.\n\nTo enable this configuration use the `extends` property in your `.eslintrc`\nconfig file:\n\n```json\n{\n  \"extends\": [\"plugin:jest/recommended\"]\n}\n```\n\n### Style\n\nThis plugin also exports a configuration named `style`, which adds some\nstylistic rules, such as `prefer-to-be-null`, which enforces usage of `toBeNull`\nover `toBe(null)`.\n\nTo enable this configuration use the `extends` property in your `.eslintrc`\nconfig file:\n\n```json\n{\n  \"extends\": [\"plugin:jest/style\"]\n}\n```\n\nSee\n[ESLint documentation](https://eslint.org/docs/user-guide/configuring/configuration-files#extending-configuration-files)\nfor more information about extending configuration files.\n\n### All\n\nIf you want to enable all rules instead of only some you can do so by adding the\n`all` configuration to your `.eslintrc` config file:\n\n```json\n{\n  \"extends\": [\"plugin:jest/all\"]\n}\n```\n\nWhile the `recommended` and `style` configurations only change in major versions\nthe `all` configuration may change in any release and is thus unsuited for\ninstallations requiring long-term consistency.\n\n## Rules\n\n<!-- begin base rules list -->\n\n| Rule                                                                         | Description                                                         | Configurations   | Fixable      |\n| ---------------------------------------------------------------------------- | ------------------------------------------------------------------- | ---------------- | ------------ |\n| [consistent-test-it](docs/rules/consistent-test-it.md)                       | Have control over `test` and `it` usages                            |                  | ![fixable][] |\n| [expect-expect](docs/rules/expect-expect.md)                                 | Enforce assertion to be made in a test body                         | ![recommended][] |              |\n| [max-nested-describe](docs/rules/max-nested-describe.md)                     | Enforces a maximum depth to nested describe calls                   |                  |              |\n| [no-alias-methods](docs/rules/no-alias-methods.md)                           | Disallow alias methods                                              | ![style][]       | ![fixable][] |\n| [no-commented-out-tests](docs/rules/no-commented-out-tests.md)               | Disallow commented out tests                                        | ![recommended][] |              |\n| [no-conditional-expect](docs/rules/no-conditional-expect.md)                 | Prevent calling `expect` conditionally                              | ![recommended][] |              |\n| [no-deprecated-functions](docs/rules/no-deprecated-functions.md)             | Disallow use of deprecated functions                                | ![recommended][] | ![fixable][] |\n| [no-disabled-tests](docs/rules/no-disabled-tests.md)                         | Disallow disabled tests                                             | ![recommended][] |              |\n| [no-done-callback](docs/rules/no-done-callback.md)                           | Avoid using a callback in asynchronous tests and hooks              | ![recommended][] | ![suggest][] |\n| [no-duplicate-hooks](docs/rules/no-duplicate-hooks.md)                       | Disallow duplicate setup and teardown hooks                         |                  |              |\n| [no-export](docs/rules/no-export.md)                                         | Disallow using `exports` in files containing tests                  | ![recommended][] |              |\n| [no-focused-tests](docs/rules/no-focused-tests.md)                           | Disallow focused tests                                              | ![recommended][] | ![suggest][] |\n| [no-hooks](docs/rules/no-hooks.md)                                           | Disallow setup and teardown hooks                                   |                  |              |\n| [no-identical-title](docs/rules/no-identical-title.md)                       | Disallow identical titles                                           | ![recommended][] |              |\n| [no-if](docs/rules/no-if.md)                                                 | Disallow conditional logic                                          |                  |              |\n| [no-interpolation-in-snapshots](docs/rules/no-interpolation-in-snapshots.md) | Disallow string interpolation inside snapshots                      | ![recommended][] |              |\n| [no-jasmine-globals](docs/rules/no-jasmine-globals.md)                       | Disallow Jasmine globals                                            | ![recommended][] | ![fixable][] |\n| [no-jest-import](docs/rules/no-jest-import.md)                               | Disallow importing Jest                                             | ![recommended][] |              |\n| [no-large-snapshots](docs/rules/no-large-snapshots.md)                       | disallow large snapshots                                            |                  |              |\n| [no-mocks-import](docs/rules/no-mocks-import.md)                             | Disallow manually importing from `__mocks__`                        | ![recommended][] |              |\n| [no-restricted-matchers](docs/rules/no-restricted-matchers.md)               | Disallow specific matchers & modifiers                              |                  |              |\n| [no-standalone-expect](docs/rules/no-standalone-expect.md)                   | Disallow using `expect` outside of `it` or `test` blocks            | ![recommended][] |              |\n| [no-test-prefixes](docs/rules/no-test-prefixes.md)                           | Use `.only` and `.skip` over `f` and `x`                            | ![recommended][] | ![fixable][] |\n| [no-test-return-statement](docs/rules/no-test-return-statement.md)           | Disallow explicitly returning from tests                            |                  |              |\n| [prefer-called-with](docs/rules/prefer-called-with.md)                       | Suggest using `toBeCalledWith()` or `toHaveBeenCalledWith()`        |                  |              |\n| [prefer-comparison-matcher](docs/rules/prefer-comparison-matcher.md)         | Suggest using the built-in comparison matchers                      |                  | ![fixable][] |\n| [prefer-equality-matcher](docs/rules/prefer-equality-matcher.md)             | Suggest using the built-in equality matchers                        |                  | ![suggest][] |\n| [prefer-expect-assertions](docs/rules/prefer-expect-assertions.md)           | Suggest using `expect.assertions()` OR `expect.hasAssertions()`     |                  | ![suggest][] |\n| [prefer-expect-resolves](docs/rules/prefer-expect-resolves.md)               | Prefer `await expect(...).resolves` over `expect(await ...)` syntax |                  | ![fixable][] |\n| [prefer-hooks-on-top](docs/rules/prefer-hooks-on-top.md)                     | Suggest having hooks before any test cases                          |                  |              |\n| [prefer-lowercase-title](docs/rules/prefer-lowercase-title.md)               | Enforce lowercase test names                                        |                  | ![fixable][] |\n| [prefer-spy-on](docs/rules/prefer-spy-on.md)                                 | Suggest using `jest.spyOn()`                                        |                  | ![fixable][] |\n| [prefer-strict-equal](docs/rules/prefer-strict-equal.md)                     | Suggest using `toStrictEqual()`                                     |                  | ![suggest][] |\n| [prefer-to-be](docs/rules/prefer-to-be.md)                                   | Suggest using `toBe()` for primitive literals                       | ![style][]       | ![fixable][] |\n| [prefer-to-contain](docs/rules/prefer-to-contain.md)                         | Suggest using `toContain()`                                         | ![style][]       | ![fixable][] |\n| [prefer-to-have-length](docs/rules/prefer-to-have-length.md)                 | Suggest using `toHaveLength()`                                      | ![style][]       | ![fixable][] |\n| [prefer-todo](docs/rules/prefer-todo.md)                                     | Suggest using `test.todo`                                           |                  | ![fixable][] |\n| [require-hook](docs/rules/require-hook.md)                                   | Require setup and teardown code to be within a hook                 |                  |              |\n| [require-to-throw-message](docs/rules/require-to-throw-message.md)           | Require a message for `toThrow()`                                   |                  |              |\n| [require-top-level-describe](docs/rules/require-top-level-describe.md)       | Require test cases and hooks to be inside a `describe` block        |                  |              |\n| [valid-describe-callback](docs/rules/valid-describe-callback.md)             | Enforce valid `describe()` callback                                 | ![recommended][] |              |\n| [valid-expect](docs/rules/valid-expect.md)                                   | Enforce valid `expect()` usage                                      | ![recommended][] |              |\n| [valid-expect-in-promise](docs/rules/valid-expect-in-promise.md)             | Ensure promises that have expectations in their chain are valid     | ![recommended][] |              |\n| [valid-title](docs/rules/valid-title.md)                                     | Enforce valid titles                                                | ![recommended][] | ![fixable][] |\n\n<!-- end base rules list -->\n\n## TypeScript Rules\n\nIn addition to the above rules, this plugin also includes a few advanced rules\nthat are powered by type-checking information provided by TypeScript.\n\nIn order to use these rules, you must be using `@typescript-eslint/parser` &\nadjust your eslint config as outlined\n[here](https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/TYPED_LINTING.md)\n\nNote that unlike the type-checking rules in `@typescript-eslint/eslint-plugin`,\nthe rules here will fallback to doing nothing if type information is not\navailable, meaning its safe to include them in shared configs that could be used\non JavaScript and TypeScript projects.\n\nAlso note that `unbound-method` depends on `@typescript-eslint/eslint-plugin`,\nas it extends the original `unbound-method` rule from that plugin.\n\n<!-- begin type rules list -->\n\n| Rule                                           | Description                                                   | Configurations | Fixable |\n| ---------------------------------------------- | ------------------------------------------------------------- | -------------- | ------- |\n| [unbound-method](docs/rules/unbound-method.md) | Enforces unbound methods are called with their expected scope |                |         |\n\n<!-- end type rules list -->\n\n## Credit\n\n- [eslint-plugin-mocha](https://github.com/lo1tuma/eslint-plugin-mocha)\n- [eslint-plugin-jasmine](https://github.com/tlvince/eslint-plugin-jasmine)\n\n## Related Projects\n\n### eslint-plugin-jest-formatting\n\nThis project aims to provide formatting rules (auto-fixable where possible) to\nensure consistency and readability in jest test suites.\n\nhttps://github.com/dangreenisrael/eslint-plugin-jest-formatting\n\n### eslint-plugin-istanbul\n\nA set of rules to enforce good practices for Istanbul, one of the code coverage\ntools used by Jest.\n\nhttps://github.com/istanbuljs/eslint-plugin-istanbul\n\n[recommended]: https://img.shields.io/badge/-recommended-lightgrey.svg\n[suggest]: https://img.shields.io/badge/-suggest-yellow.svg\n[fixable]: https://img.shields.io/badge/-fixable-green.svg\n[style]: https://img.shields.io/badge/-style-blue.svg\n[`no-deprecated-functions`]: docs/rules/no-deprecated-functions.md\n",
    "licenseText": "MIT License\n\nCopyright (c) 2018 Jonathan Kim\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  "artifacts": [],
  "remote": {
    "resolved": "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-25.7.0.tgz#ff4ac97520b53a96187bad9c9814e7d00de09a6a",
    "type": "tarball",
    "reference": "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-25.7.0.tgz",
    "hash": "ff4ac97520b53a96187bad9c9814e7d00de09a6a",
    "integrity": "sha512-PWLUEXeeF7C9QGKqvdSbzLOiLTx+bno7/HC9eefePfEb257QFHg7ye3dh80AZVkaa/RQsBB1Q/ORQvg2X7F0NQ==",
    "registry": "npm",
    "packageName": "eslint-plugin-jest",
    "cacheIntegrity": "sha512-PWLUEXeeF7C9QGKqvdSbzLOiLTx+bno7/HC9eefePfEb257QFHg7ye3dh80AZVkaa/RQsBB1Q/ORQvg2X7F0NQ== sha1-/0rJdSC1OpYYe62cmBTn0A3gmmo="
  },
  "registry": "npm",
  "hash": "ff4ac97520b53a96187bad9c9814e7d00de09a6a"
}