Skip to content

Commit 13151c8

Browse files
add[mnt]: linter and formatter for js/ts
1 parent 0c42247 commit 13151c8

6 files changed

Lines changed: 168 additions & 2 deletions

File tree

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"[rust]": {
55
"editor.defaultFormatter": "rust-lang.rust-analyzer"
66
},
7+
"[javascript][typescript][json][jsonc]": {
8+
"editor.defaultFormatter": "oxc.oxc-vscode"
9+
},
710
"[toml]": {
811
"editor.defaultFormatter": "tombi-toml.tombi"
912
},

bun.lock

Lines changed: 134 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

oxfmt.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import base from "@kekkon-nexus/config/oxfmt";
2+
import { defineConfig } from "oxfmt";
3+
4+
const config: ReturnType<typeof defineConfig> = defineConfig({
5+
...base,
6+
});
7+
8+
export default config;

oxlint.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import base from "@kekkon-nexus/config/oxlint";
2+
import { defineConfig } from "oxlint";
3+
4+
const config: ReturnType<typeof defineConfig> = defineConfig({
5+
...base,
6+
});
7+
8+
export default config;

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,10 @@
44
"workspaces": [
55
"benches",
66
"npm"
7-
]
7+
],
8+
"devDependencies": {
9+
"@kekkon-nexus/config": "2.260712.0",
10+
"oxfmt": "^0.58.0",
11+
"oxlint": "^1.73.0"
12+
}
813
}

tsconfig.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://www.schemastore.org/tsconfig",
3+
"extends": ["@kekkon-nexus/config/ts", "@kekkon-nexus/config/ts/strict"],
4+
"compilerOptions": {
5+
"allowJs": true,
6+
"checkJs": true,
7+
"skipLibCheck": true
8+
}
9+
}

0 commit comments

Comments
 (0)