diff options
author | Matt Strapp <matt@mattstrapp.net> | 2024-10-31 10:36:25 -0500 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2024-10-31 10:36:25 -0500 |
commit | 8d1d5ca1cab59ead9085bf00f4ee5214bf10bfe8 (patch) | |
tree | 0d8a1772a4579a136ebfdd06a3d368b3a2c0d1cf /src/packages/svelte/eslint.config.js | |
parent | ci: Alter version bump to only ignore pnpm lockfile, not rest (diff) | |
download | locusts-8d1d5ca1cab59ead9085bf00f4ee5214bf10bfe8.tar locusts-8d1d5ca1cab59ead9085bf00f4ee5214bf10bfe8.tar.gz locusts-8d1d5ca1cab59ead9085bf00f4ee5214bf10bfe8.tar.bz2 locusts-8d1d5ca1cab59ead9085bf00f4ee5214bf10bfe8.tar.lz locusts-8d1d5ca1cab59ead9085bf00f4ee5214bf10bfe8.tar.xz locusts-8d1d5ca1cab59ead9085bf00f4ee5214bf10bfe8.tar.zst locusts-8d1d5ca1cab59ead9085bf00f4ee5214bf10bfe8.zip |
js: Migrate to ESLint 9
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
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]; |