我有一些进口的问题
import foo from ".";
import bar from "..";
我遇到的问题是,在我的机器上,这将给我错误;
error `..` import should occur before import of `.` import/order
然而,在我朋友的机器上,这看起来不错,并且交换它们将产生相同的错误,但相反。
如果我们运行./node_modules/.bin/eslint -v
,两者均显示为4.19.1。
这里可能发生什么事情导致eslint行为不同?空格或行尾周围有东西吗?
[这看起来像是一个错误,发生在eslint-plugin-import
@ 2.20.1和2.20.2之间。
参见:https://github.com/benmosher/eslint-plugin-import/issues/1760