Skip to content

Commit f04e818

Browse files
fix: add lint scripts to package.json and update mise to use them
Co-authored-by: lucasew <15693688+lucasew@users.noreply.github.com>
1 parent 156eaa4 commit f04e818

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

mise.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ bun = "1.3.8"
44
[tasks]
55
install = "bun install"
66
codegen = "bun run paraglide:compile"
7-
"lint:eslint" = "bun x eslint ."
8-
"lint:prettier" = "bun x prettier --check ."
7+
"lint:eslint" = "bun run lint:eslint"
8+
"lint:prettier" = "bun run lint:prettier"
99
"lint:check" = "bun run check"
1010
lint = { depends = ["lint:*"] }
11-
"fmt:prettier" = "bun x prettier --write ."
11+
"fmt:prettier" = "bun run fmt:prettier"
1212
fmt = { depends = ["fmt:*"] }
1313
build = "bun run build"
1414
test = "echo 'No tests found'"

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
"build": "vite build",
1111
"preview": "vite preview",
1212
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
13-
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
13+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
14+
"lint:eslint": "eslint .",
15+
"lint:prettier": "prettier --check .",
16+
"fmt:prettier": "prettier --write ."
1417
},
1518
"devDependencies": {
1619
"@eslint/js": "^9.39.2",

0 commit comments

Comments
 (0)