-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Labels
frontendIssues or pull requests that relate to the frontendIssues or pull requests that relate to the frontendtech debtTech debt, potential refactoringsTech debt, potential refactorings
Description
Re-enable each of the Biome rules in biome.jsonc and fix the findings of that rule. Please create small PRs, preferably fixing only one rule per PR.
Accessibility Rules (a11y)
-
noAutofocus- Prevent the usage of autofocus attribute Enabled no autofocus rule #2704 -
noInteractiveElementToNoninteractiveRole- The HTML element with an interactive role should not be assigned a non-interactive ARIA role Enabled use semantic elements rule #2683 -
noLabelWithoutControl- Enforce that a label element or component has a text label and an associated input Enabled no label without control rule #2689 -
noStaticElementInteractions- Prevent static elements from having interactive handlers without a role Enabled no static element interactions rule #2690 -
noSvgWithoutTitle- Enforces the usage of the title element for the svg element Enabled no svg without title rule #2688 -
useButtonType- Enforces the usage of the attribute type for the element button Enabled use button type rule #2684 -
useSemanticElements- It detects the use of role attributes in JSX elements and suggests using semantic elements instead Enabled use semantic elements rule #2683 -
useValidAnchor- Enforce that anchors have content and that the content is accessible to screen readers Enabled use valid anchor rule #2682
Complexity Rules
-
noImportantStyles- Disallow the use of !important in CSS Enabled no important styles rule #2703 -
noUselessFragments- Disallow unnecessary fragments Enabled no useless fragments rule #2680
Correctness Rules
-
noEmptyPattern- Disallows empty destructuring patterns Enabled no empty pattern and no descending specificity rules #2679 -
useExhaustiveDependencies- Enforce all dependencies are correctly specified in a React hook Enabled use exhaustive dependencies rule #2681
Performance Rules
-
noAccumulatingSpread- Disallow the use of spread syntax in accumulators Enabled no accumulating spread rule #2687
Style Rules
-
noDescendingSpecificity- Disallow a lower specificity selector from coming after a higher specificity selector Enabled no empty pattern and no descending specificity rules #2679 -
useConst- Require const declarations for variables that are only assigned once Enabled use const rule #2678 -
useImportType- Promotes the use of type-only imports Enabled use import type rule #2677 -
useNodejsImportProtocol- Enforces using the node: protocol for Node.js builtin modules Enabled use nodejs import protocol rule #2676 -
useTemplate- Template literals are preferred over string concatenation Enabled use template rule #2675
Suspicious Rules
-
noArrayIndexKey- Discourage the usage of Array index in keys Enable no array index key rule #2674 -
noDoubleEquals- Require the use of === and !== Enable no double equals rule #2670 -
noImplicitAnyLet- Use a more explicit type annotation instead of any for variable declarations Enable no implicit any let rule #2672 -
noPrototypeBuiltins- Disallow direct use of Object.prototype builtins Enable no prototype builtins rule #2673
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
frontendIssues or pull requests that relate to the frontendIssues or pull requests that relate to the frontendtech debtTech debt, potential refactoringsTech debt, potential refactorings
Type
Projects
Status
Done