chore: update eslint.config to new modules

This commit is contained in:
Matthias 2024-10-09 18:21:45 +02:00
parent a6568b6f17
commit 632e70441e

View File

@ -1,5 +1,7 @@
import { FlatCompat } from '@eslint/eslintrc'; import { FlatCompat } from '@eslint/eslintrc';
import pluginJs from '@eslint/js'; 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 pluginVue from 'eslint-plugin-vue';
import globals from 'globals'; import globals from 'globals';
import path from 'node:path'; import path from 'node:path';
@ -18,8 +20,13 @@ export default [
pluginJs.configs.recommended, pluginJs.configs.recommended,
...tseslint.configs.recommended, ...tseslint.configs.recommended,
...pluginVue.configs['flat/recommended'], ...pluginVue.configs['flat/recommended'],
...compat.extends('@vue/eslint-config-typescript/recommended'), ...vueEslintConfig({
...compat.extends('@vue/eslint-config-prettier'), extends: [
'recommended',
// 'strict',
]
}),
prettierConfig,
{ {
languageOptions: { languageOptions: {
parserOptions: { parserOptions: {