Files
workspace/code/app/app-rn/eslint.config.mjs
T
2026-04-07 17:19:52 +08:00

21 lines
679 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import antfu from '@antfu/eslint-config'
export default antfu({
formatters: true,
react: true,
stylistic: {
indent: 2, // 缩进为 2 个空格(可选 4 或 'tab')
quotes: 'single', // 使用单引号(可选 'double')
},
rules: {
'unused-imports/no-unused-imports': 'off',
'unused-imports/no-unused-vars': 'off',
'@typescript-eslint/no-use-before-define': 'off', // 关闭 TS 的“定义前使用”警告
'no-console': 'off', // 关闭 console 报错
'node/prefer-global/process': 'off',
'@typescript-eslint/no-require-imports': 'off',
'no-useless-catch': 'off',
'react-refresh/only-export-components': 'off',
},
})