diff --git a/client/eslint.config.js b/client/eslint.config.js new file mode 100644 index 0000000..8bb9a60 --- /dev/null +++ b/client/eslint.config.js @@ -0,0 +1,47 @@ +import vuePlugin from 'eslint-plugin-vue'; +import vueParser from 'vue-eslint-parser'; +import tsParser from '@typescript-eslint/parser'; + +export default [ + ...vuePlugin.configs['flat/recommended'], + { + languageOptions: { + parser: vueParser, + parserOptions: { + parser: tsParser, + sourceType: 'module', + }, + }, + plugins: { vueParser }, + rules: { + 'semi': [ + 'error', + 'always', + ], + 'comma-dangle': [ + 'error', + 'always-multiline', + ], + 'no-trailing-spaces': 'error', + 'quotes': [ + 'warn', + 'single', + ], + 'prefer-template': 'warn', + 'vue/multi-word-component-names': 'off', + 'vue/html-closing-bracket-spacing': 'off', + 'vue/html-self-closing': 'off', + 'vue/first-attribute-linebreak': 'off', + 'vue/max-attributes-per-line': 'off', + 'vue/html-closing-bracket-newline': 'off', + 'vue/no-dupe-keys': 'off', + 'vue/no-template-shadow': 'off', + 'vue/v-on-event-hyphenation': 'off', + 'vue/singleline-html-element-content-newline': 'off', + 'indent': [ + 'error', + 2, + ], + }, + }, +]; \ No newline at end of file diff --git a/client/package.json b/client/package.json index b51f608..ac04901 100644 --- a/client/package.json +++ b/client/package.json @@ -50,53 +50,5 @@ "vite-plugin-pages": "^0.32.1", "vite-tsconfig-paths": "^4.3.2", "vue-tsc": "^2.0.19" - }, - "eslintConfig": { - "root": true, - "parser": "vue-eslint-parser", - "parserOptions": { - "parser": "@typescript-eslint/parser", - "sourceType": "module" - }, - "overrides": [ - { - "files": "**/*.+(ts|vue)" - } - ], - "extends": [ - "plugin:vue/vue3-strongly-recommended" - ], - "plugins": [ - "eslint-plugin-vue" - ], - "rules": { - "semi": [ - "error", - "always" - ], - "comma-dangle": [ - "error", - "always-multiline" - ], - "no-trailing-spaces": "error", - "quotes": [ - "warn", - "single" - ], - "prefer-template": "warn", - "vue/multi-word-component-names": "off", - "vue/html-closing-bracket-spacing": "off", - "vue/html-self-closing": "off", - "vue/first-attribute-linebreak": "off", - "vue/max-attributes-per-line": "off", - "vue/html-closing-bracket-newline": "off", - "vue/no-dupe-keys": "off", - "vue/no-template-shadow": "off", - "vue/singleline-html-element-content-newline": "off", - "indent": [ - "error", - 2 - ] - } } } \ No newline at end of file diff --git a/client/src/App.vue b/client/src/App.vue index 6cb6c92..64110e0 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -161,7 +161,7 @@ onMounted(async() => { - + @@ -169,15 +169,15 @@ onMounted(async() => { -