diff --git a/.prettierrc b/.prettierrc index 138fb61..43e902d 100644 --- a/.prettierrc +++ b/.prettierrc @@ -17,5 +17,6 @@ "proseWrap": "preserve", "htmlWhitespaceSensitivity": "css", "vueIndentScriptAndStyle": false, - "endOfLine": "auto" + "endOfLine": "auto", + "singleAttributePerLine": true } diff --git a/eslint.config.js b/eslint.config.js index dcea620..ef93cce 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -15,7 +15,7 @@ const vueLint = { files: ['*.vue', '**/*.vue'], languageOptions: { parserOptions: { - parser: "@typescript-eslint/parser" + parser: '@typescript-eslint/parser' } }, rules: { @@ -30,7 +30,23 @@ const vueLint = { } ], - 'vue/custom-event-name-casing': ['error', 'camelCase'] + 'vue/custom-event-name-casing': ['error', 'camelCase'], + + 'vue/html-self-closing': [ + 'error', + { + html: { + void: 'always', + normal: 'always', + component: 'always' + }, + svg: 'always', + math: 'always' + } + ], + + 'vue/singleline-html-element-content-newline': ['off'], + 'vue/html-indent': ['off'] } } diff --git a/src/App.vue b/src/App.vue index dda09c7..ceeaa0d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,7 +6,10 @@ import PageFooter from '/@/components/Layout/PageFooter.vue'