Skip to content

Commit

Permalink
Add Biome
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanzilla committed May 15, 2024
1 parent 29c17e9 commit f462929
Show file tree
Hide file tree
Showing 7 changed files with 123 additions and 1 deletion.
1 change: 1 addition & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"antfu.unocss"
"biomejs.biome"
]
}
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"typescript.tsc.autoDetect": "off",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
"source.fixAll.eslint": "explicit",
"quickfix.biome": "explicit"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
Expand Down
26 changes: 26 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"organizeImports": {
"enabled": false
},
"formatter": {
"enabled": false,
"indentStyle": "space",
"indentSize": 2,
"lineWidth": 240,
"ignore": ["dist", "dist_electron", "release", "*.ejs", "index.html"]
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"complexity": { "useLiteralKeys": "off" }
},
"ignore": ["dist", "dist_electron", "release", "*.ejs", "index.html"]
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"tga": "^1.0.7"
},
"devDependencies": {
"@biomejs/biome": "1.7.3",
"@iconify-json/fa6-brands": "^1.1.19",
"@iconify-json/mdi": "^1.1.66",
"@iconify/tools": "^4.0.4",
Expand Down
91 changes: 91 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/libs/stopmotion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ const serializationMapping: SerializationMapping = [

function replaceNonASCIICharacters(inputString: string): string {
// eslint-disable-next-line no-control-regex
// biome-ignore lint/suspicious/noControlCharactersInRegex: <explanation>
return inputString.replace(/[^\x00-\x7F]/g, "?");
}

Expand Down
1 change: 1 addition & 0 deletions src/libs/wago-push-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type { ConfigState, Version } from "@/stores/config";
interface WagoApiResponse {
data: string;
status: number;
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
[Symbol.iterator](): Iterator<any>;
}

Expand Down

0 comments on commit f462929

Please sign in to comment.