chore: Установка и базовая настройка biome для линтинга и форматирования

This commit is contained in:
Ilia Mashkov
2026-07-14 19:54:19 +03:00
parent 5196a4936b
commit 06b08ed24d
4 changed files with 111 additions and 1 deletions
Binary file not shown.
+14
View File
@@ -0,0 +1,14 @@
{
"$schema": "https://biomejs.dev/schemas/2.5.3/schema.json",
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
"files": { "includes": ["src/**/*", "*.js", "*.json"] },
"formatter": { "enabled": true, "indentStyle": "space", "indentWidth": 2, "lineWidth": 120 },
"linter": { "enabled": true, "rules": { "preset": "recommended" } },
"javascript": {
"formatter": {
"quoteStyle": "single",
"semicolons": "always",
"trailingCommas": "all"
}
}
}
+5 -1
View File
@@ -6,9 +6,13 @@
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
"preview": "vite preview",
"lint": "biome check .",
"lint:fix": "biome check --write .",
"format": "biome format --write ."
},
"devDependencies": {
"@biomejs/biome": "^2.5.3",
"vite": "^8.1.1"
}
}
+92
View File
@@ -5,6 +5,97 @@ __metadata:
version: 8
cacheKey: 10c0
"@biomejs/biome@npm:^2.5.3":
version: 2.5.3
resolution: "@biomejs/biome@npm:2.5.3"
dependencies:
"@biomejs/cli-darwin-arm64": "npm:2.5.3"
"@biomejs/cli-darwin-x64": "npm:2.5.3"
"@biomejs/cli-linux-arm64": "npm:2.5.3"
"@biomejs/cli-linux-arm64-musl": "npm:2.5.3"
"@biomejs/cli-linux-x64": "npm:2.5.3"
"@biomejs/cli-linux-x64-musl": "npm:2.5.3"
"@biomejs/cli-win32-arm64": "npm:2.5.3"
"@biomejs/cli-win32-x64": "npm:2.5.3"
dependenciesMeta:
"@biomejs/cli-darwin-arm64":
optional: true
"@biomejs/cli-darwin-x64":
optional: true
"@biomejs/cli-linux-arm64":
optional: true
"@biomejs/cli-linux-arm64-musl":
optional: true
"@biomejs/cli-linux-x64":
optional: true
"@biomejs/cli-linux-x64-musl":
optional: true
"@biomejs/cli-win32-arm64":
optional: true
"@biomejs/cli-win32-x64":
optional: true
bin:
biome: bin/biome
checksum: 10c0/217e6d54e610dc64a5029cc3748a7faec226cce4399cc76bea4c751c171dcb2254996fc1ad6e345f220e7dd0271f419b7a3e8ecc9d826c566b653d7389350afc
languageName: node
linkType: hard
"@biomejs/cli-darwin-arm64@npm:2.5.3":
version: 2.5.3
resolution: "@biomejs/cli-darwin-arm64@npm:2.5.3"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard
"@biomejs/cli-darwin-x64@npm:2.5.3":
version: 2.5.3
resolution: "@biomejs/cli-darwin-x64@npm:2.5.3"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard
"@biomejs/cli-linux-arm64-musl@npm:2.5.3":
version: 2.5.3
resolution: "@biomejs/cli-linux-arm64-musl@npm:2.5.3"
conditions: os=linux & cpu=arm64 & libc=musl
languageName: node
linkType: hard
"@biomejs/cli-linux-arm64@npm:2.5.3":
version: 2.5.3
resolution: "@biomejs/cli-linux-arm64@npm:2.5.3"
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard
"@biomejs/cli-linux-x64-musl@npm:2.5.3":
version: 2.5.3
resolution: "@biomejs/cli-linux-x64-musl@npm:2.5.3"
conditions: os=linux & cpu=x64 & libc=musl
languageName: node
linkType: hard
"@biomejs/cli-linux-x64@npm:2.5.3":
version: 2.5.3
resolution: "@biomejs/cli-linux-x64@npm:2.5.3"
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard
"@biomejs/cli-win32-arm64@npm:2.5.3":
version: 2.5.3
resolution: "@biomejs/cli-win32-arm64@npm:2.5.3"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard
"@biomejs/cli-win32-x64@npm:2.5.3":
version: 2.5.3
resolution: "@biomejs/cli-win32-x64@npm:2.5.3"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
"@emnapi/core@npm:1.11.1":
version: 1.11.1
resolution: "@emnapi/core@npm:1.11.1"
@@ -197,6 +288,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "arkanoid@workspace:."
dependencies:
"@biomejs/biome": "npm:^2.5.3"
vite: "npm:^8.1.1"
languageName: unknown
linkType: soft