[英]WebStorm eslint-config-standard error
I'm using WebStorm IDE to create a Node.js server. 我正在使用WebStorm IDE创建Node.js服务器。
I installed eslint-config-standard as instructed by running: 我按照运行说明安装了eslint-config-standard :
npm install --save-dev eslint-config-standard eslint-plugin-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-node
. npm install --save-dev eslint-config-standard eslint-plugin-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-node
。
I set the ESLint package in WebStorm setting but I still get a warning as seen in the screenshot. 我在WebStorm设置中设置了ESLint软件包,但仍然收到警告,如屏幕截图所示。
Any help would be appreciated! 任何帮助,将不胜感激!
You can't run eslint-config-standard directly. 您不能直接运行eslint-config-standard。 You need installing eslint (
npm install eslint --save-dev
) in your project and specify path/to/project/node_modules/eslint
as ESLint package: value. 您需要在项目中安装eslint(
npm install eslint --save-dev
),并将path/to/project/node_modules/eslint
为ESLint package: value。
BTW, WebStorm also supports standard - see https://blog.jetbrains.com/webstorm/2017/01/webstorm-2017-1-eap-171-2272/ for details 顺便说一句,WebStorm还支持标准 -有关详细信息,请参见https://blog.jetbrains.com/webstorm/2017/01/webstorm-2017-1-eap-171-2272/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.