|
582 | 582 | - Promoted [`useSolidForComponent`](https://biomejs.dev/linter/rules/use-solid-for-component) to the
|
583 | 583 | `performance` group.
|
584 | 584 | - Promoted [`noMagicNumbers`](https://biomejs.dev/linter/rules/no-magic-numbers) to the `style` group.
|
585 |
| - - Promoted [ |
586 |
| - `useConsistentObjectDefinitions`](https://biomejs.dev/linter/rules/use-consistent-object-definitions) to the |
| 585 | + - Promoted [`useConsistentObjectDefinitions`](https://biomejs.dev/linter/rules/use-consistent-object-definitions) to the |
587 | 586 | `style` group.
|
588 | 587 | - Promoted [`useExportsLast`](https://biomejs.dev/linter/rules/use-exports-last) to the `style` group.
|
589 | 588 | - Promoted [`useGroupedAccessorPairs`](https://biomejs.dev/linter/rules/use-grouped-accessor-pairs) to the
|
|
614 | 613 |
|
615 | 614 | The following rules have been renamed during promotion. The migration tool will automatically update your configuration:
|
616 | 615 | - Renamed `noAwaitInLoop` to [`noAwaitInLoops`](https://biomejs.dev/linter/rules/no-await-in-loops).
|
617 |
| - - Renamed `noConstantBinaryExpression` to [ |
618 |
| - `noConstantBinaryExpressions`](https://biomejs.dev/linter/rules/no-constant-binary-expressions). |
619 |
| - - Renamed `noDestructuredProps` to [ |
620 |
| - `noSolidDestructuredProps`](https://biomejs.dev/linter/rules/no-solid-destructured-props). |
| 616 | + - Renamed `noConstantBinaryExpression` to [`noConstantBinaryExpressions`](https://biomejs.dev/linter/rules/no-constant-binary-expressions). |
| 617 | + - Renamed `noDestructuredProps` to [`noSolidDestructuredProps`](https://biomejs.dev/linter/rules/no-solid-destructured-props). |
621 | 618 | - Renamed `noImplicitCoercion` to [`noImplicitCoercions`](https://biomejs.dev/linter/rules/no-implicit-coercions).
|
622 |
| - - Renamed `noReactPropAssign` to [ |
623 |
| - `noReactPropAssignments`](https://biomejs.dev/linter/rules/no-react-prop-assignments). |
| 619 | + - Renamed `noReactPropAssign` to [`noReactPropAssignments`](https://biomejs.dev/linter/rules/no-react-prop-assignments). |
624 | 620 | - Renamed `noUnknownAtRule` to [`noUnknownAtRules`](https://biomejs.dev/linter/rules/no-unknown-at-rules).
|
625 |
| - - Renamed `noUselessBackrefInRegex` to [ |
626 |
| - `noUselessRegexBackrefs`](https://biomejs.dev/linter/rules/no-useless-regex-backrefs). |
627 |
| - - Renamed `useAdjacentGetterSetter` to [ |
628 |
| - `useGroupedAccessorPairs`](https://biomejs.dev/linter/rules/use-grouped-accessor-pairs). |
629 |
| - - Renamed `useConsistentObjectDefinition` to [ |
630 |
| - `useConsistentObjectDefinitions`](https://biomejs.dev/linter/rules/use-consistent-object-definitions). |
631 |
| - - Renamed `useConsistentResponse` to [ |
632 |
| - `useStaticResponseMethods`](https://biomejs.dev/linter/rules/use-static-response-methods). |
| 621 | + - Renamed `noUselessBackrefInRegex` to [`noUselessRegexBackrefs`](https://biomejs.dev/linter/rules/no-useless-regex-backrefs). |
| 622 | + - Renamed `useAdjacentGetterSetter` to [`useGroupedAccessorPairs`](https://biomejs.dev/linter/rules/use-grouped-accessor-pairs). |
| 623 | + - Renamed `useConsistentObjectDefinition` to [`useConsistentObjectDefinitions`](https://biomejs.dev/linter/rules/use-consistent-object-definitions). |
| 624 | + - Renamed `useConsistentResponse` to [`useStaticResponseMethods`](https://biomejs.dev/linter/rules/use-static-response-methods). |
633 | 625 | - Renamed `useForComponent` to [`useSolidForComponent`](https://biomejs.dev/linter/rules/use-solid-for-component).
|
634 |
| - - Renamed `useJsonImportAttribute` to [ |
635 |
| - `useJsonImportAttributes`](https://biomejs.dev/linter/rules/use-json-import-attributes). |
636 |
| - - Renamed `useNamedOperation` to [ |
637 |
| - `useGraphqlNamedOperations`](https://biomejs.dev/linter/rules/use-graphql-named-operations). |
638 |
| - - Renamed `useNamingConvention` to [ |
639 |
| - `useGraphqlNamingConvention`](https://biomejs.dev/linter/rules/use-graphql-naming-convention). |
640 |
| - - Renamed `useUnifiedTypeSignature` to [ |
641 |
| - `useUnifiedTypeSignatures`](https://biomejs.dev/linter/rules/use-unified-type-signatures). |
| 626 | + - Renamed `useJsonImportAttribute` to [`useJsonImportAttributes`](https://biomejs.dev/linter/rules/use-json-import-attributes). |
| 627 | + - Renamed `useNamedOperation` to [`useGraphqlNamedOperations`](https://biomejs.dev/linter/rules/use-graphql-named-operations). |
| 628 | + - Renamed `useNamingConvention` to [`useGraphqlNamingConvention`](https://biomejs.dev/linter/rules/use-graphql-naming-convention). |
| 629 | + - Renamed `useUnifiedTypeSignature` to [`useUnifiedTypeSignatures`](https://biomejs.dev/linter/rules/use-unified-type-signatures). |
642 | 630 |
|
643 | 631 | Configuration files using the old rule names will need to be updated. Use the migration tool to automatically update your configuration:
|
644 | 632 |
|
|
4730 | 4718 |
|
4731 | 4719 | Now the rule correctly handles the following cases:
|
4732 | 4720 |
|
4733 |
| - - If an element is hidden from screen readers |
4734 |
| - - If an element has the presentation role |
4735 |
| - - If an element is interactive |
| 4721 | + - If an element is hidden from screen readers |
| 4722 | + - If an element has the presentation role |
| 4723 | + - If an element is interactive |
4736 | 4724 |
|
4737 | 4725 | ```jsx
|
4738 | 4726 | // No errors
|
|
4741 | 4729 | <button onClick={() => {}} /> // interactive role
|
4742 | 4730 | ```
|
4743 | 4731 |
|
4744 |
| - This change ensures the rule is more accurate and helpful. |
| 4732 | + This change ensures the rule is more accurate and helpful. |
4745 | 4733 |
|
4746 | 4734 | 2. **Checks spread syntax**:
|
4747 | 4735 |
|
|
0 commit comments