flaviostutz / monolint

Linter for monorepos. Checks folder structure, module contents, file contents and naming conventions
MIT License
7 stars 4 forks source link

Checker to verify if all package.json starts with the same prefix among modules #61

Open flaviostutz opened 1 year ago

flaviostutz commented 1 year ago

Is your feature request related to a problem? Please describe. Sometimes in a monorepo we want to declare all packages from the same organization group (e.g.: @mymonorepo/test)

Describe the solution you'd like I would like a rule that shows me package.jsons whose name starts with a different prefix

Describe alternatives you've considered I didn't found alternatives other than implementing something manually

Additional context Maybe this capability could be added to modules-same-contents by manipulating jmespath or something :)

sergioflores-j commented 1 year ago

I like the idea! I think it could be a rule on its own also.

{
  "modules-same-organization": "@<org_name>"
}

What do you think?

flaviostutz commented 1 year ago

Great! For me that’s it :)Sent from my iPhoneOn 23 Nov 2022, at 21:37, Sergio Eduardo Flores Jr. @.***> wrote: I like the idea! I think it could be a rule on its own also. { "modules-same-organization": "@" } What do you think?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>