Closed desi closed 7 months ago
There're two cases which are not covered in the ticket description. Adding here for the tracking purpose.
What happens when there're no lint dependencies in template's package.json?
We haven't covered, what happens, if project package.json has lint dependencies which doesn't exist in template?
We want to make sure that for a given project:
At the time of writing, that would cover packages following the given pattern:
@metamask/eslint-config
@metamask/eslint-config-*
@typescript-eslint/*
eslint
eslint-config-*
eslint-plugin-*
prettier
prettier-plugin-*
So, we'll want to first find dependencies in the module template that match these patterns, and then cross-reference then with the project.
We want to make sure we look for packages that follow these patterns and not specific packages, so that if we change them in the module template we don't have to update
module-lint
.