chore: dependencies

This commit is contained in:
2025-08-06 14:07:15 +08:00
parent fd7cc38f25
commit 355a01cc5d
3 changed files with 37 additions and 7 deletions

View File

@@ -22,7 +22,8 @@
// },
// ])
import antfu from '@antfu/eslint-config';
import antfu, { combine } from '@antfu/eslint-config';
import tanstackPluginQuery from '@tanstack/eslint-plugin-query';
const lintConfig = antfu(
{
@@ -31,6 +32,7 @@ const lintConfig = antfu(
formatters: true,
ignores: ['**/node_modules', '**/dist'],
react: true,
markdown: true,
stylistic: {
indent: 2,
quotes: 'single',
@@ -51,13 +53,20 @@ const lintConfig = antfu(
'style/jsx-quotes': ['error', 'prefer-single'],
'ts/consistent-type-definitions': ['off'],
'ts/no-empty-object-type': ['off'],
// 'no-console': ['warn'],
// 'no-restricted-syntax': ['error', {
// selector: 'CallExpression[callee.property.name=\'forEach\'] > :matches(ArrowFunctionExpression, FunctionExpression)[async=true].arguments',
// message: 'Do not use async functions in .forEach()',
// }],
// 'no-console': ['warn'],
// 'no-restricted-syntax': ['error', {
// selector: 'CallExpression[callee.property.name=\'forEach\'] > :matches(ArrowFunctionExpression, FunctionExpression)[async=true].arguments',
// message: 'Do not use async functions in .forEach()',
// }],
},
},
);
export default lintConfig;
export default combine(
lintConfig,
{
plugins: {
'@tanstack/query': tanstackPluginQuery,
},
},
);