diff options
Diffstat (limited to '')
-rw-r--r-- | src/packages/svelte/eslint.config.mjs (renamed from src/packages/svelte/eslint.config.js) | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/src/packages/svelte/eslint.config.js b/src/packages/svelte/eslint.config.mjs index a526565..7a1890c 100644 --- a/src/packages/svelte/eslint.config.js +++ b/src/packages/svelte/eslint.config.mjs @@ -1,24 +1,11 @@ -import prettier from 'eslint-config-prettier'; -import js from '@eslint/js'; import svelte from 'eslint-plugin-svelte'; -import globals from 'globals'; import ts from 'typescript-eslint'; +import library from '@repo/eslint-config/eslint.library.config.js'; -export default ts.config( - js.configs.recommended, - ...ts.configs.recommended, +const svelteConfig = ts.config( ...svelte.configs['flat/recommended'], - prettier, ...svelte.configs['flat/prettier'], { - languageOptions: { - globals: { - ...globals.browser, - ...globals.node - } - } - }, - { files: ['**/*.svelte'], languageOptions: { @@ -31,3 +18,6 @@ export default ts.config( ignores: ['build/', '.svelte-kit/', 'dist/'] } ); + +/** @type {import("eslint").Linter.Config[]} */ +export default [...library, ...svelteConfig]; |