diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2025-06-24 08:53:58 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2025-06-24 09:13:08 +0200 |
| commit | bdba7f5c449c0ac77bbd2420c5bc086a7e369a91 (patch) | |
| tree | 0f4acd13a6a1c62f4e0b1b79a537b09c0470af2e /client/eslint.config.js | |
| parent | d104bd0671181376f0756ba8ae6a03880654c186 (diff) | |
Initial commit of client
Using svelte
Diffstat (limited to 'client/eslint.config.js')
| -rw-r--r-- | client/eslint.config.js | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/client/eslint.config.js b/client/eslint.config.js new file mode 100644 index 0000000..3a30bfc --- /dev/null +++ b/client/eslint.config.js @@ -0,0 +1,36 @@ +import prettier from 'eslint-config-prettier'; +import { includeIgnoreFile } from '@eslint/compat'; +import js from '@eslint/js'; +import svelte from 'eslint-plugin-svelte'; +import globals from 'globals'; +import { fileURLToPath } from 'node:url'; +import ts from 'typescript-eslint'; +import svelteConfig from './svelte.config.js'; + +const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url)); + +export default ts.config( + includeIgnoreFile(gitignorePath), + js.configs.recommended, + ...ts.configs.recommended, + ...svelte.configs.recommended, + prettier, + ...svelte.configs.prettier, + { + languageOptions: { + globals: { ...globals.browser, ...globals.node } + }, + rules: { 'no-undef': 'off' } + }, + { + files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'], + languageOptions: { + parserOptions: { + projectService: true, + extraFileExtensions: ['.svelte'], + parser: ts.parser, + svelteConfig + } + } + } +); |
