Skip to content

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.

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
Action Description Properties
useSortedProperties Sort CSS properties into a consistent order.
  • Recommended
  • Safe fix
  • Unsafe fix
  • Not released yet
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
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
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

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.

@eslint/json rule Biome action
sort-keys useSortedKeys
@html-eslint/eslint-plugin rule Biome action
sort-attrs useSortedAttributes (inspired)
ESLint rule Biome action
no-duplicate-imports organizeImports (inspired)
sort-imports organizeImports (inspired)
sort-keys useSortedKeys (inspired)
GraphQL-ESLint rule Biome action
alphabetize useGraphqlSortedArguments (inspired)
Sherif rule Biome action
unordered-dependencies useSortedPackageJson (inspired)
eslint-plugin-astro rule Biome action
sort-attributes useSortedAttributes (inspired)
eslint-plugin-better-tailwindcss rule Biome action
no-duplicate-classes noDuplicateClasses (inspired)
eslint-plugin-import rule Biome action
order organizeImports (inspired)
eslint-plugin-package-json rule Biome action
sort-collections useSortedPackageJson (inspired)
eslint-plugin-package-json-dependencies rule Biome action
alphabetically-sorted-dependencies useSortedPackageJson (inspired)
eslint-plugin-perfectionist rule Biome action
sort-enums useSortedEnumMembers (inspired)
sort-interfaces useSortedInterfaceMembers (inspired)
sort-objects useSortedKeys (inspired)
eslint-plugin-react rule Biome action
jsx-sort-props useSortedAttributes
eslint-plugin-svelte rule Biome action
sort-attributes useSortedAttributes (inspired)
eslint-plugin-typescript-sort-keys rule Biome action
interface useSortedInterfaceMembers (inspired)
string-enum useSortedEnumMembers (inspired)
eslint-plugin-vue rule Biome action
attributes-order useSortedAttributes (inspired)
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.