{"name":"eslint-plugin-ava","version":"7.0.0-rc.1","description":"ESLint rules for AVA","license":"MIT","repository":{"type":"git","url":"git+https://github.com/avajs/eslint-plugin-ava.git"},"engines":{"node":">=8"},"scripts":{"test":"xo && nyc ava"},"keywords":["eslint","eslintplugin","eslint-plugin","ava","test","runner","assert","asserts","assertion","mocha"],"dependencies":{"deep-strict-equal":"^0.2.0","enhance-visitors":"^1.0.0","espree":"^5.0.0","espurify":"^2.0.0","import-modules":"^1.1.0","pkg-dir":"^4.2.0","resolve-from":"^5.0.0"},"devDependencies":{"ava":"^1.0.1","babel-eslint":"^10.0.1","codecov":"^3.5.0","eslint":"^5.12.0","eslint-ava-rule-tester":"^3.0.0","eslint-plugin-eslint-plugin":"2.1.0","js-combinatorics":"^0.5.4","nyc":"^14.1.1","pify":"^4.0.1","xo":"^0.24.0"},"peerDependencies":{"eslint":">=5.9.0"},"xo":{"plugins":["eslint-plugin"],"extends":["plugin:eslint-plugin/all"],"overrides":[{"files":"create-ava-rule.js","rules":{"eslint-plugin/require-meta-docs-url":"off"}}]},"nyc":{"reporter":["html","lcov","text"]},"readme":"# eslint-plugin-ava [![Build Status](https://travis-ci.org/avajs/eslint-plugin-ava.svg?branch=master)](https://travis-ci.org/avajs/eslint-plugin-ava) [![Coverage Status](https://coveralls.io/repos/github/avajs/eslint-plugin-ava/badge.svg?branch=master)](https://coveralls.io/github/avajs/eslint-plugin-ava?branch=master)\n\n> ESLint rules for [AVA](https://ava.li)\n\nTranslations: [Français](https://github.com/avajs/ava-docs/blob/master/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\n## Install\n\n```\n$ npm install --save-dev eslint eslint-plugin-ava\n```\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\": 2019,\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/max-asserts\": [\n\t\t\t\t\"off\",\n\t\t\t\t5\n\t\t\t],\n\t\t\t\"ava/no-async-fn-without-await\": \"error\",\n\t\t\t\"ava/no-cb-test\": \"off\",\n\t\t\t\"ava/no-duplicate-modifiers\": \"error\",\n\t\t\t\"ava/no-identical-title\": \"error\",\n\t\t\t\"ava/no-ignored-test-files\": \"error\",\n\t\t\t\"ava/no-import-test-files\": \"error\",\n\t\t\t\"ava/no-invalid-end\": \"error\",\n\t\t\t\"ava/no-nested-tests\": \"error\",\n\t\t\t\"ava/no-only-test\": \"error\",\n\t\t\t\"ava/no-skip-assert\": \"error\",\n\t\t\t\"ava/no-skip-test\": \"error\",\n\t\t\t\"ava/no-statement-after-end\": \"error\",\n\t\t\t\"ava/no-todo-implementation\": \"error\",\n\t\t\t\"ava/no-todo-test\": \"warn\",\n\t\t\t\"ava/no-unknown-modifiers\": \"error\",\n\t\t\t\"ava/prefer-async-await\": \"error\",\n\t\t\t\"ava/prefer-power-assert\": \"off\",\n\t\t\t\"ava/test-ended\": \"error\",\n\t\t\t\"ava/test-title\": \"error\",\n\t\t\t\"ava/test-title-format\": \"off\",\n\t\t\t\"ava/use-t\": \"error\",\n\t\t\t\"ava/use-t-well\": \"error\",\n\t\t\t\"ava/use-test\": \"error\",\n\t\t\t\"ava/use-true-false\": \"error\"\n\t\t}\n\t}\n}\n```\n\n\n## Rules\n\nThe rules will only activate in test files.\n\n- [assertion-arguments](docs/rules/assertion-arguments.md) - Enforce passing correct arguments to assertions.\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) - Ensure that async tests use `await`.\n- [no-cb-test](docs/rules/no-cb-test.md) - Ensure no `test.cb()` is used.\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-invalid-end](docs/rules/no-invalid-end.md) - Ensure `t.end()` is only called inside `test.cb()`.\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. *(fixable)*\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. *(fixable)*\n- [no-statement-after-end](docs/rules/no-statement-after-end.md) - Ensure `t.end()` is the last statement executed.\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) - Prevent 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) - Allow only use of the asserts that have no [power-assert](https://github.com/power-assert-js/power-assert) alternative.\n- [test-ended](docs/rules/test-ended.md) - Ensure callback tests are explicitly ended.\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-well](docs/rules/use-t-well.md) - Prevent the incorrect use of `t`. *(partly fixable)*\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\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](http://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](http://eslint.org/docs/user-guide/configuring#specifying-parser-options) and [environment](http://eslint.org/docs/user-guide/configuring#specifying-environments).\n\n\n## License\n\nMIT\n","readmeFilename":"readme.md","gitHead":"330af0e17dd940e0c49f23950e07d8563ad6eb4b","bugs":{"url":"https://github.com/avajs/eslint-plugin-ava/issues"},"homepage":"https://github.com/avajs/eslint-plugin-ava#readme","_id":"eslint-plugin-ava@7.0.0-rc.1","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-jpcur92qxSs2WTGvy8LbXaetGdsLbBaWUFaPxpuA7Ibkx9P/YoSeDiumDIvyexShWlURyF5zGgxSaTA4lPxMCw==","shasum":"afa13fb80b05e72648f119cc83e3a0f2a4e3481a","tarball":"http://registry-npm.ywwl.com/eslint-plugin-ava/download/eslint-plugin-ava-7.0.0-rc.1.tgz","fileCount":32,"unpackedSize":47205,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc7NyGCRA9TVsSAnZWagAAPF8P/RqzB4zPwZzKyzbEPFXx\n6KSJbSsK+CizdvuIxAvJwCZA4Ej9SG0Mvn6WuvbtlQZZNgdPs7wj+HqkkUVo\na3wPFx5yteQc1C6FFREExPM6zOqb7YfEDRxV0+9vuImC6Mcubk1okhS8Uj2o\nozYcUYdy9kY3YJpNeAdk+Mw51PS/bRmDDwMshTyqzyC+OoTQ6PjyoE0evjog\nvDxcrlm/MXUFiCOM93gZdvrllYDcxyvQm1u2SR6+4e/I4wkuo/oEoC6BVoZ8\nNIyLjGOmNLpDPUdUCDUUgJZf7msRPdX0ZNtKo9dBzM+0xgPjoamyIOthMaT+\nAlnF5Zx7RIyeDIxjJ96esAv2CU6QTcgB08u5cpzMYa66XVSjaHcDU2YVwSrL\n8dBd2H8jV8RpIZlxyURZddLoDmPzcQI0hei4xhvnGRz7+8X8XBZ79BnYJ98e\nOpGEMXhdQz2V92N2GlnduKqhR3kXjXwf9xhLiKggnT4cJ+7ZE4tweP1RPq9i\nvuBtW2TEFnWNX966vcox66KzMOQI6r6uS2QdHwTZjysL5X9dWqhlBHvhKZ3d\n0J2I+4kdrIMm44Ngpm0O0rFrXQ97PyGdKxZZoFYtfeku3yN0GEphxvbKCjNc\n21Zn3UCQLbnE8hrLKvAhBb9nvyyQX0X81y4yic9Y90/ZdbnUfSZ4Sq8zoTF+\nQrCP\r\n=OTYj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEB/UTheRFcWfOOBSAV86RDNRKyZla4YrHHbo7+YV6u9AiAvtsXKrQ4ntiALpr1q7J9MwMFuhUkoZ1dmFwLQUxoMsg=="}],"size":11409,"noattachment":false,"key":"/eslint-plugin-ava/-/eslint-plugin-ava-7.0.0-rc.1.tgz"},"maintainers":[{"email":"mark@novemberborn.net","name":"novemberborn"},{"email":"sindresorhus@gmail.com","name":"sindresorhus"},{"email":"vdemedes@gmail.com","name":"vdemedes"}],"_npmUser":{"name":"novemberborn","email":"mark@novemberborn.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-ava_7.0.0-rc.1_1559026821605_0.7503179311943866"},"_hasShrinkwrap":false,"publish_time":1559026821763,"_cnpm_publish_time":1559026821763,"dist-tags":{"latest":"18.0.0","next":"7.0.0-rc.1"}}