-
Notifications
You must be signed in to change notification settings - Fork 1
chore: add Biome for frontend linting and formatting #29
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
Merged
dadofsambonzuki
merged 5 commits into
docs/agentmd-setup-steps-for-noobs
from
chore/linting-fe
Feb 24, 2026
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
fff5971
feat: add Biome for frontend linting and formatting
escapedcat 22a05f4
style: simplify biome.json config
escapedcat 4ce38b6
style: enable modern JS lint rules and fix code
escapedcat 087896a
style: use Biome defaults (2-space indent, double quotes)
escapedcat b64fa58
chore: track package-lock.json for npm ci
escapedcat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| name: Lint | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - 'static/**' | ||
| - 'package.json' | ||
| - 'biome.json' | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - 'static/**' | ||
| - 'package.json' | ||
| - 'biome.json' | ||
|
|
||
| jobs: | ||
| lint: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20' | ||
| cache: 'npm' | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Run Biome | ||
| run: npm run lint |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| { | ||
| "$schema": "https://biomejs.dev/schemas/1.9.0/schema.json", | ||
| "organizeImports": { | ||
| "enabled": true | ||
| }, | ||
| "linter": { | ||
| "rules": { | ||
| "recommended": true, | ||
| "complexity": { | ||
| "noForEach": "off" | ||
| }, | ||
| "style": { | ||
| "noUselessElse": "off", | ||
| "useExponentiationOperator": "off", | ||
| "noParameterAssign": "off" | ||
| }, | ||
| "suspicious": { | ||
| "noAssignInExpressions": "off" | ||
| } | ||
| }, | ||
| "ignore": ["**/.venv/**", "**/node_modules/**", "**/__pycache__/**"] | ||
| }, | ||
| "formatter": { | ||
| "ignore": ["**/.venv/**", "**/node_modules/**", "**/__pycache__/**"] | ||
| } | ||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "name": "btcmap-admin", | ||
| "version": "0.1.0", | ||
| "description": "BTC Map Admin - Frontend dev tools", | ||
| "private": true, | ||
| "scripts": { | ||
| "lint": "biome check .", | ||
| "format": "biome format --write .", | ||
| "lint:fix": "biome check --write ." | ||
| }, | ||
| "devDependencies": { | ||
| "@biomejs/biome": "^1.9.0" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| #map { | ||
| height: 400px; | ||
| width: 100%; | ||
| margin-bottom: 20px; | ||
| height: 400px; | ||
| width: 100%; | ||
| margin-bottom: 20px; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,80 +1,80 @@ | ||
| body { | ||
| padding-top: 5rem; | ||
| padding-top: 5rem; | ||
| } | ||
|
|
||
| .starter-template { | ||
| padding: 3rem 1.5rem; | ||
| text-align: center; | ||
| padding: 3rem 1.5rem; | ||
| text-align: center; | ||
| } | ||
|
|
||
| .form-signin { | ||
| width: 100%; | ||
| max-width: 330px; | ||
| padding: 15px; | ||
| margin: auto; | ||
| width: 100%; | ||
| max-width: 330px; | ||
| padding: 15px; | ||
| margin: auto; | ||
| } | ||
|
|
||
| .form-signin .form-control { | ||
| position: relative; | ||
| box-sizing: border-box; | ||
| height: auto; | ||
| padding: 10px; | ||
| font-size: 16px; | ||
| position: relative; | ||
| box-sizing: border-box; | ||
| height: auto; | ||
| padding: 10px; | ||
| font-size: 16px; | ||
| } | ||
|
|
||
| .form-signin .form-control:focus { | ||
| z-index: 2; | ||
| z-index: 2; | ||
| } | ||
|
|
||
| .form-signin input[type="password"] { | ||
| margin-bottom: 10px; | ||
| border-top-left-radius: 0; | ||
| border-top-right-radius: 0; | ||
| margin-bottom: 10px; | ||
| border-top-left-radius: 0; | ||
| border-top-right-radius: 0; | ||
| } | ||
|
|
||
| /* Area details table - prevent field value overflow */ | ||
| #tags-table { | ||
| table-layout: fixed; | ||
| width: 100%; | ||
| table-layout: fixed; | ||
| width: 100%; | ||
| } | ||
|
|
||
| #tags-table th:first-child, | ||
| #tags-table td:first-child { | ||
| width: 15%; | ||
| width: 15%; | ||
| } | ||
|
|
||
| #tags-table th:nth-child(2), | ||
| #tags-table td:nth-child(2) { | ||
| width: 65%; | ||
| width: 65%; | ||
| } | ||
|
|
||
| #tags-table th:last-child, | ||
| #tags-table td:last-child { | ||
| width: 20%; | ||
| white-space: nowrap; | ||
| width: 20%; | ||
| white-space: nowrap; | ||
| } | ||
|
|
||
| /* Action buttons - standalone with spacing */ | ||
| #tags-table .btn-group { | ||
| display: flex; | ||
| flex-wrap: wrap; | ||
| gap: 0.25rem; | ||
| display: flex; | ||
| flex-wrap: wrap; | ||
| gap: 0.25rem; | ||
| } | ||
|
|
||
| #tags-table .btn-group .btn { | ||
| border-radius: 0.25rem !important; | ||
| border-radius: 0.25rem !important; | ||
| } | ||
|
|
||
| #tags-table .tag-value-cell { | ||
| overflow-wrap: break-word; | ||
| word-wrap: break-word; | ||
| word-break: break-word; | ||
| overflow-wrap: break-word; | ||
| word-wrap: break-word; | ||
| word-break: break-word; | ||
| } | ||
|
|
||
| #tags-table .tag-value-content { | ||
| display: block; | ||
| overflow-wrap: break-word; | ||
| word-wrap: break-word; | ||
| word-break: break-word; | ||
| white-space: normal; | ||
| display: block; | ||
| overflow-wrap: break-word; | ||
| word-wrap: break-word; | ||
| word-break: break-word; | ||
| white-space: normal; | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.