{"name":"eslint-plugin-ava","version":"16.0.0","keywords":["eslint","eslintplugin","eslint-plugin","ava","test","runner","assert","asserts","assertion","mocha"],"license":"MIT","_id":"eslint-plugin-ava@16.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"novemberborn","email":"mark@novemberborn.net"}],"homepage":"https://github.com/avajs/eslint-plugin-ava#readme","bugs":{"url":"https://github.com/avajs/eslint-plugin-ava/issues"},"c8":{"reporter":["html","lcov","text"]},"ava":{"files":["!rules","test/*.js"]},"dist":{"shasum":"bacc28e9a1830aad0faec14024b40755b04e9502","tarball":"http://registry-npm.ywwl.com/eslint-plugin-ava/download/eslint-plugin-ava-16.0.0.tgz","fileCount":45,"integrity":"sha512-UufFU8AxaneI28Z0SMaoOldpee8q0Knba3QdFwQyrnHvbKsKe90gwafPtBeA6qYoGeVcFSolgaN3qHZxxdW1jA==","signatures":[{"sig":"MEQCIGtwlYufBYU3czxdoeVBGmWm4I8d2oWtz6eiYDbUXLvqAiAX8Qgerq10xaIAc9dgQWXOuQUezB6YH3rqmrAengB8dQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":134942,"size":28972,"noattachment":false,"key":"/eslint-plugin-ava/-/eslint-plugin-ava-16.0.0.tgz"},"type":"module","types":"./index.d.ts","engines":{"node":">=20.19"},"exports":{"types":"./index.d.ts","default":"./index.js"},"gitHead":"4743237ad911ae397dfa4563961bb10b7f356a6c","scripts":{"lint":"npm-run-all \"lint:*\"","test":"npm-run-all lint test:unit","lint:js":"xo","test:unit":"c8 ava","integration":"node ./test/integration/test.js","lint:eslint-docs":"npm-run-all \"update:eslint-docs -- --check\"","update:eslint-docs":"eslint-doc-generator --rule-doc-section-include Examples --url-configs \"https://github.com/avajs/eslint-plugin-ava#recommended-config\""},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/avajs/eslint-plugin-ava.git","type":"git"},"_npmVersion":"11.8.0","description":"ESLint rules for AVA","directories":{},"sideEffects":false,"_nodeVersion":"25.6.0","dependencies":{"espree":"^11.1.0","espurify":"^3.2.0","@eslint/json":"^1.0.0","resolve-from":"^5.0.0","enhance-visitors":"^1.0.0","micro-spelling-correcter":"^1.1.1","@eslint-community/eslint-utils":"^4.9.1"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.3","xo":"^1.2.3","ava":"^6.4.1","pify":"^6.1.0","chalk":"^5.6.2","execa":"^9.6.1","eslint":"^10.0.0","outdent":"^0.8.0","typescript":"^5.9.3","npm-run-all":"^4.1.5","eslint-doc-generator":"^3.0.2","eslint-ava-rule-tester":"^5.0.1","@typescript-eslint/parser":"^8.54.0","eslint-plugin-eslint-plugin":"^7.3.0"},"peerDependencies":{"eslint":">=10"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-ava_16.0.0_1770732123973_0.6083500995257609","host":"s3://npm-registry-packages-npm-production"},"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":1770732124117,"_cnpm_publish_time":1770732124117,"dist-tags":{"latest":"18.0.0","next":"7.0.0-rc.1"}}