const antfu = require('@antfu/eslint-config').default // module.exports = antfu() export default { extends: [ '@antfu', 'plugin:react-hooks/recommended', ], rules: { '@typescript-eslint/consistent-type-definitions': [ 'error', 'type', ], 'no-console': 'off', 'indent': 'off', '@typescript-eslint/indent': [ 'error', 2, { SwitchCase: 1, flatTernaryExpressions: false, ignoredNodes: [ 'PropertyDefinition[decorators]', 'TSUnionType', 'FunctionExpression[params]:has(Identifier[decorators])', ], }, ], 'react-hooks/exhaustive-deps': 'warn', }, }