Assist actions
This page lists every assist action in Biome, grouped by language. Select an action to see examples and its options. To learn how to enable and configure actions, see the Assist guide.
JavaScript
Section titled “JavaScript”source
Section titled “source”| Action | Description | Properties |
|---|---|---|
| noDuplicateClasses | Remove repeated CSS class names. | |
| organizeImports | Organize imports and exports in JavaScript and TypeScript files. | |
| useSortedAttributes | Sort JSX attributes by name. | |
| useSortedEnumMembers | Sort the members of a string-valued TypeScript enum. | |
| useSortedInterfaceMembers | Sort named members of a TypeScript interface. | |
| useSortedKeys | Sort the properties of a JavaScript object. |
- Recommended
- Safe fix
- Unsafe fix
- Not released yet
source
Section titled “source”| Action | Description | Properties |
|---|---|---|
| useSortedProperties | Sort CSS properties into a consistent order. |
- Recommended
- Safe fix
- Unsafe fix
- Not released yet
source
Section titled “source”| Action | Description | Properties |
|---|---|---|
| useSortedKeys | Sort keys in a JSON object. | |
| useSortedPackageJson | Organize package.json fields according to established conventions. |
- Recommended
- Safe fix
- Unsafe fix
- Not released yet
GraphQL
Section titled “GraphQL”source
Section titled “source”| Action | Description | Properties |
|---|---|---|
| useGraphqlSortedArguments | Sort the arguments of GraphQL fields and directives in natural order. | |
| useGraphqlSortedDefinitions | Sort the named definitions in a GraphQL document. | |
| useGraphqlSortedVariables | Sort the variable definitions of GraphQL operations in natural order. | |
| useSortedEnumMembers | Sort GraphQL enum values in natural order. | |
| useSortedSelectionSet | Sort selections inside GraphQL operations and fragments. | |
| useSortedTypeFields | Sort fields in GraphQL type definitions by name. |
- Recommended
- Safe fix
- Unsafe fix
- Not released yet
source
Section titled “source”| Action | Description | Properties |
|---|---|---|
| noDuplicateClasses | Remove repeated CSS class names from HTML class attributes. |
|
| useSortedAttributes | Sort HTML attributes and framework directives into a consistent order. |
- Recommended
- Safe fix
- Unsafe fix
- Not released yet
Action sources
Section titled “Action sources”Many Biome actions are based on rules from other tools. Use the tables below to find the Biome equivalent of a rule you already use.
A rule marked as inspired is not a direct port of the original rule, so its behavior can differ. Biome rules might also support fewer options than the original.
Biome exclusive actions
Section titled “Biome exclusive actions”@eslint/json
Section titled “@eslint/json”| @eslint/json rule | Biome action |
|---|---|
| sort-keys | useSortedKeys |
@html-eslint/eslint-plugin
Section titled “@html-eslint/eslint-plugin”| @html-eslint/eslint-plugin rule | Biome action |
|---|---|
| sort-attrs | useSortedAttributes (inspired) |
ESLint
Section titled “ESLint”| ESLint rule | Biome action |
|---|---|
| no-duplicate-imports | organizeImports (inspired) |
| sort-imports | organizeImports (inspired) |
| sort-keys | useSortedKeys (inspired) |
GraphQL-ESLint
Section titled “GraphQL-ESLint”| GraphQL-ESLint rule | Biome action |
|---|---|
| alphabetize | useGraphqlSortedArguments (inspired) |
Sherif
Section titled “Sherif”| Sherif rule | Biome action |
|---|---|
| unordered-dependencies | useSortedPackageJson (inspired) |
eslint-plugin-astro
Section titled “eslint-plugin-astro”| eslint-plugin-astro rule | Biome action |
|---|---|
| sort-attributes | useSortedAttributes (inspired) |
eslint-plugin-better-tailwindcss
Section titled “eslint-plugin-better-tailwindcss”| eslint-plugin-better-tailwindcss rule | Biome action |
|---|---|
| no-duplicate-classes | noDuplicateClasses (inspired) |
eslint-plugin-import
Section titled “eslint-plugin-import”| eslint-plugin-import rule | Biome action |
|---|---|
| order | organizeImports (inspired) |
eslint-plugin-package-json
Section titled “eslint-plugin-package-json”| eslint-plugin-package-json rule | Biome action |
|---|---|
| sort-collections | useSortedPackageJson (inspired) |
eslint-plugin-package-json-dependencies
Section titled “eslint-plugin-package-json-dependencies”| eslint-plugin-package-json-dependencies rule | Biome action |
|---|---|
| alphabetically-sorted-dependencies | useSortedPackageJson (inspired) |
eslint-plugin-perfectionist
Section titled “eslint-plugin-perfectionist”| eslint-plugin-perfectionist rule | Biome action |
|---|---|
| sort-enums | useSortedEnumMembers (inspired) |
| sort-interfaces | useSortedInterfaceMembers (inspired) |
| sort-objects | useSortedKeys (inspired) |
eslint-plugin-react
Section titled “eslint-plugin-react”| eslint-plugin-react rule | Biome action |
|---|---|
| jsx-sort-props | useSortedAttributes |
eslint-plugin-svelte
Section titled “eslint-plugin-svelte”| eslint-plugin-svelte rule | Biome action |
|---|---|
| sort-attributes | useSortedAttributes (inspired) |
eslint-plugin-typescript-sort-keys
Section titled “eslint-plugin-typescript-sort-keys”| eslint-plugin-typescript-sort-keys rule | Biome action |
|---|---|
| interface | useSortedInterfaceMembers (inspired) |
| string-enum | useSortedEnumMembers (inspired) |
eslint-plugin-vue
Section titled “eslint-plugin-vue”| eslint-plugin-vue rule | Biome action |
|---|---|
| attributes-order | useSortedAttributes (inspired) |
sort-package-json
Section titled “sort-package-json”| sort-package-json rule | Biome action |
|---|---|
| sort-package-json | useSortedPackageJson |
Missing a rule? Help us by contributing to the analyzer or create a rule suggestion here.
© 2023-present Biome developers and contributors.