From 7857fae0177ec829a9ea4549af1031a254728d82 Mon Sep 17 00:00:00 2001 From: Matthieu Morin Date: Mon, 3 Jun 2024 23:59:20 +0200 Subject: [PATCH] eslint new flat config with plugins --- eslint.config.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 eslint.config.js diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..8db0787 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,23 @@ +import globals from 'globals'; +import pluginJs from '@eslint/js'; +import tseslint from 'typescript-eslint'; +import eslintPluginSvelte from 'eslint-plugin-svelte'; +import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; + +export default [ + pluginJs.configs.recommended, + + { + ...eslintPluginSvelte.configs['flat/prettier'], + files: ['*.svelte'] + }, + { + ...tseslint.configs.recommended + }, + { + languageOptions: { + globals: globals.browser + } + }, + eslintPluginPrettierRecommended +];