mirror of
https://github.com/fmhy/edit.git
synced 2026-01-17 17:31:18 +11:00
chore: linting
This commit is contained in:
parent
9f39e9663d
commit
048fa9e4a8
8 changed files with 35 additions and 49 deletions
54
biome.json
54
biome.json
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue