I have a folder structure like
parentFolder > componentA
> componentB
> componentC
Each component has a package.json which defines a yarn lint command (eslint "myFilter" --no-error-on-unmatched-pattern). And each component has its own .eslintrc and .prettierrc
When I am in a componentA/B/C folder and run yarn lint, it is working as expected.
Since all of the .eslintrc are the same in each component folder, I moved the file under parentFolder and delete the copies in the component folders. When I call yarn lint, it used the .eslintrc in the parentFolder, but, I am getting an error.
Oops! Something went wrong! :(
ESLint: 6.8.0.
ESLint couldn't find the config "prettier/@typescript-eslint" to extend from. Please check that the name of the config is correct.
I moved the .prettierrc to the parent folder, but, it couldn't find it. What should I do? Thank you
Update: I noticed if I add the prettier on the package.json in the parent folder and run the yarn install, it works. But, I don't know if this is the proper way to do it.
prettier/@typescript-eslint
from theextends
array and all work properly again. After that, I add theprettier/@typescript-elist
to theextends
array and it continues working without problems. This behavior is very strange, I don't know why it fails the first time 🤷‍♂️ and I don't know why it works after a few runs without this key. – Diego Alberto Zapata Häntsch