Skip to content

Commit

Permalink
biome
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperknot committed Sep 25, 2024
1 parent c310271 commit cf02435
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 28 deletions.
23 changes: 2 additions & 21 deletions biome.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,8 @@
"enabled": true,
"rules": {
"recommended": true,
"style": {
// "noUselessElse": "off",
// "noParameterAssign": "off",
// "noArguments": "off"
},
"a11y": {
// "useKeyWithClickEvents": "off",
// "useValidAnchor": "off",
"useButtonType": "off"
// "noBlankTarget": "off",
// "noNoninteractiveTabindex": "off"
},
"security": {
// "noDangerouslySetInnerHtml": "off"
},
"suspicious": {
"noAssignInExpressions": "off"
// "noArrayIndexKey": "off"
},
"complexity": {
// "noForEach": "off"
"noForEach": "off"
}
},
"ignore": []
Expand All @@ -45,6 +26,6 @@
},
"files": {
"maxSize": 100000,
"ignore": []
"ignore": ["venv", "dist", ".astro"]
}
}
4 changes: 2 additions & 2 deletions lint.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env bash

# biome
pnpm biome check --write --unsafe --colors=off --log-level=info --log-kind=pretty . | grep path | sort
#pnpm biome check --write --unsafe .
#pnpm biome check --write --unsafe --colors=off --log-level=info --log-kind=pretty . | grep path | sort
pnpm biome check --write --unsafe .

ruff check --fix .
ruff format .
Expand Down
4 changes: 2 additions & 2 deletions website/src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import Donate from '../components/Donate.astro'
import Logo from '../components/Logo.astro'
import Map from '../components/Map.astro'
import Map_ from '../components/Map.astro'
import Layout from '../layouts/Layout.astro'
import { Content as AfterDonate } from '../content/index/after_donate.md'
Expand All @@ -17,7 +17,7 @@ import { Content as WhatisText } from '../content/index/whatis.md'
<h2>How can I use it?</h2>
</div>

<Map />
<Map_ />

<div class="container">
<p>
Expand Down
4 changes: 2 additions & 2 deletions website/src/pages/quick_start.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import Map from '../components/Map.astro'
import Map_ from '../components/Map.astro'
import Layout from '../layouts/Layout.astro'
import Donate from '../components/Donate.astro'
Expand All @@ -26,7 +26,7 @@ import { Content as SelfHostingText } from '../content/how_to_use/self_hosting.m
<p>(You can navigate the map, it's interactive!)</p>
</div>

<Map showStyleURL={true} />
<Map_ showStyleURL={true} />

<div class="container">
<MaplibreText />
Expand Down
2 changes: 1 addition & 1 deletion website/src/styles/map.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}

.mapbg-attrib {
font: 12px / 20px Helvetica Neue, Arial, Helvetica, sans-serif;
font: 12px / 20px "Helvetica Neue", Arial, Helvetica, sans-serif;
background-color: hsla(0, 0%, 100%, 0.5);
padding: 0 5px;
bottom: 0;
Expand Down

0 comments on commit cf02435

Please sign in to comment.