[英]Running Eslint airbnb specific file returns nothing
I'm running 我在跑
node_modules/.bin/eslint app.jsx
and it returns nothing. 它什么也不返回。 I know there are errors on the page however.
我知道页面上有错误。 Anyone know what is going on?
有人知道发生了什么吗? I don't even get a message on screen.
我什至没有在屏幕上收到消息。
If I run: 如果我运行:
node_modules/.bin/eslint --ext=js --ext=jsx
I'll see the errors in app.jsx. 我将在app.jsx中看到错误。
The reason I am doing just a single file is because I just turned on airbnb with eslint on create-react-app and I have a lot of errors to fix I wanted to do it slowly. 我只做一个文件的原因是因为我刚刚在create-react-app上用eslint打开了airbnb,并且遇到很多错误,我想慢慢来解决。
I guess your app.jsx is in a "src" folder, right? 我猜您的app.jsx位于“ src”文件夹中,对吗? So you have to add it in your command like this:
因此,您必须像这样在命令中添加它:
node_modules/.bin/eslint ./src/app.jsx
Nico 尼科
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.