@stegripe/biomejs-config
v1.1.0
Published
A BiomeJS shareable configuration package that we used in our projects.
Readme
biomejs-config
A BiomeJS shareable configuration package that we used in our projects.
Install
npm install -D @stegripe/biomejs-config # npm
pnpm add -D @stegripe/biomejs-config # pnpm
yarn add -D @stegripe/biomejs-config # yarnUsage
This package requires BiomeJS Configuration File.
Configuration
Create an biome.json/biome.jsonc file in the root of your project and add the following code:
{
"extends": ["@stegripe/biomejs-config"]
}Extending Rules
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"
}
}
}
}Unstable Rules
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.
