Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: add biome and some fixes #5

Draft
wants to merge 24 commits into
base: main
Choose a base branch
from
Draft
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
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

12 changes: 12 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.2/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
}
}
4 changes: 4 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pre-commit:
commands:
"lint staged files":
run: pnpm lint-staged
6 changes: 5 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
experimental: {
missingSuspenseWithCSRBailout: false,
},
};

export default nextConfig;
69 changes: 36 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,38 @@
{
"name": "seyfert",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@heroicons/react": "^2.1.1",
"@nextui-org/react": "^2.2.9",
"framer-motion": "^11.0.8",
"next": "14.1.0",
"react": "^18",
"react-animated-text-content": "^1.0.1",
"react-dom": "^18",
"react-fast-marquee": "^1.6.4",
"react-simple-typewriter": "^5.0.1",
"react-use": "^17.5.0",
"typewriter-effect": "^2.21.0"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"autoprefixer": "^10.0.1",
"eslint": "^8",
"eslint-config-next": "14.1.0",
"postcss": "^8",
"tailwindcss": "^3.3.0",
"typescript": "^5"
}
"name": "seyfert",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "pnpm biome check --apply-unsafe src",
"lint-staged": "pnpm biome check --staged --apply-unsafe src"
},
"dependencies": {
"@heroicons/react": "^2.1.1",
"@nextui-org/react": "^2.2.9",
"chart.js": "^4.4.2",
"framer-motion": "^11.0.8",
"next": "14.1.0",
"react": "^18",
"react-animated-text-content": "^1.0.1",
"react-chartjs-2": "^5.2.0",
"react-dom": "^18",
"react-fast-marquee": "^1.6.4",
"react-simple-typewriter": "^5.0.1",
"react-use": "^17.5.0",
"typewriter-effect": "^2.21.0"
},
"devDependencies": {
"@biomejs/biome": "1.7.2",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"autoprefixer": "^10.0.1",
"lefthook": "^1.6.10",
"postcss": "^8",
"tailwindcss": "^3.3.0",
"typescript": "^5"
}
}
Loading