3.0.2 • Published 1 year ago
@pacote/eslint-config-jest v3.0.2
@pacote/eslint-config-jest
Shareable ESLint configuration for Jest.
Installation
yarn add --dev @pacote/eslint-config-jest eslint eslint-plugin-jest-dom eslint-plugin-jest eslint-plugin-testing-library
Usage
Include the configuration in your project's .eslintrc
file:
{
"extends": ["@pacote/eslint-config-jest"]
}
Testing Library
Because many Testing Library packages exist, linting rules are not included in shareable configuration and should be imported manually. For example:
{
"extends": [
"@pacote/eslint-config-jest",
"plugin:testing-library/dom",
"plugin:testing-library/react"
]
}
License
MIT © Luís Rodrigues.