Skip to content

Commit 5b7c544

Browse files
committed
fix biome rules
1 parent 11987ef commit 5b7c544

File tree

5 files changed

+172
-266
lines changed

5 files changed

+172
-266
lines changed

cli/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ switch (cmd) {
6666
default: {
6767
if (hasPackage('@mp281x/realtime')) await cliExec(['realtime'])
6868

69-
await cliExec([cmd, ...args])
69+
await cliExec([cmd, ...args], 'pipe')
7070
break
7171
}
7272
}

cli/lib/exec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const readLogFile = async (paths: readonly string[]) => {
6262
}
6363
}
6464

65-
export const cliExec = async (rawArgs: string[], stdio: 'pipe' | 'inherit' = 'pipe') => {
65+
export const cliExec = async (rawArgs: string[], stdio: 'pipe' | 'inherit' = 'inherit') => {
6666
const packageRoot = currentPackageRoot()
6767

6868
const [rawCmd, ...args] = rawArgs as [string, ...string[]]

configs/biome.jsonc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@
1818
"enabled": true,
1919
"rules": {
2020
"all": true,
21-
"nursery": {
22-
"noEmptyBlock": "off",
23-
"useSortedClasses": "error",
24-
"useImportExtensions": "error"
25-
},
2621
"performance": {
2722
"noBarrelFile": "off",
2823
"noReExportAll": "off",
@@ -38,7 +33,9 @@
3833
},
3934
"suspicious": {
4035
"useAwait": "error",
36+
"noConsole": "off",
4137
"noConsoleLog": "off",
38+
"noEmptyBlock": "off",
4239
"noExplicitAny": "off",
4340
"noFocusedTests": "warn",
4441
"noArrayIndexKey": "off",
@@ -53,6 +50,7 @@
5350
"noNamespaceImport": "off",
5451
"noNonNullAssertion": "off",
5552
"useBlockStatements": "off",
53+
"useDefaultSwitchClause": "off",
5654
"useShorthandArrayType": "error",
5755
"useNamingConvention": { "level": "error", "options": { "strictCase": false } }
5856
},
@@ -61,17 +59,19 @@
6159
"noUnusedImports": "off",
6260
"noNodejsModules": "off",
6361
"noUnusedVariables": "off",
62+
"useImportExtensions": "error",
6463
"noUndeclaredVariables": "off"
65-
}
64+
},
65+
"nursery": { "useSortedClasses": "error" }
6666
}
6767
},
6868
"javascript": {
6969
"formatter": {
70-
"bracketSpacing": true,
7170
"quoteStyle": "single",
71+
"bracketSpacing": true,
7272
"bracketSameLine": false,
73-
"semicolons": "asNeeded",
7473
"trailingCommas": "none",
74+
"semicolons": "asNeeded",
7575
"jsxQuoteStyle": "double",
7676
"quoteProperties": "asNeeded",
7777
"arrowParentheses": "asNeeded"

0 commit comments

Comments
 (0)