90 lines
1.5 KiB
JSON
90 lines
1.5 KiB
JSON
{
|
|
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
|
"vcs": {
|
|
"enabled": false,
|
|
"clientKind": "git",
|
|
"useIgnoreFile": false
|
|
},
|
|
"files": {
|
|
"ignoreUnknown": false
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "tab"
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"complexity": {
|
|
"noExcessiveCognitiveComplexity": {
|
|
"level": "error",
|
|
"options": {
|
|
"maxAllowedComplexity": 12
|
|
}
|
|
},
|
|
"noExcessiveLinesPerFunction": {
|
|
"level": "warn",
|
|
"options": {
|
|
"maxLines": 70,
|
|
"skipBlankLines": true,
|
|
"skipIifes": true
|
|
}
|
|
}
|
|
},
|
|
"correctness": {
|
|
"noUnusedFunctionParameters": "error"
|
|
},
|
|
"performance": {
|
|
"noAccumulatingSpread": "error"
|
|
},
|
|
"style": {
|
|
"noDefaultExport": "error",
|
|
"noNestedTernary": "error",
|
|
"noNonNullAssertion": "error",
|
|
"noParameterAssign": "error",
|
|
"useAsConstAssertion": "error",
|
|
"useConst": "error",
|
|
"useImportType": "error",
|
|
"useNamingConvention": "error",
|
|
"useNodejsImportProtocol": "error"
|
|
}
|
|
}
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"quoteStyle": "double"
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"includes": ["tests/**/*.ts"],
|
|
"linter": {
|
|
"rules": {
|
|
"complexity": {
|
|
"noExcessiveLinesPerFunction": "off"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"includes": ["src/index.ts"],
|
|
"linter": {
|
|
"rules": {
|
|
"style": {
|
|
"noDefaultExport": "off"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"assist": {
|
|
"enabled": true,
|
|
"actions": {
|
|
"source": {
|
|
"organizeImports": "on"
|
|
}
|
|
}
|
|
}
|
|
}
|