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
6 changes: 4 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ jobs:
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Install Playwright Browsers
run: pnpm lint && pnpm prettier -c
- name: Run lint
run: pnpm lint
- name: Run typecheck
run: pnpm typecheck
1 change: 0 additions & 1 deletion .husky/pre-commit

This file was deleted.

3 changes: 0 additions & 3 deletions .husky/pre-push

This file was deleted.

4 changes: 0 additions & 4 deletions .lintstagedrc

This file was deleted.

5 changes: 0 additions & 5 deletions .prettierignore

This file was deleted.

5 changes: 0 additions & 5 deletions .prettierrc.json

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.1.3 (2025-11-03)

### Fix

- replace eslint/prettier with biome, replace husky/lint-staged with lefthook

## 1.1.2 (2025-10-24)

### Refactor
Expand Down
40 changes: 40 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.2/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"includes": ["**", "!!**/dist"]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"useEditorconfig": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
},
"css": {
"parser": {
"tailwindDirectives": true
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
}
}
23 changes: 23 additions & 0 deletions commitlint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
export default {
extends: ["@commitlint/config-conventional"],
rules: {
"type-enum": [
2,
"always",
[
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"refactor",
"revert",
"style",
"test",
"bump",
],
],
},
};
38 changes: 0 additions & 38 deletions eslint.config.js

This file was deleted.

17 changes: 17 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
pre-commit:
commands:
check:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
run: npx @biomejs/biome check --write --no-errors-on-unmatched --files-ignore-unknown=true --colors=off {staged_files}
stage_fixed: true

pre-push:
commands:
check:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
run: npx @biomejs/biome check --no-errors-on-unmatched --files-ignore-unknown=true --colors=off {push_files}

commit-msg:
commands:
"lint commit message":
run: pnpm commitlint --edit {1}
60 changes: 24 additions & 36 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "checkquest",
"private": true,
"version": "1.1.2",
"version": "1.1.3",
"type": "module",
"packageManager": "pnpm@10.19.0",
"packageManager": "pnpm@10.20.0",
"engines": {
"node": ">=20.0.0",
"pnpm": ">=9.0.0"
Expand All @@ -13,21 +13,20 @@
"dev": "vite",
"prebuild": "node scripts/generate-templates.js",
"build": "tsc -b && vite build",
"lint": "eslint .",
"lint": "biome check",
"format": "biome check --fix",
"typecheck": "tsc -b --noEmit",
"prettier": "prettier .",
"lint-commit": "commitlint --from HEAD~1 --to HEAD",
"preview": "vite preview",
"test": "vitest ./src",
"test-e2e": "playwright test",
"prepare": "husky",
"cm": "cz commit"
"test-e2e": "playwright test"
},
"dependencies": {
"@nanostores/persistent": "^0.10.2",
"@nanostores/react": "^0.8.4",
"chart.js": "^4.5.0",
"chart.js": "^4.5.1",
"clsx": "^2.1.1",
"es-toolkit": "^1.40.0",
"es-toolkit": "^1.41.0",
"keyux": "^0.11.3",
"nanoid": "^5.1.6",
"nanostores": "^0.11.4",
Expand All @@ -37,41 +36,30 @@
"wouter": "^3.7.1"
},
"devDependencies": {
"@axe-core/playwright": "^4.10.2",
"@eslint/js": "^9.37.0",
"@playwright/test": "^1.56.0",
"@axe-core/playwright": "^4.11.0",
"@biomejs/biome": "2.3.2",
"@commitlint/cli": "^20.1.0",
"@commitlint/config-conventional": "^20.0.0",
"@playwright/test": "^1.56.1",
"@tailwindcss/typography": "^0.5.19",
"@tailwindcss/vite": "^4.1.14",
"@tailwindcss/vite": "^4.1.16",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.0",
"@types/chart.js": "^2.9.41",
"@types/node": "^24.7.2",
"@types/node": "^24.9.2",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.1",
"@vitejs/plugin-react": "^4.7.0",
"@vitest/coverage-v8": "3.1.1",
"@vitest/ui": "^3.2.4",
"daisyui": "^5.2.3",
"eslint": "^9.37.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.23",
"@types/react-dom": "^19.2.2",
"@vitejs/plugin-react": "^5.1.0",
"@vitest/coverage-v8": "4.0.6",
"@vitest/ui": "^4.0.6",
"daisyui": "^5.4.2",
"globals": "^15.15.0",
"husky": "^9.1.7",
"jsdom": "^26.1.0",
"lint-staged": "^16.2.6",
"prettier": "^3.6.2",
"prettier-plugin-tailwindcss": "^0.6.14",
"tailwindcss": "^4.1.14",
"lefthook": "^2.0.2",
"tailwindcss": "^4.1.16",
"typescript": "^5.9.3",
"typescript-eslint": "^8.46.0",
"vite": "^6.3.6",
"vite": "^6.4.1",
"vite-bundle-analyzer": "^1.2.3",
"vitest": "^3.2.4"
},
"husky": {
"hooks": {
"prepare-commit-msg": "exec < /dev/tty && npx cz --hook || true"
}
"vitest": "^4.0.6"
}
}
Loading