{"name":"eslint-plugin-ava","version":"14.0.0","description":"ESLint rules for AVA","license":"MIT","repository":{"type":"git","url":"git+https://github.com/avajs/eslint-plugin-ava.git"},"engines":{"node":">=14.17 <15 || >=16.4"},"scripts":{"integration":"node ./test/integration/test.js","lint":"npm-run-all \"lint:*\"","lint:eslint-docs":"npm-run-all \"update:eslint-docs -- --check\"","lint:js":"xo","test":"npm-run-all lint test:unit","test:unit":"c8 ava","update:eslint-docs":"eslint-doc-generator --rule-doc-section-include Pass --rule-doc-section-include Fail --url-configs \"https://github.com/avajs/eslint-plugin-ava#recommended-config\""},"keywords":["eslint","eslintplugin","eslint-plugin","ava","test","runner","assert","asserts","assertion","mocha"],"dependencies":{"enhance-visitors":"^1.0.0","eslint-utils":"^3.0.0","espree":"^9.0.0","espurify":"^2.1.1","import-modules":"^2.1.0","micro-spelling-correcter":"^1.1.1","pkg-dir":"^5.0.0","resolve-from":"^5.0.0"},"devDependencies":{"@typescript-eslint/parser":"^5.9.0","ava":"^3.15.0","c8":"^7.7.3","chalk":"^4.1.1","del":"^6.0.0","eslint":"^8.26.0","eslint-ava-rule-tester":"^4.0.0","eslint-doc-generator":"^1.0.0","eslint-plugin-eslint-plugin":"^5.0.6","execa":"^5.1.1","listr":"^0.14.3","npm-run-all":"^4.1.5","outdent":"^0.8.0","pify":"^5.0.0","tempy":"^1.0.1","xo":"^0.52.4"},"peerDependencies":{"eslint":">=8.26.0"},"ava":{"files":["!rules","test/*.js"]},"xo":{"plugins":["eslint-plugin"],"parserOptions":{"sourceType":"script"},"extends":["plugin:eslint-plugin/all"],"overrides":[{"files":"create-ava-rule.js","rules":{"eslint-plugin/require-meta-docs-url":"off"}}],"rules":{"strict":"error","ava/no-ignored-test-files":"off","eslint-plugin/prefer-message-ids":"off","eslint-plugin/require-meta-docs-description":["error",{"pattern":"^(Enforce|Ensure|Require|Disallow|Prevent|Prefer)"}],"eslint-plugin/require-meta-has-suggestions":"off","eslint-plugin/prefer-placeholders":"off","import/extensions":"off","unicorn/prefer-module":"off"}},"c8":{"reporter":["html","lcov","text"]},"gitHead":"aec874b362752ba3aa50686bf7d5b8aa42a6a783","bugs":{"url":"https://github.com/avajs/eslint-plugin-ava/issues"},"homepage":"https://github.com/avajs/eslint-plugin-ava#readme","_id":"eslint-plugin-ava@14.0.0","_nodeVersion":"19.4.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-XmKT6hppaipwwnLVwwvQliSU6AF1QMHiNoLD5JQfzhUhf0jY7CO0O624fQrE+Y/fTb9vbW8r77nKf7M/oHulxw==","shasum":"3319e5e470342c17a467a3a3e08b0cebb88050ca","tarball":"http://registry-npm.ywwl.com/eslint-plugin-ava/download/eslint-plugin-ava-14.0.0.tgz","fileCount":33,"unpackedSize":72837,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCh1OKQzbSPR50RsZwqwTVBYYA2HZfaCAm292oiMYztFAIgLZwGF4LdyctlpO4G5lkAjBCtD/R+gS2li/yFEGkRGog="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjx2cnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrqaQ/7BbxY3udUzoPXvkAx/tZwbNnIWcVitbdAvZE7WQnD9gtcLj47\r\nfkYyVxeJ/xAtA5iUiqqZTKRIdN0FXyGlOADDG7ByhCe5sikPETjVL3NQMyId\r\nKSNSS0plEQdM8dvvc0AJJsXsBEU5Ef4esUicgParQosUer2pjGN1vAtuZZhO\r\nsWiIoZHDsyf6NYGBKWZz30qZp0lhGyeOKE5Dd4lEyLUuzLaEKQjN6r+VqDnO\r\nl0HkGKYDxZUvrQcibmkrwr50Kn8jcFRHg+ufrOzevug7hdFbd6X//caBERmt\r\neYBGDTkACQH/isZ3m43A3gAXE76bsiwcJ6QVfg2UIKFooOcqoatggLmSHUDn\r\n1wGd51wjmsKUTMC85c9zvOrNAXsX/UVVGRO4sSVM0WWQNGpdNE+UymN0AGJS\r\n0asVxqqo1+z0biqA65Y3LyeXLx05lffRuPmTGpGMgehLrjQE5+mBLnHyjqw2\r\nOYtBp65rd4jZ2ojiJ0rTvtxEWDUmeWCj5DmmXKL+iJUOvKoRdMxuNE/Fy/Sz\r\n0GK//9OQbSEubvZCyGeRufJ88+i1QMhsBj0OukBcyUz2rcyo+rhqUr+UNR9E\r\njEEPFqPefj8beCuDUWyvmej1aapZ4l+Z+ErKZkIv1cOThfF8r6I+72J4eaCs\r\n1WuG6rRH+NkDlFGjbyc0KM+H8IQN2MeqICc=\r\n=ChxP\r\n-----END PGP SIGNATURE-----\r\n","size":16322,"noattachment":false,"key":"/eslint-plugin-ava/-/eslint-plugin-ava-14.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"novemberborn","email":"mark@novemberborn.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-ava_14.0.0_1674012455152_0.9210190902592312"},"_hasShrinkwrap":false,"readme":"# eslint-plugin-ava [![Coverage Status](https://coveralls.io/repos/github/avajs/eslint-plugin-ava/badge.svg?branch=main)](https://coveralls.io/github/avajs/eslint-plugin-ava?branch=main)\n\n> ESLint rules for [AVA](https://avajs.dev)\n\nTranslations: [Français](https://github.com/avajs/ava-docs/blob/main/fr_FR/related/eslint-plugin-ava/readme.md)\n\nThis plugin is bundled in [XO](https://github.com/xojs/xo). No need to do anything if you're using it.\n\n[**Propose or contribute a new rule ➡**](.github/contributing.md)\n\n## Install\n\n```sh\nnpm install --save-dev eslint eslint-plugin-ava\n```\n\n## Usage\n\nConfigure it in `package.json`.\n\n```json\n{\n\t\"name\": \"my-awesome-project\",\n\t\"eslintConfig\": {\n\t\t\"env\": {\n\t\t\t\"es6\": true\n\t\t},\n\t\t\"parserOptions\": {\n\t\t\t\"ecmaVersion\": \"latest\",\n\t\t\t\"sourceType\": \"module\"\n\t\t},\n\t\t\"plugins\": [\n\t\t\t\"ava\"\n\t\t],\n\t\t\"rules\": {\n\t\t\t\"ava/assertion-arguments\": \"error\",\n\t\t\t\"ava/...\": \"error\"\n        }\n    }\n}\n```\n\n## Rules\n\nThe rules will only activate in test files.\n\n<!-- begin auto-generated rules list -->\n\n💼 [Configurations](https://github.com/avajs/eslint-plugin-ava#recommended-config) enabled in.\\\n⚠️ [Configurations](https://github.com/avajs/eslint-plugin-ava#recommended-config) set to warn in.\\\n🚫 [Configurations](https://github.com/avajs/eslint-plugin-ava#recommended-config) disabled in.\\\n✅ Set in the `recommended` [configuration](https://github.com/avajs/eslint-plugin-ava#recommended-config).\\\n🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).\\\n💡 Manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).\n\n| Name                                                                 | Description                                                                                                              | 💼 | ⚠️ | 🚫 | 🔧 | 💡 |\n| :------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------- | :- | :- | :- | :- | :- |\n| [assertion-arguments](docs/rules/assertion-arguments.md)             | Enforce passing correct arguments to assertions.                                                                         | ✅  |    |    | 🔧 |    |\n| [hooks-order](docs/rules/hooks-order.md)                             | Enforce test hook ordering.                                                                                              | ✅  |    |    | 🔧 |    |\n| [max-asserts](docs/rules/max-asserts.md)                             | Enforce a limit on the number of assertions in a test.                                                                   |    |    | ✅  |    |    |\n| [no-async-fn-without-await](docs/rules/no-async-fn-without-await.md) | Ensure that async tests use `await`.                                                                                     | ✅  |    |    |    |    |\n| [no-duplicate-modifiers](docs/rules/no-duplicate-modifiers.md)       | Ensure tests do not have duplicate modifiers.                                                                            | ✅  |    |    |    |    |\n| [no-identical-title](docs/rules/no-identical-title.md)               | Ensure no tests have the same title.                                                                                     | ✅  |    |    |    |    |\n| [no-ignored-test-files](docs/rules/no-ignored-test-files.md)         | Ensure no tests are written in ignored files.                                                                            | ✅  |    |    |    |    |\n| [no-import-test-files](docs/rules/no-import-test-files.md)           | Ensure no test files are imported anywhere.                                                                              | ✅  |    |    |    |    |\n| [no-incorrect-deep-equal](docs/rules/no-incorrect-deep-equal.md)     | Disallow using `deepEqual` with primitives.                                                                              | ✅  |    |    | 🔧 |    |\n| [no-inline-assertions](docs/rules/no-inline-assertions.md)           | Ensure assertions are not called from inline arrow functions.                                                            | ✅  |    |    | 🔧 |    |\n| [no-nested-tests](docs/rules/no-nested-tests.md)                     | Ensure no tests are nested.                                                                                              | ✅  |    |    |    |    |\n| [no-only-test](docs/rules/no-only-test.md)                           | Ensure no `test.only()` are present.                                                                                     | ✅  |    |    | 🔧 | 💡 |\n| [no-skip-assert](docs/rules/no-skip-assert.md)                       | Ensure no assertions are skipped.                                                                                        | ✅  |    |    |    |    |\n| [no-skip-test](docs/rules/no-skip-test.md)                           | Ensure no tests are skipped.                                                                                             | ✅  |    |    | 🔧 | 💡 |\n| [no-todo-implementation](docs/rules/no-todo-implementation.md)       | Ensure `test.todo()` is not given an implementation function.                                                            | ✅  |    |    |    |    |\n| [no-todo-test](docs/rules/no-todo-test.md)                           | Ensure no `test.todo()` is used.                                                                                         |    | ✅  |    |    |    |\n| [no-unknown-modifiers](docs/rules/no-unknown-modifiers.md)           | Disallow the use of unknown test modifiers.                                                                              | ✅  |    |    |    |    |\n| [prefer-async-await](docs/rules/prefer-async-await.md)               | Prefer using async/await instead of returning a Promise.                                                                 | ✅  |    |    |    |    |\n| [prefer-power-assert](docs/rules/prefer-power-assert.md)             | Enforce the use of the asserts that have no [power-assert](https://github.com/power-assert-js/power-assert) alternative. |    |    | ✅  |    |    |\n| [prefer-t-regex](docs/rules/prefer-t-regex.md)                       | Prefer using `t.regex()` to test regular expressions.                                                                    | ✅  |    |    | 🔧 |    |\n| [test-title](docs/rules/test-title.md)                               | Ensure tests have a title.                                                                                               | ✅  |    |    |    |    |\n| [test-title-format](docs/rules/test-title-format.md)                 | Ensure test titles have a certain format.                                                                                |    |    | ✅  |    |    |\n| [use-t](docs/rules/use-t.md)                                         | Ensure test functions use `t` as their parameter.                                                                        | ✅  |    |    |    |    |\n| [use-t-throws-async-well](docs/rules/use-t-throws-async-well.md)     | Ensure that `t.throwsAsync()` and `t.notThrowsAsync()` are awaited.                                                      | ✅  |    |    | 🔧 |    |\n| [use-t-well](docs/rules/use-t-well.md)                               | Disallow the incorrect use of `t`.                                                                                       | ✅  |    |    | 🔧 |    |\n| [use-test](docs/rules/use-test.md)                                   | Ensure that AVA is imported with `test` as the variable name.                                                            | ✅  |    |    |    |    |\n| [use-true-false](docs/rules/use-true-false.md)                       | Ensure that `t.true()`/`t.false()` are used instead of `t.truthy()`/`t.falsy()`.                                         | ✅  |    |    |    |    |\n\n<!-- end auto-generated rules list -->\n\n## Recommended config\n\nThis plugin exports a [`recommended` config](index.js) that enforces good practices.\n\nEnable it in your `package.json` with the `extends` option:\n\n```json\n{\n\t\"name\": \"my-awesome-project\",\n\t\"eslintConfig\": {\n\t\t\"extends\": \"plugin:ava/recommended\"\n\t}\n}\n```\n\nSee the [ESLint docs](https://eslint.org/docs/user-guide/configuring#extending-configuration-files) for more information about extending config files.\n\n**Note**: This config will also enable the correct [parser options](https://eslint.org/docs/user-guide/configuring#specifying-parser-options) and [environment](https://eslint.org/docs/user-guide/configuring#specifying-environments).\n","publish_time":1674012455382,"_cnpm_publish_time":1674012455382,"dist-tags":{"latest":"18.0.0","next":"7.0.0-rc.1"}}