-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: common configuration #85 #108
base: main
Are you sure you want to change the base?
feat: common configuration #85 #108
Conversation
|
Name | Link |
---|---|
🔨 Latest commit | d0f1f26 |
@bathini79 can you please explain this PR with some description? I need to understand your view on how to use this common code config in the rest of the app. |
Gentle reminder here @bathini79 |
@Nishchit14 Working on it,now! I'll get you with a practical example |
@Nishchit14 This is architecture i want to go with: 2023-10-19.08-06-27-94.1.mp4 |
It looks good to me and I agree with it. thank you for the nice demonstration. @bathini79. what should be the next step? prettier? |
@Nishchit14 yes prettier and tsconfig |
@Nishchit14 I've included prettier in the same eslint config. Let me know if you want me to configure it differently |
@Nishchit14 I renamed the file to common-config , So we can expand the configs. Also Added A Readme File On How to use it. |
Great job @bathini79 I think keeping the prettier config separately is a good idea instead of combining it within eslint. Also, I have doubts about husky. what would be the best way to implement husky for multiple packages in monorepo and use a common husky setup? |
@Nishchit14 okay . I agree with you I'll separate out prettier config.i'll check about husky and I'll get back to you |
i haved added prettier |
I tried husky , Using the same way for prettier etc. But its not working i expected. I'll check once again though . Here's what i found , it is difficult for husky in a monorepo setup in itself, Let alone in a common configuration file is a bit tricky. https://dev.to/mimafogeus2/enforce-git-hooks-in-monorepos-with-husky-but-how-3fma |
hmmm, thanks for sharing it. i'll try to find some help here @bathini79 |
@Nishchit14 let me know what you have found |
@bathini79 looking into it, give me a day. |
@bathini79 the husky common config is not possible, we need to add it at the whole repo level. that's the way it works, on any commit at the repo level the husky will get triggered to run the staged command. you can give it a final try by adding Husky at the repo level. then after we would be good to go. |
Okay thanks. I'll try by EOD |
c549518
to
d0f1f26
Compare
@Nishchit14 I Pushed the code . I have added pre commit configuration in the root folder and config file in husky . And Also husky config in mono repos . |
This is an initial PR
#85