2024-03-11 19:13:42 +08:00
|
|
|
module.exports = {
|
2024-03-20 18:30:39 +08:00
|
|
|
root: true,
|
|
|
|
env: {browser: true, es2020: true},
|
|
|
|
extends: [
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:@typescript-eslint/recommended',
|
|
|
|
'plugin:react-hooks/recommended',
|
2024-03-11 19:13:42 +08:00
|
|
|
],
|
2024-03-20 18:30:39 +08:00
|
|
|
ignorePatterns: ['dist', '.eslintrc.cjs'],
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
plugins: ['react-refresh'],
|
|
|
|
rules: {
|
|
|
|
'react-refresh/only-export-components': [
|
|
|
|
'warn',
|
|
|
|
{allowConstantExport: true},
|
|
|
|
],
|
|
|
|
// 去除any报错
|
|
|
|
'@typescript-eslint/no-explicit-any': ['off']
|
|
|
|
},
|
2024-03-11 19:13:42 +08:00
|
|
|
}
|