Skip to content

Commit e3a3e7d

Browse files
Update biome config for newer version of Biome 2.x (#391)
Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>
1 parent 6702b85 commit e3a3e7d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/content/docs/tips/biome.mdx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ With `v1.6` Biome provides partial support for Astro. Linting and Formatting is
6969

7070
3. Provide the overrides property inside biome config to support `.astro` files:
7171

72-
```json title="biome.json" ins={12-24}
72+
```json title="biome.json" ins={12-28}
7373
{
74-
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
74+
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
7575
"organizeImports": {
76-
"enabled": true
76+
"enabled": true
7777
},
7878
"linter": {
7979
"enabled": true,
@@ -83,12 +83,16 @@ With `v1.6` Biome provides partial support for Astro. Linting and Formatting is
8383
},
8484
"overrides": [
8585
{
86-
"includes": ["*.astro"],
86+
"includes": ["**/*.svelte", "**/*.astro", "**/*.vue"],
8787
"linter": {
8888
"rules": {
8989
"style": {
9090
"useConst": "off",
9191
"useImportType": "off"
92+
},
93+
"correctness": {
94+
"noUnusedVariables": "off",
95+
"noUnusedImports": "off"
9296
}
9397
}
9498
}

0 commit comments

Comments
 (0)