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

🧰infra(biome): update biome settings #135

Merged
merged 1 commit into from
Jan 11, 2024
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ $ bun run build
# Start the app
$ bun start

# Format the app
$ bunx @biomejs/biome check --apply-unsafe **
# Format and Lint the files
$ bunx @biomejs/biome check --apply .
```

## 🆚 VSCode
Expand Down
4 changes: 2 additions & 2 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Image from 'next/image'

export default function Home() {

Check warning on line 3 in app/page.tsx

View workflow job for this annotation

GitHub Actions / quality

Avoid default exports.
return (
<main className="flex min-h-screen flex-col items-center justify-between p-24">
<div className="[z-10 max-w-5xl w-full items-center justify-between font-mono text-sm lg:flex">
Expand All @@ -22,7 +22,7 @@
className="dark:invert"
width={100}
height={24}
priority
priority={true}
/>
</a>
</div>
Expand All @@ -35,7 +35,7 @@
alt="Next.js Logo"
width={180}
height={37}
priority
priority={true}
/>
</div>

Expand Down
19 changes: 10 additions & 9 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"files": {
"ignoreUnknown": true
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true,
"defaultBranch": "main"
},
"linter": {
"ignore": [".next", "node_modules"],
"rules": {
"nursery": {
"all": true
}
"all": true
}
},
"formatter": {
"ignore": [".next", "node_modules"],
"indentStyle": "space"
},
"organizeImports": {
"enabled": true
},
"javascript": {
"parser": {
"unsafeParameterDecoratorsEnabled": true
Expand All @@ -30,7 +32,6 @@
"allowComments": true
},
"formatter": {
"enabled": true,
"indentStyle": "space"
}
}
Expand Down
Loading