A BiomeJS shareable configuration package that we used in our projects.
npm install -D @stegripe/biomejs-config # npm
pnpm add -D @stegripe/biomejs-config # pnpm
yarn add -D @stegripe/biomejs-config # yarn
This package requires BiomeJS Configuration File.
Create an biome.json/biome.jsonc
file in the root of your project and add the following code:
{
"extends": ["@stegripe/biomejs-config"]
}
You can also extend specific rules by adding them to the biome.json/biome.jsonc
file. For example:
{
"extends": ["@stegripe/biomejs-config"],
"linter": {
"rules": {
"nursery": {
"useExplicitType": "off"
}
}
}
}
This configuration uses some rules that are still Work-in-Progress (WIP) and categorized under the nursery
.
nursery/noFloatingPromises
: DRequire Promise-like statements to be handled appropriately.nursery/useExplicitType
: Enforce types in functions, methods, variables, and parameters.