{"name":"eslint-plugin-ava","version":"17.0.1","description":"ESLint rules for AVA","license":"MIT","repository":{"type":"git","url":"git+https://github.com/avajs/eslint-plugin-ava.git"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=22"},"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 Examples --url-configs \"https://github.com/avajs/eslint-plugin-ava#recommended-config\""},"keywords":["eslint","eslintplugin","eslint-plugin","ava","test","runner","assert","asserts","assertion","mocha"],"dependencies":{"@eslint-community/eslint-utils":"^4.9.1","@eslint/json":"^2.0.0","espree":"^11.2.0","espurify":"^3.2.0","micro-spelling-correcter":"^1.1.1","resolve-from":"^5.0.0"},"devDependencies":{"@typescript-eslint/parser":"^8.61.0","ava":"^8.0.1","c8":"^11.0.0","chalk":"^5.6.2","eslint":"^10.5.0","eslint-ava-rule-tester":"^5.0.1","eslint-doc-generator":"^3.6.0","eslint-plugin-eslint-plugin":"^7.4.0","execa":"^9.6.1","npm-run-all":"^4.1.5","outdent":"^0.8.0","pify":"^6.1.0","typescript":"^6.0.3","xo":"^2.0.2"},"peerDependencies":{"eslint":">=10"},"ava":{"files":["!rules","test/*.js"]},"c8":{"reporter":["html","lcov","text"]},"overrides":{"c8":{"yargs":"^18.0.0"}},"gitHead":"9a41d8edd2dea2f614d7e7128b29d6d9ea5ce964","types":"./index.d.ts","_id":"eslint-plugin-ava@17.0.1","bugs":{"url":"https://github.com/avajs/eslint-plugin-ava/issues"},"homepage":"https://github.com/avajs/eslint-plugin-ava#readme","_nodeVersion":"22.22.3","_npmVersion":"11.16.0","dist":{"integrity":"sha512-l2K1XWF0BgBcc+kJfObY4ijzRCniStxAMCtDEEu8RzTmICNv07+JqJHGNkThluu1PxDvQdNZedvyc2+SUus1qg==","shasum":"eb485303e41b7df348123dc0cac3b25009719420","tarball":"http://registry-npm.ywwl.com/eslint-plugin-ava/download/eslint-plugin-ava-17.0.1.tgz","fileCount":45,"unpackedSize":153016,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDy0TUWoQG+LIxWs3CLnXrGuNpMOxHwsUOcYioS15tJuQIgUS94+rWNdD2nY0Z/6CoFLyOva+iJxExdANJ5pnA9frM="}],"size":33258,"noattachment":false,"key":"/eslint-plugin-ava/-/eslint-plugin-ava-17.0.1.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-npm-production","tmp":"tmp/eslint-plugin-ava_17.0.1_1781348397316_0.9375458122882157"},"_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**Requires ESLint `>=10`, [flat config](https://eslint.org/docs/latest/use/configure/configuration-files), and [ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).**\n\n## Usage\n\nUse a [preset config](#recommended-config) or configure each rule in `eslint.config.js`.\n\n```js\nimport eslintPluginAva from 'eslint-plugin-ava';\n\nexport default [\n\t{\n\t\tplugins: {\n\t\t\tava: eslintPluginAva,\n\t\t},\n\t\trules: {\n\t\t\t'ava/assertion-arguments': 'error',\n\t\t\t'ava/no-only-test': 'error',\n\t\t},\n\t},\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❌ Deprecated.\n\n| Name                                                                 | Description                                                                                                    | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | ❌  |\n| :------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- | :- | :- | :- | :- | :- | :- |\n| [assertion-arguments](docs/rules/assertion-arguments.md)             | Enforce passing correct arguments to assertions.                                                               | ✅  |    |    | 🔧 |    |    |\n| [failing-test-url](docs/rules/failing-test-url.md)                   | Require a URL in a comment above `test.failing()`.                                                             |    |    | ✅  |    |    |    |\n| [hooks-order](docs/rules/hooks-order.md)                             | Enforce test hook ordering.                                                                                    | ✅  |    |    | 🔧 |    |    |\n| [max-asserts](docs/rules/max-asserts.md)                             | Limit the number of assertions in a test.                                                                      |    |    | ✅  |    |    |    |\n| [no-async-fn-without-await](docs/rules/no-async-fn-without-await.md) | Require async tests to use `await`.                                                                            | ✅  |    |    |    | 💡 |    |\n| [no-ava-in-dependencies](docs/rules/no-ava-in-dependencies.md)       | Disallow AVA in `dependencies`.                                                                                | ✅  |    |    | 🔧 |    |    |\n| [no-commented-tests](docs/rules/no-commented-tests.md)               | Disallow commented-out tests.                                                                                  |    | ✅  |    |    |    |    |\n| [no-conditional-assertion](docs/rules/no-conditional-assertion.md)   | Disallow assertions inside conditional statements.                                                             | ✅  |    |    |    |    |    |\n| [no-duplicate-hooks](docs/rules/no-duplicate-hooks.md)               | Disallow duplicate hook declarations.                                                                          | ✅  |    |    |    |    |    |\n| [no-duplicate-modifiers](docs/rules/no-duplicate-modifiers.md)       | Disallow duplicate test modifiers.                                                                             |    |    | ✅  | 🔧 |    | ❌  |\n| [no-identical-title](docs/rules/no-identical-title.md)               | Disallow identical test titles.                                                                                | ✅  |    |    |    |    |    |\n| [no-ignored-test-files](docs/rules/no-ignored-test-files.md)         | Disallow tests in ignored files.                                                                               | ✅  |    |    |    |    |    |\n| [no-import-test-files](docs/rules/no-import-test-files.md)           | Disallow importing test files.                                                                                 | ✅  |    |    |    |    |    |\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)           | Disallow inline assertions.                                                                                    | ✅  |    |    | 🔧 |    |    |\n| [no-invalid-modifier-chain](docs/rules/no-invalid-modifier-chain.md) | Disallow invalid modifier chains.                                                                              | ✅  |    |    | 🔧 | 💡 |    |\n| [no-negated-assertion](docs/rules/no-negated-assertion.md)           | Disallow negated assertions.                                                                                   | ✅  |    |    | 🔧 |    |    |\n| [no-nested-assertions](docs/rules/no-nested-assertions.md)           | Disallow nested assertions.                                                                                    | ✅  |    |    |    |    |    |\n| [no-nested-tests](docs/rules/no-nested-tests.md)                     | Disallow nested tests.                                                                                         | ✅  |    |    |    |    |    |\n| [no-only-test](docs/rules/no-only-test.md)                           | Disallow `test.only()`.                                                                                        | ✅  |    |    |    | 💡 |    |\n| [no-skip-assert](docs/rules/no-skip-assert.md)                       | Disallow skipping assertions.                                                                                  | ✅  |    |    |    | 💡 |    |\n| [no-skip-test](docs/rules/no-skip-test.md)                           | Disallow skipping tests.                                                                                       | ✅  |    |    |    | 💡 |    |\n| [no-todo-implementation](docs/rules/no-todo-implementation.md)       | Disallow giving `test.todo()` an implementation function.                                                      | ✅  |    |    |    | 💡 |    |\n| [no-todo-test](docs/rules/no-todo-test.md)                           | Disallow `test.todo()`.                                                                                        |    | ✅  |    |    | 💡 |    |\n| [no-unknown-modifiers](docs/rules/no-unknown-modifiers.md)           | Disallow unknown test modifiers.                                                                               |    |    | ✅  |    | 💡 | ❌  |\n| [no-useless-t-pass](docs/rules/no-useless-t-pass.md)                 | Disallow useless `t.pass()`.                                                                                   | ✅  |    |    |    |    |    |\n| [prefer-async-await](docs/rules/prefer-async-await.md)               | Prefer async/await over returning a Promise.                                                                   | ✅  |    |    |    |    |    |\n| [prefer-power-assert](docs/rules/prefer-power-assert.md)             | Enforce using only assertions compatible with [power-assert](https://github.com/power-assert-js/power-assert). |    |    | ✅  |    |    |    |\n| [prefer-t-regex](docs/rules/prefer-t-regex.md)                       | Prefer `t.regex()` over `RegExp#test()` and `String#match()`.                                                  | ✅  |    |    | 🔧 |    |    |\n| [prefer-t-throws](docs/rules/prefer-t-throws.md)                     | Prefer `t.throws()` or `t.throwsAsync()` over try/catch.                                                       | ✅  |    |    |    |    |    |\n| [require-assertion](docs/rules/require-assertion.md)                 | Require that tests contain at least one assertion.                                                             | ✅  |    |    |    |    |    |\n| [test-title](docs/rules/test-title.md)                               | Require tests to have a title.                                                                                 | ✅  |    |    | 🔧 |    |    |\n| [test-title-format](docs/rules/test-title-format.md)                 | Require test titles to match a pattern.                                                                        |    |    | ✅  |    |    |    |\n| [use-t](docs/rules/use-t.md)                                         | Require test functions to use `t` as their parameter.                                                          | ✅  |    |    |    |    |    |\n| [use-t-throws-async-well](docs/rules/use-t-throws-async-well.md)     | Require `t.throwsAsync()` and `t.notThrowsAsync()` to be awaited.                                              | ✅  |    |    | 🔧 |    |    |\n| [use-t-well](docs/rules/use-t-well.md)                               | Disallow incorrect use of `t`.                                                                                 | ✅  |    |    | 🔧 |    |    |\n| [use-test](docs/rules/use-test.md)                                   | Require AVA to be imported as `test`.                                                                          | ✅  |    |    |    |    |    |\n| [use-true-false](docs/rules/use-true-false.md)                       | Prefer `t.true()`/`t.false()` over `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\n```js\nimport eslintPluginAva from 'eslint-plugin-ava';\n\nexport default [\n\t...eslintPluginAva.configs.recommended,\n];\n```\n","publish_time":1781348397485,"_cnpm_publish_time":1781348397485,"dist-tags":{"latest":"18.0.0","next":"7.0.0-rc.1"}}