Common ESLint configuration.
This package is only available via ES Modules and requires ESLint 9 or greater, since it uses flat configs.
This package provides two configurations:
- base - Full configuration with all rules including Prettier integration, import sorting, and unused imports detection
- fast - Performance-optimized configuration that removes slower rules in favor of Biome
The fast
configuration removes the following from the base
configuration for better performance:
- Prettier - Use Biome's formatter instead
-
simple-import-sort - Use Biome's
organizeImports
instead -
unused-imports - Use Biome's
noUnusedImports
instead
Removed ESLint Rule | Biome Replacement | Biome Category |
---|---|---|
eqeqeq |
noDoubleEquals |
suspicious |
@typescript-eslint/consistent-type-imports |
useImportType |
style |
@typescript-eslint/no-unused-vars |
noUnusedVariables |
correctness |
unused-imports/no-unused-imports |
noUnusedImports |
correctness |
simple-import-sort/imports simple-import-sort/exports import-x/first import-x/newline-after-import
|
organizeImports |
Built-in feature |
To use these Biome rules, ensure your biome.jsonc
includes:
Apache-2.0