57 lines
1.1 KiB
JSON
57 lines
1.1 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/1.9.3/schema.json",
|
|
"organizeImports": {
|
|
"enabled": false
|
|
},
|
|
"formatter": {
|
|
"enabled": false
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"correctness": {
|
|
"noConstantCondition": "warn",
|
|
"noUnusedImports": "error"
|
|
},
|
|
"style": {
|
|
"noParameterAssign": "off",
|
|
"useConst": "error",
|
|
"useConsistentBuiltinInstantiation": "error",
|
|
"useThrowNewError": "error",
|
|
"useThrowOnlyError": "error"
|
|
},
|
|
"recommended": true,
|
|
"complexity": {
|
|
"useSimpleNumberKeys": "off", // In some files we want to use hexadecimal keys
|
|
"noForEach": "off"
|
|
},
|
|
"suspicious": {
|
|
"noEmptyBlockStatements": "error",
|
|
"noControlCharactersInRegex": "off",
|
|
"useErrorMessage": "error"
|
|
},
|
|
"nursery": {
|
|
"noRestrictedImports": {
|
|
"level": "error",
|
|
"options": {
|
|
"paths": {
|
|
"node:buffer": "Use Uint8Array instead of Buffer"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"files": {
|
|
"ignoreUnknown": true,
|
|
"ignore": [
|
|
"./coverage",
|
|
"./yarn",
|
|
"./lib/**/*.d.ts",
|
|
"./lib/**/*.js",
|
|
"./test/**/*.d.ts",
|
|
"./test/**/*.js"
|
|
]
|
|
}
|
|
}
|