Docs: no-restricted-imports doesn't explain paths vs. patterns #18253
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
documentation
Relates to ESLint's documentation
Docs page(s)
https://eslint.org/docs/latest/rules/no-restricted-imports
What documentation issue do you want to solve?
The docs page for
no-restricted-imports
mentions thepaths
andpatterns
objects, but never explicitly says what the difference is or why you'd want to use them. I found this to be confusing. Without poring over the rule's source I don't think it's inferable what the differences between the two are.What do you think is the correct solution?
Could we clearly explain somewhere under Rule Details or Options...
paths
andpatterns
Participation
Additional comments
This issue inspired by talking over the rule with @matthewp. [Discord link]
The text was updated successfully, but these errors were encountered: