webpack.config.js配置文件
resolve: {
extensions: ['.tsx', '.ts', '.js', '.less', '.json'],.../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":