eslint提示 xxx should be listed in the project's dependencies
有时候手动安装了一个npm包A,npm包A里面包含了npm包B,这时候如果importxxxfrom'npm包B';eslint会报错,提示npm包B不在package.json里面解决方法:在eslintrc.js增加配置module.exports={rules:{'import/no-extraneous-dependencies':[0,{devDependencies:true,peer