/src'),
},
},
一般情况下配置好这个后,在设置webpack配置文件的位置就没问题了
但在typeScript的tsx中无效。...globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: '@typescript-eslint...ecmaVersion: 6,
sourceType: 'module',
},
plugins: [
'react',
'@typescript-eslint...tsx中使用jsx语法
"react/jsx-curly-brace-presence": "off", // 允许在tsx中使用jsx语法
"jsx-quotes":...react-router-dom' // 路由组件
import {Provider, observer} from 'mobx-react'
import AntDemo from '@/pages/ant