snapshot of https://github.com/TanStack/query.git (main, 2026-09-16; blobs > 131072B omitted)
This commit is contained in:
21
examples/react/eslint-plugin-demo/eslint.config.js
Normal file
21
examples/react/eslint-plugin-demo/eslint.config.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import pluginQuery from '@tanstack/eslint-plugin-query'
|
||||
import tseslint from 'typescript-eslint'
|
||||
|
||||
export default [
|
||||
...tseslint.configs.recommended,
|
||||
...pluginQuery.configs['flat/recommended-strict'],
|
||||
{
|
||||
files: ['src/**/*.ts', 'src/**/*.tsx'],
|
||||
rules: {
|
||||
'@tanstack/query/exhaustive-deps': [
|
||||
'error',
|
||||
{
|
||||
allowlist: {
|
||||
variables: ['api'],
|
||||
types: ['AnalyticsClient'],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user