15.1.4 • Published 6 years ago
eslint-plugin-testing-library-react v15.1.4
eslint-plugin-testing-library-react
ESLint plugin for React Testing Library rules guiding best practices.
Install
$ npm install --save eslint-plugin-testing-library-react
$ npx install-peerdeps --dev eslint-plugin-testing-library-react
Configuration
Use our preset to get reasonable defaults:
{
"extends": ["plugin:testing-library-react/recommended"]
}
If you do not use a preset you will need to specify individual rules and add extra configuration.
Add testing-library-react
to the plugins section.
{
"plugins": ["testing-library-react"]
}
Enable the rules that you would like to use.
{
"rules": {
"testing-library-react/prefer-expect-query-by": "error"
}
}
List of supported rules:
15.1.7
6 years ago
15.1.7-canary.6
6 years ago
15.1.6
6 years ago
15.1.6-canary.5
6 years ago
15.1.4-canary.16
6 years ago
15.1.4
6 years ago
15.1.4-canary.3
6 years ago
15.0.0
6 years ago
14.6.1-canary.6
6 years ago