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

eslint.config.js

21 lines476 Bytes

1import pluginQuery from '@tanstack/eslint-plugin-query'
2import tseslint from 'typescript-eslint'
3​
4export default [
5 ...tseslint.configs.recommended,
6 ...pluginQuery.configs['flat/recommended-strict'],
7 {
8 files: ['src/**/*.ts', 'src/**/*.tsx'],
9 rules: {
10 '@tanstack/query/exhaustive-deps': [
11 'error',
12 {
13 allowlist: {
14 variables: ['api'],
15 types: ['AnalyticsClient'],
16 },
17 },
18 ],
19 },
20 },