-
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 of husky, eslint and prettier across all packages #85
Comments
i can give this issue a try, if it's still available |
@nagy-nabil yes, you can share the PR. |
So, As Far As I understand . We're a expecting a mono repo with common configurations in packages folder. ANd Inject this with dependencies in all other mono repos? |
yes, you're right @bathini79 |
Thanks for the conformation! I started working on it |
Great, eager to see it in action. I am more excited about this issue. @bathini79 |
I have a follow up question now, If we could simply configure this at root level . And then it would be applicable accross all the mono repos , then what is the need of this kind of configuration? @Nishchit14 |
@bathini79 we need to create an independent package for code quality standards. so we can reuse it everywhere (backend, frontend, plugins, npm packages, oss/non-oss packages). we need to prepare a package once and then reuse it anywhere. this package would be exporting
|
oh! That makes so much sense now, Thanks ! |
@Nishchit14 This is my first working with this kind of setup. Do I need Push the code for just the lint -manager and get a repo created and then i can install where ever we want? |
I am happy that you're showing good courage to work on this issue being a first-time contributor. Let me bring some help for you. We can create the following new packages (under the
Here are some reference packages from other friend oss projects
I see @Dhoni77 has contributed in cal.com, if you can guide or correct us here then it would be a great help @Dhoni77 @bathini79 you can start with creating the first package |
Hey @Nishchit14 I'm good with creating the files and setting up the config. But how do I push these changes that's thing I'm wondering. I've tried with git submodule . But it's not working as expected . It's just saying that it is a submodule and does not show any code in the git |
All folders under the you can learn more about pnpm workspace from here https://pnpm.io/workspaces All these are independent packages. step
|
Hi @Nishchit14 In cal.com they have configured prettier and eslint in a single package and exported it and referenced it in other packages if required. |
That's the plan now, thank you @Dhoni77 |
@bathini79 are you working on it? |
Yes I'm working on it . And do we want to include all the above configs in one repo or multiple repo . And I managed to get the files. Earlier it was not showing in my git diff |
Sure, let's keep |
Okay. I've raised an initial pr. |
That's great @bathini79, I'll review it by tonight. |
Is your feature request related to a problem? Please describe.
Currently, the code formatting is implemented package-wise as the majority of packages were independent repos before the OSS launch. So there is no code formatting, prettify and commit standards are defined for the whole app as a common config file/package.
Describe the solution you'd like
There should be a common package like
@firecamp/eslint
, or@firecamp/prettify
available. we can install them in the mono repo to maintain the standards and reuse the same configuration across all packages.The text was updated successfully, but these errors were encountered: