Skip to content

Commit 455be4a

Browse files
authored
biome -> oxlint, oxfmt (#579)
* Use newer imports * 25 * Add oxlint * Fix docs * Fix staged * yml -> yaml * oxlint --fix * Use oxlint as ci script * Use different plugin * type-aware * Add oxfmt * Add oxfmt config * Format yaml * Format package.json * Add config * Faster call * Fix devcontainer * Remove old config * Remove format * Try to fix windows * Use default dir * Skip oxfmt for windows
1 parent 12a0b31 commit 455be4a

File tree

9 files changed

+907
-373
lines changed

9 files changed

+907
-373
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"editorconfig.editorconfig",
88
"streetsidesoftware.code-spell-checker",
99
"streetsidesoftware.code-spell-checker-german",
10-
"biomejs.biome"
10+
"oxc.oxc-vscode"
1111
]
1212
}
1313
},

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ node_modules
1010
*.md
1111
compose.yaml
1212
logs
13-
biome.json
13+
.oxfmtrc.json
1414
LICENSE
1515
flake.*
1616
shell.nix

.oxfmtrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"ignorePatterns": ["*.md"],
4+
"arrowParens": "avoid"
5+
}

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"streetsidesoftware.code-spell-checker",
55
"streetsidesoftware.code-spell-checker-german",
66
"TypeScriptTeam.native-preview",
7-
"biomejs.biome"
7+
"oxc.oxc-vscode"
88
]
99
}

.vscode/settings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66
"flake.nix": "flake.lock",
77
"*.ts": "$(capture).test.ts,$(capture).d.ts"
88
},
9-
"files.eol": "\n",
9+
"oxc.typeAware": true,
1010
"typescript.experimental.useTsgo": false,
1111
"cSpell.language": "de,en",
1212
"editor.formatOnSaveMode": "modificationsIfAvailable",
1313
"files.associations": {
1414
"config*.json": "jsonc"
1515
},
1616
"[javascript]": {
17-
"editor.defaultFormatter": "biomejs.biome"
17+
"editor.defaultFormatter": "oxc.oxc-vscode"
1818
},
1919
"[typescript]": {
20-
"editor.defaultFormatter": "biomejs.biome"
20+
"editor.defaultFormatter": "oxc.oxc-vscode"
2121
},
2222
"cSpell.words": [
2323
"aehre",

biome.json

Lines changed: 0 additions & 51 deletions
This file was deleted.

lefthook.yml renamed to lefthook.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Docs: https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md
1+
# docs: https://lefthook.dev/configuration/
2+
23
pre-push:
34
commands:
45
lint:
@@ -10,11 +11,11 @@ pre-commit:
1011
commands:
1112
format:
1213
glob: "*.{js,ts,json}"
13-
run: node --run format -- --staged
14+
run: node --run format -- {staged_files}
1415
stage_fixed: true
1516
lint-fix:
1617
glob: "*.{js,ts,json}"
17-
run: node --run lint:fix -- --staged
18+
run: node --run lint:fix -- {staged_files}
1819
stage_fixed: true
1920

2021
output:

0 commit comments

Comments
 (0)