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

eslint.config.js

26 lines575 Bytes

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