mirror of
https://github.com/photoprism/photoprism.git
synced 2026-07-17 16:49:04 +00:00
Frontend: Update code formatting rules in eslint.config.mjs
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
e7729425fb
commit
39216b2bd6
1 changed files with 16 additions and 3 deletions
|
|
@ -84,7 +84,7 @@ export default defineConfig([
|
|||
allowTemplateLiterals: true,
|
||||
},
|
||||
],
|
||||
"semi": ["error", "always"],
|
||||
"semi": ["warn", "always"],
|
||||
"curly": ["warn", "all"],
|
||||
// Forces braced bodies onto their own line so curly's autofix produces
|
||||
// multi-line `if (x) {\n return;\n}` instead of `if (x) {return;}`.
|
||||
|
|
@ -103,12 +103,25 @@ export default defineConfig([
|
|||
{
|
||||
ignoreWhenNoAttributes: true,
|
||||
ignoreWhenEmpty: true,
|
||||
ignores: ["pre", "textarea", "span", "translate", "a", "v-icon", "v-text-field", "v-input", "v-select", "v-switch", "v-checkbox", "v-img"],
|
||||
ignores: [
|
||||
"pre",
|
||||
"textarea",
|
||||
"span",
|
||||
"translate",
|
||||
"a",
|
||||
"v-icon",
|
||||
"v-text-field",
|
||||
"v-input",
|
||||
"v-select",
|
||||
"v-switch",
|
||||
"v-checkbox",
|
||||
"v-img",
|
||||
],
|
||||
externalIgnores: [],
|
||||
},
|
||||
],
|
||||
"vue/first-attribute-linebreak": [
|
||||
"error",
|
||||
"warn",
|
||||
{
|
||||
singleline: "ignore",
|
||||
multiline: "ignore",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue