diff --git a/eslint.config.js b/eslint.config.js index 4430e5d..6dd049d 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,25 +1,33 @@ import js from '@eslint/js' import globals from 'globals' -import reactHooks from 'eslint-plugin-react-hooks' -import reactRefresh from 'eslint-plugin-react-refresh' +import vue from 'eslint-plugin-vue' import tseslint from 'typescript-eslint' import eslintConfigPrettier from 'eslint-config-prettier' import { defineConfig, globalIgnores } from 'eslint/config' export default defineConfig([ globalIgnores(['dist']), + ...vue.configs['flat/recommended'], { - files: ['**/*.{ts,tsx}'], - extends: [ - js.configs.recommended, - tseslint.configs.recommended, - reactHooks.configs.flat.recommended, - reactRefresh.configs.vite, - ], + files: ['**/*.{ts,js}'], + extends: [js.configs.recommended, ...tseslint.configs.recommended], languageOptions: { ecmaVersion: 2020, globals: globals.browser, }, }, + { + files: ['**/*.vue'], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser, + parserOptions: { + parser: '@typescript-eslint/parser', + }, + }, + rules: { + 'vue/multi-word-component-names': 'off', + }, + }, eslintConfigPrettier, ]) diff --git a/index.html b/index.html index 70976ea..1f25d6e 100644 --- a/index.html +++ b/index.html @@ -8,6 +8,6 @@
- +