Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/biome-lint.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ilokesto/form": patch
---

Add Biome linter/formatter with `lint`, `lint:fix`, and `format` scripts. Add CI lint step. Remove `.prettierrc` in favor of Biome configuration.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
- name: Typecheck
run: pnpm typecheck

- name: Lint
run: pnpm lint

- name: Test
run: pnpm test

Expand Down
8 changes: 0 additions & 8 deletions .prettierrc

This file was deleted.

43 changes: 43 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"$schema": "https://biomejs.dev/schemas/2.5.5/schema.json",
"assist": { "actions": { "source": { "organizeImports": "off" } } },
"linter": {
"enabled": true,
"rules": {
"preset": "recommended",
"complexity": {
"noStaticOnlyClass": "off",
"noThisInStatic": "off"
},
"correctness": {
"noUnusedImports": "warn",
"useExhaustiveDependencies": "off",
"useHookAtTopLevel": "off"
},
"style": {
"useImportType": "off"
},
"suspicious": {
"noAssignInExpressions": "off",
"useIterableCallbackReturn": "off"
}
}
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 100
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"semicolons": "always",
"trailingCommas": "all",
"arrowParentheses": "asNeeded"
}
},
"files": {
"includes": ["src/**", "vite.config.ts", "biome.json", "package.json"]
}
}
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"build": "rm -rf dist && tsc",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"lint": "biome lint .",
"lint:fix": "biome lint --write .",
"format": "biome format --write .",
"changeset": "changeset",
"version": "changeset version",
"release": "changeset publish"
Expand Down Expand Up @@ -73,6 +76,7 @@
"vite": "^7.3.3",
"vitest": "^4.1.7",
"vue": "^3.5.34",
"@biomejs/biome": "^2.0.0",
"@changesets/cli": "^2.28.0"
},
"peerDependencies": {
Expand Down
Loading
Loading