import antfu from '@antfu/eslint-config' export default antfu({ lessOpinionated: true, stylistic: true, typescript: true, formatters: true, ignores: [ '**/node_modules', '**/dist', ], }, { rules: { 'eslint-comments/no-unlimited-disable': ['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()', }], 'perfectionist/sort-imports': ['error', { tsconfigRootDir: '.', }], 'ts/consistent-type-definitions': ['off'], 'ts/no-empty-object-type': ['off'], 'style/max-statements-per-line': ['error', { max: 2 }], 'style/brace-style': ['error', '1tbs', { allowSingleLine: true }], 'antfu/if-newline': 'off', }, })