Skip to content

Commit

Permalink
feat(prefer-wait-for): remove rule (#648)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `prefer-wait-for` is now removed
  • Loading branch information
skovy authored and MichaelDeBoey committed Oct 4, 2022
1 parent 6de1d96 commit 20f23ad
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 2,549 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/propose_new_rule.yml
Expand Up @@ -7,7 +7,7 @@ body:
attributes:
label: Name for new rule
description: Suggest a name for the new rule that follows the [rule naming conventions](https://github.com/testing-library/eslint-plugin-testing-library/blob/main/CONTRIBUTING.md#rule-naming-conventions).
placeholder: prefer-wait-for
placeholder: prefer-find-by
validations:
required: true

Expand Down
1 change: 0 additions & 1 deletion README.md
Expand Up @@ -231,7 +231,6 @@ To enable this configuration use the `extends` property in your
| [`prefer-query-by-disappearance`](./docs/rules/prefer-query-by-disappearance.md) | Suggest using `queryBy*` queries when waiting for disappearance | | ![dom-badge][] ![angular-badge][] ![react-badge][] ![vue-badge][] ![marko-badge][] |
| [`prefer-screen-queries`](./docs/rules/prefer-screen-queries.md) | Suggest using `screen` while querying | | ![dom-badge][] ![angular-badge][] ![react-badge][] ![vue-badge][] ![marko-badge][] |
| [`prefer-user-event`](./docs/rules/prefer-user-event.md) | Suggest using `userEvent` over `fireEvent` for simulating user interactions | | |
| [`prefer-wait-for`](./docs/rules/prefer-wait-for.md) | Use `waitFor` instead of deprecated wait methods | 🔧 | |
| [`render-result-naming-convention`](./docs/rules/render-result-naming-convention.md) | Enforce a valid naming for return value from `render` | | ![angular-badge][] ![react-badge][] ![vue-badge][] ![marko-badge][] |

<!-- RULES-LIST:END -->
Expand Down
74 changes: 0 additions & 74 deletions docs/rules/prefer-wait-for.md

This file was deleted.

214 changes: 0 additions & 214 deletions lib/rules/prefer-wait-for.ts

This file was deleted.

2 changes: 1 addition & 1 deletion tests/index.test.ts
Expand Up @@ -8,7 +8,7 @@ import plugin from '../lib';
const execAsync = util.promisify(exec);
const generateConfigs = () => execAsync(`npm run generate:configs`);

const numberOfRules = 27;
const numberOfRules = 26;
const ruleNames = Object.keys(plugin.rules);

// eslint-disable-next-line jest/expect-expect
Expand Down

0 comments on commit 20f23ad

Please sign in to comment.