chore: lint with biome

This commit is contained in:
taskylizard 2024-07-10 03:50:50 +00:00
parent a69a834899
commit 9f39e9663d
No known key found for this signature in database
GPG key ID: 1820131ED1A24120
4 changed files with 157 additions and 2747 deletions

52
biome.json Normal file
View file

@ -0,0 +1,52 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"extends": ["@taskylizard/biome-config"],
"formatter": {
"enabled": false
},
"linter": {
"rules": {
"style": {
"noDefaultExport": "off",
"useNamingConvention": {
"level": "error",
"options": {
"strictCase": false,
"conventions": [
{
"selector": {
"kind": "typeParameter"
},
"formats": ["PascalCase"]
},
{
"selector": {
"kind": "any"
},
"match": "[ab_]|(.{2,})"
},
{
"selector": {
"kind": "objectLiteralMember"
},
"match": ".*"
},
{
"selector": {
"kind": "typeMember"
},
"match": ".*"
},
{
"selector": {
"kind": "variable"
},
"match": ".*"
}
]
}
}
}
}
}
}