

Kontent.ai Biome configuration
This is the Biome configuration that Kontent.ai uses for its TypeScript packages. Biome is a fast formatter, linter, and more for JavaScript, TypeScript, JSX, and JSON.
Getting Started
-
Install the package and Biome.
npm i --save-dev @biomejs/biome
npm i --save-dev @kontent-ai/biome-config
-
Extend your Biome configuration by creating a biome.json file in your project root:
// biome.json
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"extends": ["@kontent-ai/biome-config/base"]
}
For React projects, you can extend the React-specific configuration:
// biome.json
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"extends": [
"@kontent-ai/biome-config/base",
"@kontent-ai/biome-config/react"
]
}
-
Run Biome commands based on your project needs:
npx biome format --write .
npx biome lint .
npx biome check .
Available configurations are:
@kontent-ai/biome-config/base (base configuration for any TypeScript/JavaScript file)
@kontent-ai/biome-config/react (React specific rules, should be used together with the base configuration)
License
Distributed under the MIT License. See LICENSE.md for more information.