Skip to content

Commit

Permalink
chore: upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
yong.feng5 committed Dec 2, 2024
1 parent a0e0a40 commit 40bcfd8
Show file tree
Hide file tree
Showing 30 changed files with 2,917 additions and 4,237 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

73 changes: 0 additions & 73 deletions .eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm run lint:commitlint --edit $1
7 changes: 2 additions & 5 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm run lint:ls-lint
pnpm run lint:lint-staged
pnpm run lint:tsc
pnpm run lint:biome
pnpm run test:types
4 changes: 0 additions & 4 deletions .lintstagedrc.json

This file was deleted.

20 changes: 5 additions & 15 deletions .ls-lint.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
ls:
.js: kebab-case
.jsx: kebab-case
.cjs: kebab-case
.mjs: kebab-case
.config.js: kebab-case
.ts: kebab-case
.tsx: kebab-case
.d.ts: kebab-case
.test.ts: kebab-case
.test.tsx: kebab-case
.config.ts: kebab-case
.md: kebab-case
.mdx: kebab-case
.dir: kebab-case
.*: kebab-case

ignore:
- node_modules
- dist
- .git
- .github
- .husky
- .vscode
- dist
- node_modules
- README.md
3 changes: 0 additions & 3 deletions .prettierignore

This file was deleted.

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

This file was deleted.

5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"cSpell.words": ["commitlint", "fkworld", "mantine", "tabler", "tailwindcss"],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
"source.fixAll.biome": "explicit",
"source.organizeImports.biome": "explicit"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true
}
27 changes: 27 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"organizeImports": {
"enabled": true
},
"formatter": {
"enabled": true,
"lineWidth": 120,
"attributePosition": "multiline",
"indentStyle": "space"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noUnusedImports": "error"
},
"a11y": {
"useKeyWithClickEvents": "off"
},
"nursery": {
"useSortedClasses": "error"
}
}
}
}
58 changes: 24 additions & 34 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@
"scripts": {
"prepare": "husky install",
"dev": "vite",
"test": "vitest run",
"build": "vite build",
"preview": "vite preview",
"lint:eslint": "eslint --fix .",
"lint:prettier": "prettier --write .",
"lint:lint-staged": "lint-staged",
"lint:biome": "biome check --unsafe --write .",
"lint:ls-lint": "ls-lint",
"lint:commitlint": "commitlint",
"lint:tsc": "tsc"
"test:lib": "vitest run",
"test:types": "tsc --noEmit"
},
"repository": {
"type": "git",
Expand All @@ -27,37 +25,29 @@
},
"homepage": "https://github.com/fkworld/space",
"dependencies": {
"@mantine/core": "^7.2.2",
"@mantine/form": "^7.2.2",
"@mantine/hooks": "^7.2.2",
"@tabler/icons-react": "^2.42.0",
"@vitejs/plugin-react": "^4.2.0",
"@mantine/core": "^7.14.2",
"@mantine/form": "^7.14.2",
"@mantine/hooks": "^7.14.2",
"@tabler/icons-react": "^3.22.0",
"@vitejs/plugin-react": "^4.3.4",
"color": "^4.2.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.20.0",
"tailwindcss": "^3.3.5",
"typescript": "^5.3.2",
"vite": "^5.0.4"
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router": "^7.0.1",
"tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.1",
"vite-tsconfig-paths": "^5.1.3"
},
"devDependencies": {
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"@ls-lint/ls-lint": "^2.2.2",
"@types/color": "^3.0.6",
"@types/react": "^18.2.39",
"@types/react-dom": "^18.2.17",
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/parser": "^6.13.1",
"eslint": "^8.54.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-tailwindcss": "^3.13.0",
"husky": "^8.0.3",
"lint-staged": "^15.1.0",
"prettier": "^3.1.0",
"vitest": "^0.34.6"
"@biomejs/biome": "^1.9.4",
"@commitlint/cli": "^19.6.0",
"@commitlint/config-conventional": "^19.6.0",
"@ls-lint/ls-lint": "^2.2.3",
"@types/color": "^4.2.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"husky": "^9.1.7",
"vitest": "^2.1.6"
}
}
Loading

0 comments on commit 40bcfd8

Please sign in to comment.