返回 AiToEarn
eslint.config.mjs
根目录 / project / aitoearn-web / eslint.config.mjs
1 import antfu from '@antfu/eslint-config'
2
3 export default antfu({
4 formatters: true,
5 nextjs: true,
6 ignores: ['**/*.md'],
7 rules: {
8 'node/prefer-global/process': ['off'],
9 'no-console': ['off'],
10 'no-unused-vars': 'off',
11 '@typescript-eslint/no-unused-vars': 'off',
12 '@typescript-eslint/ban-ts-comment': 'off',
13 'prefer-promise-reject-errors': 'off',
14 'no-async-promise-executor': 'off',
15 'array-callback-return': 'off',
16 'unused-imports/no-unused-vars': 'off',
17 'unused-imports/no-unused-imports': 'error',
18 'style/multiline-ternary': 'off',
19 'style/no-mixed-operators': 'off',
20 'style/max-statements-per-line': 'off',
21 'eqeqeq': 'off',
22 'no-useless-escape': 'off',
23 '@typescript-eslint/prefer-regexp-exec': 'off',
24 'prefer-regex-literals': 'off',
25 'no-use-before-define': 'off',
26 '@typescript-eslint/no-use-before-define': 'off',
27 'ts/no-use-before-define': 'off',
28 'no-empty-pattern': 'off',
29 'regexp/no-contradiction-with-assertion': 'off',
30 },
31 })
32
32 lines Plain Text