-
Notifications
You must be signed in to change notification settings - Fork 4
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
When "npx monolint" is run from a specific module folder, make it look for the root folder and merge configurations #38
Comments
Design proposal:
{
"root": true
}
In this example, module 1a and module1b won't have "rule1" activated, and module 2a will have it activated. The configuration for a specific module must be the same regardless of calling it from inside the folder, or if calling it from any other parent level (in which all modules inside are discovered and the checks applied) @sergioflores-j @tiagostutz what are your thoughts? |
Sounds good to me! Although I'd prefer to have only one way to resolve the configuration (running from the root folder) to make it less complex. In a messy monorepo, this can indeed save some developer time because it gives some flexibility! Going back to find the closest |
What about having a runtime arg/flag to specify which module to check, but the execution command always treat the current folder as root? For instance:
From the |
I don't like this approach because:
|
When you run monolint it will get configuration only from current folder.
It's useful to call monolint from inside a specific module folder when you want to see only errors for that folder, but monolint have to look for the root .monolint.json file and process all configuration in folders between root and the module folder to express the actual configuration for that module.
The text was updated successfully, but these errors were encountered: