src/content/docs/assist/javascript/actions.mdx
import { Icon } from "@astrojs/starlight/components";
Below the list of rules supported by Biome, divided by group. Here's a legend of the emojis:
source| Rule name | Description | Properties |
|---|---|---|
| noDuplicateClasses | Remove duplicate CSS classes. | <span class='inline-icon' title='The rule has a safe fix.'><Icon name="seti:config" label="The rule has a safe fix" size="1.2rem" /></span> |
| organizeImports | Provides a code action to sort the imports and exports in the file using a built-in or custom order. | <span class='inline-icon' title="This rule is recommended" ><Icon name="approve-check-circle" size="1.2rem" label="This rule is recommended" /></span><span class='inline-icon' title='The rule has a safe fix.'><Icon name="seti:config" label="The rule has a safe fix" size="1.2rem" /></span> |
| useSortedAttributes | Enforce attribute sorting in JSX elements. | <span class='inline-icon' title='The rule has a safe fix.'><Icon name="seti:config" label="The rule has a safe fix" size="1.2rem" /></span> |
| useSortedInterfaceMembers | Sort interface members by key. | <span class='inline-icon' title='The rule has a safe fix.'><Icon name="seti:config" label="The rule has a safe fix" size="1.2rem" /></span> |
| useSortedKeys | Sort properties of a JS object in natural order. | <span class='inline-icon' title='The rule has a safe fix.'><Icon name="seti:config" label="The rule has a safe fix" size="1.2rem" /></span> |
Missing a rule? Help us by contributing to the analyzer or create a rule suggestion here.