Tomas Zaicevas

Results 10 issues of Tomas Zaicevas

## Bug Report 🐛 Suggesting `getByText` over `getByLabelText`. As far as I understand, `getByLabelText` is of higher priority than `getByText`, according to https://testing-library.com/docs/queries/about/#priority ## To Reproduce ✔️ ## Expected behavior...

bug

I upgraded `eslint-plugin-import` 2.22.1 -> 2.25.3 and the performance downgrade is huge. `eslint` is `7.24.0`. Roughly a hundred files: ``` Rule | Time (ms) | Relative :------------------------------------------|-----------:|--------: import/no-cycle | 304818.252...

Version: 7.30.1 Config: ```js 'react/jsx-no-leaked-render': ['error', { validStrategies: ['coerce', 'ternary'] }], ``` Before fix: ```tsx const MyComponent = () => { const items = [] const breakpoint = { phones:...

bug
help wanted

### Name for new rule no-empty-text ### Description of the new rule The goal of this rule is to report overly-abusive usage of `selector` option in Text and LabelText queries....

new rule
pinned

We could have a new rule that reports `waitFor` in cases where `waitForElementToBeRemoved` could be used. Could be named `prefer-waiting-for-disappearance` or something similar. From the implementational side, it'd probably make...

enhancement
new rule
pinned

In https://github.com/testing-library/react-hooks-testing-library/blob/main/README.md there are two reasons when not to use react-hooks-testing-library: > 1. Your hook is defined alongside a component and is only used there 2. Your hook is easy...

Some community ESLint plugins (e.g. https://github.com/testing-library/eslint-plugin-testing-library) use typescript. I think it'd be a great idea to have a typescript variant of the generated boilerplate. It'd be something similar to CRA:...

enhancement

Airbnb has a handful of React rules that are covered by TS. One example is `react/require-render-return`. Those rules add additional overhead, including more linting time. What do you think if...

> This is a subtle distinction but a powerful one. Since you don’t call that component function but let React call it, it means React has the power to delay...

### What rule do you want to change? no-node-access ### Does this change cause the rule to produce more or fewer warnings? More warnings ### How will the change be...

enhancement