Open History to see the last commit
1// @ts-check
2β
3import pluginQuery from '@tanstack/eslint-plugin-query'
4import tseslint from 'typescript-eslint'
5import { defineConfig } from 'eslint/config'
6β
7export default defineConfig([
8 ...tseslint.configs.recommended,
9 ...pluginQuery.configs['flat/recommended-strict'],
10 {
11 files: ['src/**/*.ts', 'src/**/*.tsx'],
12 rules: {
13 '@tanstack/query/exhaustive-deps': [
14 'error',
15 {
16 allowlist: {
17 variables: ['api'],
18 types: ['AnalyticsClient'],
19 },
20 },
21 ],
22 },
23 },
24])