From c366bd4094a0ac5c803a5c4d847d132d4b241c36 Mon Sep 17 00:00:00 2001 From: zaicevas Date: Mon, 6 Jun 2022 19:04:25 +0200 Subject: [PATCH] docs(prefer-presence-queries): add a note to discourage usage of options --- docs/rules/prefer-presence-queries.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/rules/prefer-presence-queries.md b/docs/rules/prefer-presence-queries.md index aadbf9bd..78ae6463 100644 --- a/docs/rules/prefer-presence-queries.md +++ b/docs/rules/prefer-presence-queries.md @@ -61,10 +61,10 @@ test('some test', async () => { ## Options -| Option | Required | Default | Details | -| ---------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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. | -| `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. | +| Option | Required | Default | Details | +| ---------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `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._ | +| `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._ | ## Example