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
expiring-todo-comments
package conditions don't work in a multi-package project layout
#403
Comments
Can you post a specific example of your monorepo structure? In the monorepo structure I've used, the linting runs are always done at the project level -- not at the monorepo level. I'm personally okay letting this be an exception but we could call it out in the documentation. |
Awesome, thanks for the links. I guess the monorepos I've maintained were cross-language so we couldn't use one tool for all of included the projects. |
I just ran into this problem. I actually have two use-cases within a single repo. We have a monorepo where much of the root package.json defines only the lowest-level dependencies, while other packages define very common dependencies, and leaf packages define specific dependencies. Something like this
The Inside
The first has knowledge of a dependency in another package, which is fine in a monorepo in my opinion—especially in the comments. The second has knowledge of its own dependencies. Neither of these work because the rule only sees the root package's dependencies (@babel, etc). |
Any update on this? |
Currently
expiring-todo-comments
loadspackage.json
data during initial load and resolves it from working directory. However, in case of monorepo-structured project, linted files may have a closerpackage.json
file. Not sure how much that would affect performance, but I think it makes sense to resolve it for every file individually.The text was updated successfully, but these errors were encountered: