js 与ts 混合的项目,报如下错误提示
Error while parsing xxx/src/components/index.jsLine 1, column 0: Declaration or statement expected.`parseForESLint` from parser `xxx/node_modules/@typescript-eslint/parser/dist/index.js` is invalid and will just be ignored
经过验证,关闭以下配置并无效果
'import/no-unused-modules': ['error', { 'unusedExports': true }]
本质是个如下的代码
// UpdateForm.jsexport default class UpdateForm {}// index.js// eslint 悬浮提示如下// Parsing error: Declaration or statement expected.export UpdateForm from './UpdateForm';

可以参考:
