Replies: 17 comments
-
Hi @JohnCasab, thanks for the issue!
It's weird that Can you run linting with the --debug flag and share the output? |
Beta Was this translation helpful? Give feedback.
-
I actually solved the problem, what I did was in my From @mdjermanovic do you know why that is? is there something I should be worried about? And thank you for your time! |
Beta Was this translation helpful? Give feedback.
-
Hm, that shouldn't make a difference in this case, unless the errors you were expecting to see are parsing errors due to the use of some > ES7 syntax. |
Beta Was this translation helpful? Give feedback.
-
Hi again @mdjermanovic, I thought I fixed it but it didn't help. Sometimes it's working and sometimes it's not. When I run: Then it's working. Before that it didnt work. |
Beta Was this translation helpful? Give feedback.
-
I also get this warning when I run
|
Beta Was this translation helpful? Give feedback.
-
I also have many errors:
Maybe thats the reason? |
Beta Was this translation helpful? Give feedback.
-
Can you run ESLint with a formatter that lists all files being linted, like tap (just add Then we could see if this is a problem with not linting some files or not reporting the expected errors in those files. |
Beta Was this translation helpful? Give feedback.
-
you mean yarn lint -f tap? |
Beta Was this translation helpful? Give feedback.
-
Can you redirect output to a file (e.g., add |
Beta Was this translation helpful? Give feedback.
-
yarn lint test.js Oops! Something went wrong! :( ESLint: 7.15.0 No files matching the pattern "test.js" were found. error Command failed with exit code 2. test.js is a file inside .storybook folder, so im expecting it to be linted, but thats not happening. |
Beta Was this translation helpful? Give feedback.
-
You're probably getting this error since You can pass |
Beta Was this translation helpful? Give feedback.
-
ESLint gets two patterns, If you want to lint only |
Beta Was this translation helpful? Give feedback.
-
Alright thank you @mdjermanovic for your explanation. But so why is it that the command |
Beta Was this translation helpful? Give feedback.
-
I'm guessing there are too many errors so you can't see them all in your terminal. That would explain why Can you run |
Beta Was this translation helpful? Give feedback.
-
Yes I see all the errors in the tmp.txt file, so the problem was always that to many errors that the terminal could't display them. Thank you @mdjermanovic ! Should I be worried about the |
Beta Was this translation helpful? Give feedback.
-
No, that's expected behavior. When ESLint finds linting errors, exit code will be 1. |
Beta Was this translation helpful? Give feedback.
-
Converting to a discussion as there doesn't appear to be any action item here |
Beta Was this translation helpful? Give feedback.
-
Hello Eslint community,
Tell us about your environment
Configuration
eslintrc.json:
.eslintignore:
!/.storybook
The problem
When I run
yarn lint
, I only see my lint errors for the js files in my src folder. Like this:I created an
test.js
file in my .storybook folder, and created it with errors but I dont see them, when I runyarn lint
, so I thought maybe its only in the folders with dot prefix, but I also createdtest.js
inhelm-chart
folder but that is also not detected when I runyarn lint
.When i run the command
yarn run lint --fix
it actually fixes all my lint problems in both of mytest.js
files in.storybook
andhelm-chart
folders.What did you expect to happen?
I expect to see all lint errors, in all of my .js files in my project.
Beta Was this translation helpful? Give feedback.
All reactions