mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-22 06:22:16 +00:00
biome
This commit is contained in:
23
biome.jsonc
23
biome.jsonc
@@ -12,27 +12,8 @@
|
|||||||
"enabled": true,
|
"enabled": true,
|
||||||
"rules": {
|
"rules": {
|
||||||
"recommended": true,
|
"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": {
|
"complexity": {
|
||||||
// "noForEach": "off"
|
"noForEach": "off"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ignore": []
|
"ignore": []
|
||||||
@@ -45,6 +26,6 @@
|
|||||||
},
|
},
|
||||||
"files": {
|
"files": {
|
||||||
"maxSize": 100000,
|
"maxSize": 100000,
|
||||||
"ignore": []
|
"ignore": ["venv", "dist", ".astro"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
4
lint.sh
4
lint.sh
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# biome
|
# biome
|
||||||
pnpm biome check --write --unsafe --colors=off --log-level=info --log-kind=pretty . | grep path | sort
|
#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 .
|
||||||
|
|
||||||
ruff check --fix .
|
ruff check --fix .
|
||||||
ruff format .
|
ruff format .
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
import Donate from '../components/Donate.astro'
|
import Donate from '../components/Donate.astro'
|
||||||
import Logo from '../components/Logo.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 Layout from '../layouts/Layout.astro'
|
||||||
|
|
||||||
import { Content as AfterDonate } from '../content/index/after_donate.md'
|
import { Content as AfterDonate } from '../content/index/after_donate.md'
|
||||||
@@ -17,7 +17,7 @@ import { Content as WhatisText } from '../content/index/whatis.md'
|
|||||||
<h2>How can I use it?</h2>
|
<h2>How can I use it?</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Map />
|
<Map_ />
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
import Map from '../components/Map.astro'
|
import Map_ from '../components/Map.astro'
|
||||||
import Layout from '../layouts/Layout.astro'
|
import Layout from '../layouts/Layout.astro'
|
||||||
|
|
||||||
import Donate from '../components/Donate.astro'
|
import Donate from '../components/Donate.astro'
|
||||||
@@ -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>
|
<p>(You can navigate the map, it's interactive!)</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Map showStyleURL={true} />
|
<Map_ showStyleURL={true} />
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<MaplibreText />
|
<MaplibreText />
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.mapbg-attrib {
|
.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);
|
background-color: hsla(0, 0%, 100%, 0.5);
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user