Add biome for js lint and formatting.
This commit is contained in:
parent
92dd57684d
commit
089a0de6e0
1 changed files with 46 additions and 2 deletions
41
biome.json
Normal file
41
biome.json
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
||||
"vcs": {
|
||||
"enabled": true,
|
||||
"clientKind": "git",
|
||||
"useIgnoreFile": true,
|
||||
"defaultBranch": "main"
|
||||
},
|
||||
"files": {
|
||||
"ignoreUnknown": true,
|
||||
"include": ["assets/**/*.js"],
|
||||
"ignore": ["**/*.min.js", "assets/libs/**/*.js"]
|
||||
|
||||
},
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
"indentStyle": "space"
|
||||
},
|
||||
"organizeImports": {
|
||||
"enabled": true
|
||||
},
|
||||
"linter": {
|
||||
"enabled": true,
|
||||
"rules": {
|
||||
"recommended": true,
|
||||
"complexity": {
|
||||
"noForEach": "off",
|
||||
"useArrowFunction": "off"
|
||||
},
|
||||
"style": {
|
||||
"useTemplate": "off"
|
||||
}
|
||||
}
|
||||
},
|
||||
"javascript": {
|
||||
"formatter": {
|
||||
"quoteStyle": "single"
|
||||
},
|
||||
"globals": ["define", "htmx", "jQuery", "Alpine"]
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue