mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
biome
This commit is contained in:
23
biome.jsonc
23
biome.jsonc
@@ -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": []
|
||||
@@ -45,6 +26,6 @@
|
||||
},
|
||||
"files": {
|
||||
"maxSize": 100000,
|
||||
"ignore": []
|
||||
"ignore": ["venv", "dist", ".astro"]
|
||||
}
|
||||
}
|
||||
|
||||
4
lint.sh
4
lint.sh
@@ -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 .
|
||||
|
||||
@@ -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'
|
||||
@@ -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>
|
||||
|
||||
@@ -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'
|
||||
@@ -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 />
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user