mirror of
https://github.com/fmhy/edit.git
synced 2026-01-17 17:31:18 +11:00
chore: lint with biome
This commit is contained in:
parent
a69a834899
commit
9f39e9663d
4 changed files with 157 additions and 2747 deletions
52
biome.json
Normal file
52
biome.json
Normal 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": ".*"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue