mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
biome
# Conflicts: # website/public/scripts/donate.js # website/src/styles/_style.css # website/src/styles/collapsible.css
This commit is contained in:
50
biome.jsonc
Normal file
50
biome.jsonc
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
|
||||||
|
"formatter": {
|
||||||
|
"indentStyle": "space",
|
||||||
|
"lineWidth": 100
|
||||||
|
},
|
||||||
|
"organizeImports": {
|
||||||
|
"enabled": true,
|
||||||
|
"ignore": []
|
||||||
|
},
|
||||||
|
"linter": {
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ignore": []
|
||||||
|
},
|
||||||
|
"javascript": {
|
||||||
|
"formatter": {
|
||||||
|
"semicolons": "asNeeded",
|
||||||
|
"quoteStyle": "single"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"files": {
|
||||||
|
"maxSize": 100000,
|
||||||
|
"ignore": []
|
||||||
|
}
|
||||||
|
}
|
||||||
4
lint.sh
4
lint.sh
@@ -1,6 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
pnpm prettier -w .
|
# biome
|
||||||
|
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 check --fix .
|
||||||
ruff format .
|
ruff format .
|
||||||
|
|||||||
Reference in New Issue
Block a user