要么我还不完全理解 node dependencies
%中的dependencies
对devDependencies
,要么eslint在这里就错了(无法正确分析):
3:1 error 'chai' should be listed in the project's dependencies, not devDependencies import/no-extraneous-dependencies
4:1 error 'chai-enzyme' should be listed in the project's dependencies, not devDependencies import/no-extraneous-dependencies
5:1 error 'enzyme' should be listed in the project's dependencies, not devDependencies import/no-extraneous-dependencies
7:1 error 'sinon' should be listed in the project's dependencies, not devDependencies import/no-extraneous-dependencies
9:1 error 'redux-mock-store' should be listed in the project's dependencies, not devDependencies import/no-extraneous-dependencies
这些都是测试依赖项,为什么说它们应该列在dependencies
中?
附加说明:我们使用Travis作为我们的CI,所以我也不知道这是否有任何不同.