eslint-plugin-biome
v0.9.21
Published
Runs [Biome](https://biomejs.dev/) as an [ESLint](https://eslint.org/) rule and reports differences as individual ESLint issues.
Maintainers
Readme
eslint-plugin-biome
Runs Biome as an ESLint rule and reports differences as individual ESLint issues.
Requirements
- Node.js >= 18
- ESLint >= 9.0.0
Installation
npm install eslint-plugin-biome --save-devUsage
Configuration
Add biome to your ESLint plugins and configure the rules in your ESLint config:
import pluginBiome from 'eslint-plugin-biome';
export default {
plugins: {
biome: pluginBiome,
},
rules: {
'biome/biome': 'warn', // or 'error'
},
};Custom Configuration
You can pass Biome configuration options to customize formatting behavior:
module.exports = {
rules: {
'biome/biome': [
'warn',
{
formatter: {
indentStyle: 'space',
indentWidth: 2,
},
javascript: {
formatter: {
quoteStyle: 'single',
quoteProperties: 'preserve',
},
},
},
],
},
};License
MIT
