Skip to content

Commit 63e3f13

Browse files
authored
docs(prefer-presence-queries): add a note to discourage usage of options (#601)
1 parent 3040dad commit 63e3f13

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: docs/rules/prefer-presence-queries.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ test('some test', async () => {
6161

6262
## Options
6363

64-
| Option | Required | Default | Details |
65-
| ---------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
66-
| `presence` | No | `true` | If enabled, this rule will ensure `getBy*` is used to validate whether an element is present. If disabled, `queryBy*` will be accepted for presence queries. |
67-
| `absence` | No | `true` | If enabled, this rule will ensure `queryBy*` is used to validate whether an element is absent. If disabled, `getBy*` will be accepted for absence queries. |
64+
| Option | Required | Default | Details |
65+
| ---------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
66+
| `presence` | No | `true` | If enabled, this rule will ensure `getBy*` is used to validate whether an element is present. If disabled, `queryBy*` will be accepted for presence queries. _Note: using this option is not recommended. It is workaround for false positives that should eventually be [fixed](https://github.com/testing-library/eslint-plugin-testing-library/issues/518) in this repository._ |
67+
| `absence` | No | `true` | If enabled, this rule will ensure `queryBy*` is used to validate whether an element is absent. If disabled, `getBy*` will be accepted for absence queries. _Note: using this option is not recommended. It is workaround for false positives that should eventually be [fixed](https://github.com/testing-library/eslint-plugin-testing-library/issues/518) in this repository._ |
6868

6969
## Example
7070

0 commit comments

Comments
 (0)