From 632e70441edf71f34ebce04d0702ffac6ca22194 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 9 Oct 2024 18:21:45 +0200 Subject: [PATCH] chore: update eslint.config to new modules --- eslint.config.mjs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 8a58934a..c4af2243 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,5 +1,7 @@ import { FlatCompat } from '@eslint/eslintrc'; import pluginJs from '@eslint/js'; +import vueEslintConfig from '@vue/eslint-config-typescript'; +import prettierConfig from "@vue/eslint-config-prettier"; import pluginVue from 'eslint-plugin-vue'; import globals from 'globals'; import path from 'node:path'; @@ -18,8 +20,13 @@ export default [ pluginJs.configs.recommended, ...tseslint.configs.recommended, ...pluginVue.configs['flat/recommended'], - ...compat.extends('@vue/eslint-config-typescript/recommended'), - ...compat.extends('@vue/eslint-config-prettier'), + ...vueEslintConfig({ + extends: [ + 'recommended', + // 'strict', + ] + }), + prettierConfig, { languageOptions: { parserOptions: {