Biome 2.0 with format (#510)

* execute migrate command

* migrate to v2

* update config

* supress linter error
This commit is contained in:
Katsuyuki Karasawa
2025-06-18 23:01:28 +09:00
committed by GitHub
parent dd929f87f1
commit 9130765d45
25 changed files with 96 additions and 73 deletions

View File

@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"$schema": "https://biomejs.dev/schemas/2.0.0/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
@@ -7,19 +7,35 @@
},
"files": {
"ignoreUnknown": false,
"ignore": ["src/**/*.css","src/public/**/*", "dist/**/*", "node_modules/**/*"]
"includes": [
"**",
"!**/src/**/*.css",
"!**/src/public/**/*",
"!**/dist/**/*",
"!**/node_modules/**/*"
]
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"organizeImports": {
"enabled": true
},
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"linter": {
"enabled": true,
"rules": {
"recommended": true
"recommended": true,
"style": {
"noParameterAssign": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"noUnusedTemplateLiteral": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error",
"noUselessElse": "error"
}
}
},
"javascript": {
@@ -29,12 +45,16 @@
},
"overrides": [
{
"include": ["*.svelte", "*.astro", "*.vue"],
"includes": ["**/*.svelte", "**/*.astro", "**/*.vue"],
"linter": {
"rules": {
"style": {
"useConst": "off",
"useImportType": "off"
},
"correctness": {
"noUnusedVariables": "off",
"noUnusedImports": "off"
}
}
}