diff options
| author | Ruben Beltran del Rio <jj@r.bdr.sh> | 2025-12-03 21:54:29 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <jj@r.bdr.sh> | 2025-12-03 21:55:07 +0100 |
| commit | 89eeeb9075acec512111c9f78ed8158a556e06e4 (patch) | |
| tree | 23ab351a1a6d09255bd12f7866908761f8a473bd /eslint.config.js | |
| parent | 587d8fe65d61b8f7217b4e8850b44e43159c16fb (diff) | |
Diffstat (limited to 'eslint.config.js')
| -rw-r--r-- | eslint.config.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..21d385b --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,24 @@ +import ts from 'typescript-eslint'; +import prettier from 'eslint-config-prettier/flat'; +import globals from 'globals'; +import svelteConfig from '@sveltejs/eslint-config'; + +export default ts.config( + ...svelteConfig, + { + files: ['src/*.ts', 'src/*.js'], + extends: [ts.configs.recommendedTypeChecked, prettier], + languageOptions: { + parserOptions: { + projectService: true, + tsconfigRootDir: import.meta.dirname, + }, + globals: { + ...globals.node, + }, + }, + }, + { + ignores: ['**/.svelte-kit'], + }, +); |