chore: linting

This commit is contained in:
taskylizard 2024-07-10 04:05:54 +00:00
parent 9f39e9663d
commit 048fa9e4a8
No known key found for this signature in database
GPG key ID: 1820131ED1A24120
8 changed files with 35 additions and 49 deletions

View file

@ -1,51 +1,31 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"extends": ["@taskylizard/biome-config"],
"files": {
"ignore": [".vitepress/**/*.vue", ".vitepress/vue-shim.d.ts"]
},
"formatter": {
"enabled": false
},
"javascript": {
"globals": [
"defineNitroConfig",
"eventHandler",
"useRuntimeConfig",
"readValidatedBody",
"defineEventHandler"
]
},
"linter": {
"rules": {
"style": {
"noDefaultExport": "off",
"useNamingConvention": {
"level": "error",
"useFilenamingConvention": {
"level": "info",
"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": ".*"
}
]
"filenameCases": ["camelCase", "PascalCase"]
}
}
},
"noDefaultExport": "off"
}
}
}