chore: prepare JS + CSS linter and add CI depending frontend of backend changes

This commit is contained in:
Edouard Vanbelle
2026-04-07 12:21:07 +02:00
parent e752f24c8c
commit 057bab5dad
4 changed files with 126 additions and 6 deletions
+42
View File
@@ -0,0 +1,42 @@
{
"files": {
"includes": ["static/**/*.js", "static/**/*.css", "static/**/*.json" ]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 4,
"lineWidth": 160,
"lineEnding": "lf"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noUnusedVariables": "warn"
}
}
},
"javascript": {
"formatter": {
"indentStyle": "space",
"indentWidth": 4,
"quoteStyle": "single",
"semicolons": "always",
"trailingCommas": "none",
"bracketSameLine": false,
"bracketSpacing": true,
"operatorLinebreak": "after"
}
},
"css": {
"linter": {
"enabled": true
},
"formatter": {
"enabled": true
}
}
}