Skip to content

Commit

Permalink
Use Biome for JavaScript
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Sep 20, 2024
1 parent 2b7fb54 commit 168a548
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
8 changes: 4 additions & 4 deletions build-aux/modules/biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
"type": "file",
"dest-filename": "biome",
"only-arches": ["aarch64"],
"url": "https://github.com/biomejs/biome/releases/download/cli%2Fv1.8.3/biome-linux-arm64",
"sha256": "d134e89f6f4fc29d32c8101efb074969ac263ebdb0303e07039e3735002c6a2d"
"url": "https://github.com/biomejs/biome/releases/download/cli%2Fv1.9.2/biome-linux-arm64",
"sha256": "b4b88a36487e5b6c7b34fdc5351f4beb57ce7d88497f57fd3474c64413aabf78"
},
{
"type": "file",
"dest-filename": "biome",
"only-arches": ["x86_64"],
"url": "https://github.com/biomejs/biome/releases/download/cli%2Fv1.8.3/biome-linux-x64",
"sha256": "5495f2f69edd94e9f26ed1adb9ed8023d7c143c3cc6f275f90abdded612217e4"
"url": "https://github.com/biomejs/biome/releases/download/cli%2Fv1.9.2/biome-linux-x64",
"sha256": "e17bb3d15fc192aa767ae7691302f4fd239e80ceaace4c3238857b9da0f43902"
}
]
}
3 changes: 2 additions & 1 deletion data/app.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
</ul>
<p>Dependencies:</p>
<ul>
<li>Update Biome to 1.8.3</li>
<!-- <li>Replace Biome with TypeScript Language Server</li> -->
<li>Update Biome to 1.9.2</li>
<li>Update gst-plugin-gtk4 to 1.12.7</li>
<li>Update libshumate to 1.3</li>
<li>Update Blueprint to 0.14.0</li>
Expand Down
8 changes: 7 additions & 1 deletion src/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ export const languages = [
document: null,
default_file: "main.js",
index: 0,
language_server: ["typescript-language-server", "--stdio"],
// language_server: ["typescript-language-server", "--stdio"],
language_server: [
"biome",
"lsp-proxy",
// src/meson.build installs biome.json there
`--config-path=${pkg.pkgdatadir}`,
],
formatting_options: {
...formatting_options,
tabSize: 2,
Expand Down

0 comments on commit 168a548

Please sign in to comment.