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.
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.
I guess your app.jsx is in a "src" folder, right? So you have to add it in your command like this:
node_modules/.bin/eslint ./src/app.jsx
Nico
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.