"导入模块体;重新排序到顶部导入/第一个" ESLint(ReactJs)

时间:2018-04-06 08:09:32

标签: javascript reactjs eslint

编译我的ReactJs代码时,我收到以下错误导入/第一个错误:

enter image description here

similar questions中提出的解决方案似乎并不适用于我。

../recharts/es6/index.js文件看起来像这样:

import _Brush from './cartesian/Brush';
export { _Brush as Brush };
import _ReferenceLine from './cartesian/ReferenceLine';
export { _ReferenceLine as ReferenceLine };
import _ReferenceDot from './cartesian/ReferenceDot';
export { _ReferenceDot as ReferenceDot };
import _ReferenceArea from './cartesian/ReferenceArea';
export { _ReferenceArea as ReferenceArea };

因此,我的问题是如何禁用ESLint的导入/优先规则? 或者错误可能完全是由于其他原因造成的?

0 个答案:

没有答案