Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

eslint.config.js

29 lines737 Bytes

1// @ts-check
2​
3import tsParser from '@typescript-eslint/parser'
4import pluginSvelte from 'eslint-plugin-svelte'
5import { defineConfig } from 'eslint/config'
6import rootConfig from './root.eslint.config.js'
7import svelteConfig from './svelte.config.js'
8​
9export default defineConfig([
10 ...rootConfig,
11 ...pluginSvelte.configs['recommended'],
12 {
13 files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
14 languageOptions: {
15 parserOptions: {
16 parser: tsParser,
17 extraFileExtensions: ['.svelte'],
18 svelteConfig,
19 },
20 },
21 },
22 {
23 rules: {
24 'svelte/block-lang': ['error', { script: ['ts'] }],
25 'svelte/no-svelte-internal': 'error',
26 'svelte/valid-compile': 'off',
27 },
28 },
29])