Skip to content

Commit abf7cca

Browse files
nickservbenmonro
authored andcommitted
feat: add prefer-to-have-attribute to recommended config (#18)
1 parent dbf391f commit abf7cca

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Name | ✔️ | 🛠 | Description
7070
[prefer-checked](https://github.com/testing-library/eslint-plugin-jest-dom/blob/master/docs/rules/prefer-checked.md) | ✔️ | 🛠 | prefer toBeChecked over checking attributes
7171
[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
7272
[prefer-required](https://github.com/testing-library/eslint-plugin-jest-dom/blob/master/docs/rules/prefer-required.md) | ✔️ | 🛠 | prefer toBeRequired over checking properties
73-
[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
73+
[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
7474
<!-- __END AUTOGENERATED TABLE__ -->
7575

7676
## Contributors ✨

lib/rules/prefer-to-have-attribute.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
docs: {
1414
description:
1515
'prefer toHaveAttribute over checking getAttribute/hasAttribute ',
16-
recommended: false,
16+
recommended: true,
1717
},
1818
fixable: 'code',
1919
},

tests/__snapshots__/index.test.js.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Object {
4343
"meta": Object {
4444
"docs": Object {
4545
"description": "prefer toHaveAttribute over checking getAttribute/hasAttribute ",
46-
"recommended": false,
46+
"recommended": true,
4747
},
4848
"fixable": "code",
4949
},

0 commit comments

Comments
 (0)