eslint couldn't find configuration file
princejoogie opened this issue · 3 comments
princejoogie commented
Zorkann commented
@samgohel I guess @leoroese just missed the eslint configuration file for the shared UI directory. On the tutorial You can see that lint-staged just skipped this directory because it does not find any changes related to this path. That's the reason why everything works on his video.
So to fix this issue you have 2 options:
- If you do not need to lint your shared UI directory, just remove this part from lint-staged.
- If you want to lint your shared UI directory, just add
.eslintrc.js
configuration file inside the/packages/ui
directory. You can copy-paste existing configuration from other projects from/apps/*
or create custom one. Then linting should start working and You will need to fix some linting errors but i guess You can do it yourself 👍
P.S I think that's correct solution, i also just started learning about Monorepo/Workspaces stuff, so i'm not an expert 😄
tonykaram1993 commented
I have fixed the issue on another branch and created a PR for it #9
You can try that and see if it works, it works on my end.