Skip to content

Commit ea403ad

Browse files
committed
chore: set tanstack eslint plugin
1 parent f4776c7 commit ea403ad

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

eslint.config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import tanstackPlugin from '@tanstack/eslint-plugin-query';
1010
export default tseslint.config(
1111
{ ignores: ['dist'] },
1212
{
13-
extends: [js.configs.recommended, ...tseslint.configs.recommended],
13+
extends: [js.configs.recommended, ...tseslint.configs.recommended, ...tanstackPlugin.configs['flat/recommended']],
1414
files: ['**/*.{ts,tsx}'],
1515
languageOptions: {
1616
ecmaVersion: 2020,
@@ -20,7 +20,6 @@ export default tseslint.config(
2020
react,
2121
'react-hooks': reactHooks,
2222
'react-refresh': reactRefresh,
23-
'@tanstack/query': tanstackPlugin,
2423
prettier,
2524
},
2625
rules: {
@@ -39,10 +38,6 @@ export default tseslint.config(
3938
},
4039
],
4140
eqeqeq: ['error', 'always'],
42-
'@tanstack/query/exhaustive-deps': 'warn',
43-
'@tanstack/query/stable-query-client': 'warn',
44-
'@tanstack/query/no-deprecated-options': 'warn',
45-
'@tanstack/query/prefer-query-object-syntax': 'warn',
4641
},
4742
},
4843
);

0 commit comments

Comments
 (0)