@arabasta/eslint-plugin-testing-library
v1.0.0
Published
ESLint plugin for testing library rules
Downloads
83
Readme
@arabasta/eslint-plugin-testing-library
ESLint plugin for testing library rules.
Installation
Assuming you already have ESLint installed, run:
# npm
npm install --save-dev @arabasta/eslint-plugin-testing-library
# yarn
yarn add --dev @arabasta/eslint-plugin-testing-library
# pnpm
pnpm add --save-dev @arabasta/eslint-plugin-testing-library
Usage
Flat config (eslint.config.js)
// ...
import arabastaTestingLibrary from '@arabasta/eslint-plugin-testing-library';
export default [
// ...
arabastaTestingLibrary.configs.recommended,
];
Legacy config (.eslintrc)
{
"extends": [
// ...
"plugin:@arabasta/testing-library/recommended-legacy"
]
}
Rules
💼 Configurations enabled in.
✅ Set in the recommended
configuration.
| Name | Description | 💼 | | -------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | --- | | no-testing-library-without-cleanup | require the usage of the cleanup function when importing from Testing Library | ✅ |