chore: dependencies
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user