Open History to see the last commit
1// @ts-check
2β
3import { tanstackConfig } from '@tanstack/eslint-config'
4import pluginQuery from '@tanstack/eslint-plugin-query'
5import pluginSvelte from 'eslint-plugin-svelte'
6import tsParser from '@typescript-eslint/parser'
7import { defineConfig } from 'eslint/config'
8β
9export default defineConfig([
10 ...tanstackConfig,
11 ...pluginQuery.configs['flat/recommended-strict'],
12 ...pluginSvelte.configs.recommended,
13 {
14 files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
15 languageOptions: {
16 parserOptions: {
17 parser: tsParser,
18 extraFileExtensions: ['.svelte'],
19 },
20 },
21 },
22 {
23 rules: {
24 '@tanstack/query/exhaustive-deps': [
25 'error',
26 { allowlist: { variables: ['customFetch'] } },
27 ],
28 },
29 },
30])