@@ -103,17 +103,17 @@ module.exports = {
103
103
104
104
| Name | 👍 | 🔧 | Description |
105
105
| ---------------------------------------------------------------------------------------------------------------------------------------------- | --- | --- | --------------------------------------------------------------------- |
106
- | [ prefer-checked] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master /docs/rules/prefer-checked.md ) | 👍 | 🔧 | prefer toBeChecked over checking attributes |
107
- | [ prefer-empty] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master /docs/rules/prefer-empty.md ) | 👍 | 🔧 | Prefer toBeEmpty over checking innerHTML |
108
- | [ prefer-enabled-disabled] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master /docs/rules/prefer-enabled-disabled.md ) | 👍 | 🔧 | prefer toBeDisabled or toBeEnabled over checking attributes |
109
- | [ prefer-focus] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master /docs/rules/prefer-focus.md ) | 👍 | 🔧 | prefer toHaveFocus over checking document.activeElement |
110
- | [ prefer-in-document] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master /docs/rules/prefer-in-document.md ) | 👍 | 🔧 | Prefer .toBeInTheDocument() for asserting the existence of a DOM node |
111
- | [ prefer-required] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master /docs/rules/prefer-required.md ) | 👍 | 🔧 | prefer toBeRequired over checking properties |
112
- | [ prefer-to-have-attribute] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master /docs/rules/prefer-to-have-attribute.md ) | 👍 | 🔧 | prefer toHaveAttribute over checking getAttribute/hasAttribute |
113
- | [ prefer-to-have-class] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master /docs/rules/prefer-to-have-class.md ) | 👍 | 🔧 | prefer toHaveClass over checking element className |
114
- | [ prefer-to-have-style] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master /docs/rules/prefer-to-have-style.md ) | 👍 | 🔧 | prefer toHaveStyle over checking element style |
115
- | [ prefer-to-have-text-content] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master /docs/rules/prefer-to-have-text-content.md ) | 👍 | 🔧 | Prefer toHaveTextContent over checking element.textContent |
116
- | [ prefer-to-have-value] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master /docs/rules/prefer-to-have-value.md ) | 👍 | 🔧 | prefer toHaveValue over checking element.value |
106
+ | [ prefer-checked] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/main /docs/rules/prefer-checked.md ) | 👍 | 🔧 | prefer toBeChecked over checking attributes |
107
+ | [ prefer-empty] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/main /docs/rules/prefer-empty.md ) | 👍 | 🔧 | Prefer toBeEmpty over checking innerHTML |
108
+ | [ prefer-enabled-disabled] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/main /docs/rules/prefer-enabled-disabled.md ) | 👍 | 🔧 | prefer toBeDisabled or toBeEnabled over checking attributes |
109
+ | [ prefer-focus] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/main /docs/rules/prefer-focus.md ) | 👍 | 🔧 | prefer toHaveFocus over checking document.activeElement |
110
+ | [ prefer-in-document] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/main /docs/rules/prefer-in-document.md ) | 👍 | 🔧 | Prefer .toBeInTheDocument() for asserting the existence of a DOM node |
111
+ | [ prefer-required] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/main /docs/rules/prefer-required.md ) | 👍 | 🔧 | prefer toBeRequired over checking properties |
112
+ | [ prefer-to-have-attribute] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/main /docs/rules/prefer-to-have-attribute.md ) | 👍 | 🔧 | prefer toHaveAttribute over checking getAttribute/hasAttribute |
113
+ | [ prefer-to-have-class] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/main /docs/rules/prefer-to-have-class.md ) | 👍 | 🔧 | prefer toHaveClass over checking element className |
114
+ | [ prefer-to-have-style] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/main /docs/rules/prefer-to-have-style.md ) | 👍 | 🔧 | prefer toHaveStyle over checking element style |
115
+ | [ prefer-to-have-text-content] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/main /docs/rules/prefer-to-have-text-content.md ) | 👍 | 🔧 | Prefer toHaveTextContent over checking element.textContent |
116
+ | [ prefer-to-have-value] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/main /docs/rules/prefer-to-have-value.md ) | 👍 | 🔧 | prefer toHaveValue over checking element.value |
117
117
118
118
<!-- __END AUTOGENERATED TABLE__ -->
119
119
@@ -190,11 +190,11 @@ MIT
190
190
[ downloads-badge ] : https://img.shields.io/npm/dm/eslint-plugin-jest-dom.svg?style=flat-square
191
191
[ npmtrends ] : http://www.npmtrends.com/eslint-plugin-jest-dom
192
192
[ license-badge ] : https://img.shields.io/npm/l/eslint-plugin-jest-dom.svg?style=flat-square
193
- [ license ] : https://github.com/testing-library/eslint-plugin-jest-dom/blob/master /LICENSE
193
+ [ license ] : https://github.com/testing-library/eslint-plugin-jest-dom/blob/main /LICENSE
194
194
[ prs-badge ] : https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
195
195
[ prs ] : http://makeapullrequest.com
196
196
[ coc-badge ] : https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
197
- [ coc ] : https://github.com/testing-library/eslint-plugin-jest-dom/blob/master /other/CODE_OF_CONDUCT.md
197
+ [ coc ] : https://github.com/testing-library/eslint-plugin-jest-dom/blob/main /other/CODE_OF_CONDUCT.md
198
198
[ emojis ] : https://github.com/all-contributors/all-contributors#emoji-key
199
199
[ all-contributors ] : https://github.com/all-contributors/all-contributors
200
200
[ bugs ] : https://github.com/testing-library/eslint-plugin-jest-dom/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+sort%3Acreated-desc+label%3Abug
0 commit comments