Skip to content

Commit

Permalink
feat: add biome
Browse files Browse the repository at this point in the history
  • Loading branch information
ax-sh committed Jan 14, 2024
1 parent a6608ac commit ad7a522
Show file tree
Hide file tree
Showing 19 changed files with 5,334 additions and 2,221 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: Deploy Next.js site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ['master']
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -21,7 +21,7 @@ permissions:
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: 'pages'
group: "pages"
cancel-in-progress: false

jobs:
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
cache: "pnpm"

- name: Setup Pages
uses: actions/configure-pages@v3
Expand Down
8 changes: 4 additions & 4 deletions .prettier.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ module.exports = {
"error",
{},
{
usePrettierrc: true,
},
],
},
usePrettierrc: true
}
]
}
};
2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
module.exports = { extends: ["@commitlint/config-conventional"] };
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
output: 'export',
output: "export",
// Add basePath
// basePath: '',
images: {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"test": "vitest",
"commitlint": "commitlint --edit",
"check": "biome check --apply ./",
"formatter": "pnpm prettier --write --ignore-unknown .",
"release:minor": "dotenv release-it minor -- --ci",
"lighthouse:local": "lighthouse http://localhost:3000/ --output-path=./report.json --output json --quiet --chrome-flags=\"--headless\" --view --only-categories=performance,color-contrast "
},
Expand Down
Loading

0 comments on commit ad7a522

Please sign in to comment.