{"_id":"@arabasta/eslint-plugin-no-testing-library-without-cleanup","_rev":"7-ee34f2f1440127f6c439208e640635ea","name":"@arabasta/eslint-plugin-no-testing-library-without-cleanup","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"@arabasta/eslint-plugin-no-testing-library-without-cleanup","version":"1.0.0","keywords":["eslint","eslint-plugin","eslintplugin","testing-library"],"author":{"name":"Stoyan Kolev"},"license":"MIT","_id":"@arabasta/eslint-plugin-no-testing-library-without-cleanup@1.0.0","maintainers":[{"name":"stoyan.a.kolev","email":"stoyan.a.kolev@gmail.com"}],"homepage":"https://github.com/CloudNStoyan/arabasta#readme","bugs":{"url":"https://github.com/CloudNStoyan/arabasta/issues"},"dist":{"shasum":"174a88acfa19da74373f29548f40555ed6201d6e","tarball":"https://registry.npmjs.org/@arabasta/eslint-plugin-no-testing-library-without-cleanup/-/eslint-plugin-no-testing-library-without-cleanup-1.0.0.tgz","fileCount":6,"integrity":"sha512-YDZNK11nuq4hcASKDIz94HvWrBeE5iaYxpLUkM5npiCNOXb4IyPsu7sYS1cgmhIy0dMai7ylEATzA2b78glVOA==","signatures":[{"sig":"MEUCIQC2+Gq3A1UgWBom9xGDtoapVEZfyPyfRfiWtGTUnKbx5AIgZ1G0Lo4RsIQkqpTp5SnHXng25Cud8uk91F1NMCPeiuU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@arabasta%2feslint-plugin-no-testing-library-without-cleanup@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":7758},"main":"./src/eslint-plugin-no-testing-library-without-cleanup.js","types":"./src/index.d.ts","exports":{".":{"types":"./src/index.d.ts","default":"./src/eslint-plugin-no-testing-library-without-cleanup.js"},"./package.json":"./package.json"},"gitHead":"d1bab33140219937e79b7383dce2512f5bcdc682","scripts":{"test":"vitest --globals --dir ./src/rules"},"_npmUser":{"name":"stoyan.a.kolev","email":"stoyan.a.kolev@gmail.com"},"repository":{"url":"git+https://github.com/CloudNStoyan/arabasta.git","type":"git"},"_npmVersion":"10.5.0","description":"ESLint plugin that enforces the usage of the cleanup function when importing from Testing Library","directories":{},"_nodeVersion":"20.12.1","_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.0.0","vitest":"^1.4.0"},"peerDependencies":{"eslint":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-no-testing-library-without-cleanup_1.0.0_1712796069626_0.7037510146549162","host":"s3://npm-registry-packages"},"deprecated":"Use @arabasta/eslint-plugin-testing-library module instead"},"1.0.1":{"name":"@arabasta/eslint-plugin-no-testing-library-without-cleanup","version":"1.0.1","keywords":["eslint","eslint-plugin","eslintplugin","testing-library"],"author":{"name":"Stoyan Kolev"},"license":"MIT","_id":"@arabasta/eslint-plugin-no-testing-library-without-cleanup@1.0.1","maintainers":[{"name":"stoyan.a.kolev","email":"stoyan.a.kolev@gmail.com"}],"homepage":"https://github.com/CloudNStoyan/arabasta#readme","bugs":{"url":"https://github.com/CloudNStoyan/arabasta/issues"},"dist":{"shasum":"b6fbdbb7f95d9702d82ca36ba33bbc56017b9545","tarball":"https://registry.npmjs.org/@arabasta/eslint-plugin-no-testing-library-without-cleanup/-/eslint-plugin-no-testing-library-without-cleanup-1.0.1.tgz","fileCount":6,"integrity":"sha512-ZENXq2UugaiXX/4HSyNyICIv3QCt111pOcZOvNM+55orFgjhKRN0u6WyUti7oVpweIW6jpYsnXiAtIjlGYSqQQ==","signatures":[{"sig":"MEUCIQDpYMV8HQJyOXjw1K2Qqm+jVK8sCbQXQkfiva8cBp5o9QIgA6zKLogMKswwQlm+o6kuerKQpGgwi5wy2WwZ0Fvq3A0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@arabasta%2feslint-plugin-no-testing-library-without-cleanup@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":7842},"main":"./src/eslint-plugin-no-testing-library-without-cleanup.js","types":"./src/index.d.ts","exports":{".":{"types":"./src/index.d.ts","default":"./src/eslint-plugin-no-testing-library-without-cleanup.js"},"./package.json":"./package.json"},"gitHead":"a37ba81f5a6d3e6f14d2079e70c74b22811c294a","scripts":{"test":"vitest --globals --dir ./src/rules"},"_npmUser":{"name":"stoyan.a.kolev","email":"stoyan.a.kolev@gmail.com"},"repository":{"url":"git+https://github.com/CloudNStoyan/arabasta.git","type":"git"},"_npmVersion":"10.5.0","description":"ESLint plugin that enforces the usage of the cleanup function when importing from Testing Library","directories":{},"_nodeVersion":"20.12.1","_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.0.0","vitest":"^1.4.0"},"peerDependencies":{"eslint":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-no-testing-library-without-cleanup_1.0.1_1712797684765_0.08259713896307441","host":"s3://npm-registry-packages"},"deprecated":"Use @arabasta/eslint-plugin-testing-library module instead"},"1.0.2":{"name":"@arabasta/eslint-plugin-no-testing-library-without-cleanup","version":"1.0.2","keywords":["eslint","eslint-plugin","eslintplugin","testing-library"],"author":{"name":"Stoyan Kolev"},"license":"MIT","_id":"@arabasta/eslint-plugin-no-testing-library-without-cleanup@1.0.2","maintainers":[{"name":"stoyan.a.kolev","email":"stoyan.a.kolev@gmail.com"}],"homepage":"https://github.com/CloudNStoyan/arabasta#readme","bugs":{"url":"https://github.com/CloudNStoyan/arabasta/issues"},"dist":{"shasum":"55baef84257af2cbc04ece16f915990209f6bd67","tarball":"https://registry.npmjs.org/@arabasta/eslint-plugin-no-testing-library-without-cleanup/-/eslint-plugin-no-testing-library-without-cleanup-1.0.2.tgz","fileCount":6,"integrity":"sha512-qxNkIjCD+x2SY+fa3FsCNfeIBsMf4YJeJKBjkBz2iNrXg/A6KWPdTd0Fi8qUTsK2NDnZWK0p+RzQuRnt4H12lw==","signatures":[{"sig":"MEUCIANQC3DqowrKlM2JodJh8v2OxuG5+FZEIgmisO9ke5oaAiEAnJ2a89kSlCeBi6bHh/BDDNqk4d/OBN/auQTgFUhC/V4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@arabasta%2feslint-plugin-no-testing-library-without-cleanup@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":8282},"main":"./src/eslint-plugin-no-testing-library-without-cleanup.js","types":"./src/index.d.ts","exports":{".":{"types":"./src/index.d.ts","default":"./src/eslint-plugin-no-testing-library-without-cleanup.js"},"./package.json":"./package.json"},"gitHead":"abc5b92cb91928913be3868516d136305f4d8be6","scripts":{"test":"vitest --globals --dir ./src/rules"},"_npmUser":{"name":"stoyan.a.kolev","email":"stoyan.a.kolev@gmail.com"},"repository":{"url":"git+https://github.com/CloudNStoyan/arabasta.git","type":"git"},"_npmVersion":"10.5.0","description":"ESLint plugin that enforces the usage of the cleanup function when importing from Testing Library","directories":{},"_nodeVersion":"20.12.1","_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.0.0","vitest":"^1.4.0"},"peerDependencies":{"eslint":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-no-testing-library-without-cleanup_1.0.2_1713188547787_0.40841307712112096","host":"s3://npm-registry-packages"},"deprecated":"Use @arabasta/eslint-plugin-testing-library module instead"},"1.0.3":{"name":"@arabasta/eslint-plugin-no-testing-library-without-cleanup","version":"1.0.3","keywords":["eslint","eslint-plugin","eslintplugin","testing-library"],"author":{"name":"Stoyan Kolev"},"license":"MIT","_id":"@arabasta/eslint-plugin-no-testing-library-without-cleanup@1.0.3","maintainers":[{"name":"stoyan.a.kolev","email":"stoyan.a.kolev@gmail.com"}],"homepage":"https://github.com/CloudNStoyan/arabasta#readme","bugs":{"url":"https://github.com/CloudNStoyan/arabasta/issues"},"dist":{"shasum":"022a5a9b68d7b5e403fb3c1ed30d22c8db7ce4e5","tarball":"https://registry.npmjs.org/@arabasta/eslint-plugin-no-testing-library-without-cleanup/-/eslint-plugin-no-testing-library-without-cleanup-1.0.3.tgz","fileCount":6,"integrity":"sha512-o+pU3VKUMEhU+wOF4pqV5/9BHzLdngvu8mPX7tFJqFZUPLEuqlY9lm1s0WytabPymPpUKsUxaKEi8R8R18WMog==","signatures":[{"sig":"MEUCIBVgyLRF5V2/Z1PLT7t+jejU34GyXQSiiY4EUpCR2O7UAiEA2QA+/6IXRbjRQRMt/D2Dx/5C0vYbHbqa6VIcHin9fJM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@arabasta%2feslint-plugin-no-testing-library-without-cleanup@1.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":8282},"main":"./src/eslint-plugin-no-testing-library-without-cleanup.js","types":"./src/index.d.ts","exports":{".":{"types":"./src/index.d.ts","default":"./src/eslint-plugin-no-testing-library-without-cleanup.js"},"./package.json":"./package.json"},"gitHead":"51fd81bfd30097757297dae1fed779570f3ccb05","scripts":{"test":"vitest --globals --dir ./src/rules"},"_npmUser":{"name":"stoyan.a.kolev","email":"stoyan.a.kolev@gmail.com"},"repository":{"url":"git+https://github.com/CloudNStoyan/arabasta.git","type":"git"},"_npmVersion":"10.5.0","description":"ESLint plugin that enforces the usage of the cleanup function when importing from Testing Library","directories":{},"_nodeVersion":"20.12.1","_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.0.0","vitest":"^1.4.0"},"peerDependencies":{"eslint":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-no-testing-library-without-cleanup_1.0.3_1713220724680_0.9660697854527547","host":"s3://npm-registry-packages"},"deprecated":"Use @arabasta/eslint-plugin-testing-library module instead"},"1.0.4":{"name":"@arabasta/eslint-plugin-no-testing-library-without-cleanup","version":"1.0.4","keywords":["eslint","eslint-plugin","eslintplugin","testing-library"],"author":{"name":"Stoyan Kolev"},"license":"MIT","_id":"@arabasta/eslint-plugin-no-testing-library-without-cleanup@1.0.4","maintainers":[{"name":"stoyan.a.kolev","email":"stoyan.a.kolev@gmail.com"}],"homepage":"https://github.com/CloudNStoyan/arabasta#readme","bugs":{"url":"https://github.com/CloudNStoyan/arabasta/issues"},"dist":{"shasum":"d9af0cd8753ce77fe1c4ed9118efe47a15666469","tarball":"https://registry.npmjs.org/@arabasta/eslint-plugin-no-testing-library-without-cleanup/-/eslint-plugin-no-testing-library-without-cleanup-1.0.4.tgz","fileCount":6,"integrity":"sha512-anEDCNWINh4xQ/BGcb0kKlFID+5LeGeQ5RkRocvRnGdJwj0VXr00lqBn36aB4YwuBtkt15fWDXaNp8kVK/uU/w==","signatures":[{"sig":"MEYCIQDrGegxNb4/lamArBNYHDJ5H5aPguCfg3zZ0YoQSZaBTgIhAP+nmAQmA/jraWx81Y+0UD8wbj1QTVR16++LYCKhsm5v","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@arabasta%2feslint-plugin-no-testing-library-without-cleanup@1.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":8240},"main":"./src/eslint-plugin-no-testing-library-without-cleanup.js","types":"./src/index.d.ts","exports":{".":{"types":"./src/index.d.ts","default":"./src/eslint-plugin-no-testing-library-without-cleanup.js"},"./package.json":"./package.json"},"gitHead":"c15176d8b1533c5f7e06cb7700fd5d43d39fa407","scripts":{"test":"vitest --globals --dir ./src/rules"},"_npmUser":{"name":"stoyan.a.kolev","email":"stoyan.a.kolev@gmail.com"},"repository":{"url":"git+https://github.com/CloudNStoyan/arabasta.git","type":"git"},"_npmVersion":"10.5.0","description":"ESLint plugin that enforces the usage of the cleanup function when importing from Testing Library","directories":{},"_nodeVersion":"20.12.2","_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.0.0","vitest":"^1.4.0"},"peerDependencies":{"eslint":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-no-testing-library-without-cleanup_1.0.4_1715242700768_0.802784671019606","host":"s3://npm-registry-packages"},"deprecated":"Use @arabasta/eslint-plugin-testing-library module instead"},"1.0.5":{"name":"@arabasta/eslint-plugin-no-testing-library-without-cleanup","version":"1.0.5","keywords":["eslint","eslint-plugin","eslintplugin","testing-library"],"author":{"name":"Stoyan Kolev"},"license":"MIT","_id":"@arabasta/eslint-plugin-no-testing-library-without-cleanup@1.0.5","maintainers":[{"name":"stoyan.a.kolev","email":"stoyan.a.kolev@gmail.com"}],"homepage":"https://github.com/CloudNStoyan/arabasta#readme","bugs":{"url":"https://github.com/CloudNStoyan/arabasta/issues"},"dist":{"shasum":"6e8743a194c94abf41246937b89f26654245d16c","tarball":"https://registry.npmjs.org/@arabasta/eslint-plugin-no-testing-library-without-cleanup/-/eslint-plugin-no-testing-library-without-cleanup-1.0.5.tgz","fileCount":6,"integrity":"sha512-nM09Ujz+51EegQBO4ehodQjbDmYTNWIS3wB2n9gioXHkWKslfXw3eXSTZSo8arMBE8d2TfbJ4GY/AviIgubGVA==","signatures":[{"sig":"MEYCIQDubEJOh8D0GFoihpiLfGXrghPTe9TjfgxJHL2xCUUxjwIhAJa7u8rwV0mZVkJVrlI8KieAP+7C6vvaPH3M3kbrsewS","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@arabasta%2feslint-plugin-no-testing-library-without-cleanup@1.0.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":8262},"main":"./src/eslint-plugin-no-testing-library-without-cleanup.js","type":"commonjs","types":"./src/index.d.ts","exports":{".":{"types":"./src/index.d.ts","default":"./src/eslint-plugin-no-testing-library-without-cleanup.js"},"./package.json":"./package.json"},"gitHead":"2ab12b81b86cdbbc899fb6dddf6a270e906d61f1","scripts":{"test":"vitest --globals --dir ./src/rules"},"_npmUser":{"name":"stoyan.a.kolev","email":"stoyan.a.kolev@gmail.com"},"repository":{"url":"git+https://github.com/CloudNStoyan/arabasta.git","type":"git"},"_npmVersion":"10.5.2","description":"ESLint plugin that enforces the usage of the cleanup function when importing from Testing Library","directories":{},"_nodeVersion":"20.13.1","_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.0.0","vitest":"^1.4.0"},"peerDependencies":{"eslint":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-no-testing-library-without-cleanup_1.0.5_1717417490588_0.2296508373262529","host":"s3://npm-registry-packages"},"deprecated":"Use @arabasta/eslint-plugin-testing-library module instead"}},"time":{"created":"2024-04-11T00:41:09.502Z","modified":"2024-10-30T11:42:44.835Z","1.0.0":"2024-04-11T00:41:09.789Z","1.0.1":"2024-04-11T01:08:04.985Z","1.0.2":"2024-04-15T13:42:27.979Z","1.0.3":"2024-04-15T22:38:44.833Z","1.0.4":"2024-05-09T08:18:20.966Z","1.0.5":"2024-06-03T12:24:50.760Z"},"bugs":{"url":"https://github.com/CloudNStoyan/arabasta/issues"},"author":{"name":"Stoyan Kolev"},"license":"MIT","homepage":"https://github.com/CloudNStoyan/arabasta#readme","keywords":["eslint","eslint-plugin","eslintplugin","testing-library"],"repository":{"url":"git+https://github.com/CloudNStoyan/arabasta.git","type":"git"},"description":"ESLint plugin that enforces the usage of the cleanup function when importing from Testing Library","maintainers":[{"name":"hristo-kolev","email":"hristo.a.kolev@gmail.com"},{"name":"stoyan.a.kolev","email":"stoyan.a.kolev@gmail.com"}],"readme":"# `@arabasta/eslint-plugin-no-testing-library-without-cleanup`\n\n[![NPM Version](https://img.shields.io/npm/v/%40arabasta%2Feslint-plugin-no-testing-library-without-cleanup)](https://www.npmjs.com/package/@arabasta/eslint-plugin-no-testing-library-without-cleanup)\n[![NPM License](https://img.shields.io/npm/l/%40arabasta%2Feslint-plugin-no-testing-library-without-cleanup)](https://github.com/CloudNStoyan/arabasta/blob/main/eslint-plugin-no-testing-library-without-cleanup/LICENSE)\n\nESLint plugin that enforces the usage of the cleanup function when importing from Testing Library.\n\n## Installation\n\nAssuming you already have ESLint installed, run:\n\n```sh\n# npm\nnpm install --save-dev @arabasta/eslint-plugin-no-testing-library-without-cleanup\n\n# yarn\nyarn add --dev @arabasta/eslint-plugin-no-testing-library-without-cleanup\n\n# pnpm\npnpm add --save-dev @arabasta/eslint-plugin-no-testing-library-without-cleanup\n```\n\n## Usage\n\n[Flat config](https://eslint.org/docs/latest/use/configure/configuration-files)\n(**eslint.config.js**)\n\n```js\n// ...\nimport noTestingLibraryWithoutCleanup from '@arabasta/eslint-plugin-no-testing-library-without-cleanup';\n\nexport default [\n  // ...\n  noTestingLibraryWithoutCleanup.configs.recommended,\n];\n```\n\n[Legacy config](https://eslint.org/docs/latest/use/configure/configuration-files-deprecated)\n(**.eslintrc**)\n\n```json\n{\n  \"extends\": [\n    // ...\n    \"plugin:@arabasta/no-testing-library-without-cleanup/recommended-legacy\"\n  ]\n}\n```\n\n## Rules\n\n✅ Set in the `recommended` configuration\n\n| Rule                               | Description                                                                   | ✅  |\n| ---------------------------------- | ----------------------------------------------------------------------------- | :-: |\n| no-testing-library-without-cleanup | Enforce the usage of the cleanup function when importing from Testing Library | ✅  |\n\n### `no-testing-library-without-cleanup`\n\nExamples of incorrect code for this rule:\n\n```js\nimport { renderHook } from '@testing-library/react';\n\nrenderHook();\n```\n\nExamples of correct code for this rule:\n\n```js\nimport { cleanup, renderHook } from '@testing-library/react';\n\ncleanup();\n\nrenderHook();\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}