-
Notifications
You must be signed in to change notification settings - Fork 12
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
[Docs]: boundaries/elements instead of boundaries/element-types in the README? #350
Comments
Hi @vitalets , you're right, it is a typo that should be fixed in the docs. The right setting name is |
@javierbrea I'm looking on it again, and.. shouldn't it be opposite? Define element types in settings:
Define rules:
|
Well... it depends on the point of view, I suppose. I named the setting "boundaries/elements" because it defines the elements that the rules will use. Not only the types, also the capturing groups, etc. (I recognize that, for now, they are basically just types, yes 😜, but this may change in the future. I'm planning to modify it so that each element can have multiple "types" or even different values for various "tags," e.g., Then, we define rules—you're right—but not just for how these types interact with each other. They also determine how they interact with external dependencies ( In summary:
|
That's very clear explanation. Thank you!
Let's wait for community feedback, anyway! PS: concerning tags - I've recently discovered boundaries RFC in turborepo, and they also use tags. Maybe would be helpful for you! |
Another naming idea if there is upcoming "tags" feature:
Example:
|
Thanks for that plugin! I've just read the docs in the readme and a bit confused.
In the overview there is an example of settings, that uses
boundaries/elements
:But in the configuration section it is referenced as
boundaries/element-types
:Is it correct or I'm missing something?
The text was updated successfully, but these errors were encountered: