1.0.0 • Published 9 months ago

@arabasta/eslint-plugin-testing-library v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@arabasta/eslint-plugin-testing-library

NPM Version NPM License

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.

NameDescriptionšŸ’¼
no-testing-library-without-cleanuprequire the usage of the cleanup function when importing from Testing Libraryāœ