Skip to content

Commit 3a6f04a

Browse files
committed
feat: format on save
1 parent 6da07bc commit 3a6f04a

File tree

3 files changed

+32
-22
lines changed

3 files changed

+32
-22
lines changed

.vscode/settings.json

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
{
2-
"svelte.enable-ts-plugin": true,
3-
"rust-analyzer.linkedProjects": [
4-
"infrastructure/eid-wallet/src-tauri/Cargo.toml"
5-
],
6-
"[rust]": {
7-
"editor.defaultFormatter": "rust-lang.rust-analyzer",
8-
"editor.formatOnSave": true
9-
}
2+
"svelte.enable-ts-plugin": true,
3+
"rust-analyzer.linkedProjects": [
4+
"infrastructure/eid-wallet/src-tauri/Cargo.toml"
5+
],
6+
"[rust]": {
7+
"editor.defaultFormatter": "rust-lang.rust-analyzer",
8+
"editor.formatOnSave": true
9+
},
10+
"[js,ts,svelte]": {
11+
"editor.defaultFormatter": "biomejs.biome",
12+
"editor.codeActionsOnSave": {
13+
"source.organizeImports.biome": "explicit",
14+
"source.fixAll.biome": "explicit"
15+
}
16+
}
1017
}

biome.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@
33
"formatter": {
44
"useEditorconfig": true
55
},
6+
"overrides": [
7+
{
8+
"include": ["*.svelte", "*.astro", "*.vue"],
9+
"linter": {
10+
"rules": {
11+
"style": {
12+
"useConst": "off",
13+
"useImportType": "off"
14+
}
15+
}
16+
}
17+
}
18+
],
619
"organizeImports": {
720
"enabled": true
821
}
Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
{
22
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3-
"overrides": [
4-
{
5-
"include": ["*.svelte", "*.astro", "*.vue"],
6-
"linter": {
7-
"rules": {
8-
"style": {
9-
"useConst": "off",
10-
"useImportType": "off"
11-
}
12-
}
13-
}
14-
}
15-
],
16-
"extends": ["../../biome.json"]
3+
"extends": ["../../biome.json"],
4+
"organizeImports": {
5+
"include": ["src/**/*.ts", "src/**/*.svelte"]
6+
}
177
}

0 commit comments

Comments
 (0)