“Import in body of module; reorder to top import/f

2019-07-20 00:31发布

When compiling my ReactJs code I get the following error import/first error:

enter image description here

The solutions presented in similar questions don't seem to work for me.

The ../recharts/es6/index.js file looks something like this:

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 };

My question, therefore, how does one disable the import/first rule for ESLint? Or might the error be due to something else entirely?

0条回答
登录 后发表回答