Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
17
rated 0 times [  23] [ 6]  / answers: 1 / hits: 15112  / 4 Years ago, fri, february 21, 2020, 12:00:00

recently I have updated my project eslint package to eslint: ^6.8.0. And this is when I'm seeing the error



Oops! Something went wrong! :(

ESLint: 6.8.0.

No files matching the pattern lint were found.
Please check for typing mistakes in the pattern.


My package JSON script looks like this:



lint: eslint lint --color src -f ./node_modules/eslint-friendly-formatter src/ tests/unit/__mocks__/ --ext .json --ext .js -c .eslintrc.js,


I'm not sure what's wrong with this script, it was wroking fine with the older verisons of eslint.



When looking for a solution in the forums, the suggestion is to add a flag
--no-error-on-unmatched-pattern. I'm not sure why do I need to add this flag to my script.
Any help appreciated!


More From » eslint

 Answers
7

I guess people have faced this issue on verison 5 as well.. See this issue



https://github.com/eslint/eslint/issues/10587



--no-error-on-unmatched-pattern was added to ignore this kind of problem.


[#51183] Friday, February 14, 2020, 4 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
dayshadelaniej

Total Points: 668
Total Questions: 121
Total Answers: 121

Location: Sao Tome and Principe
Member since Wed, Dec 21, 2022
1 Year ago
;