-
-
Notifications
You must be signed in to change notification settings - Fork 928
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
Publicly expose reference data #6151
Comments
@nex3 Thanks for the suggestion. It sounds like a good idea. 👍🏼 I've labeled |
@nex3 Thanks for the request. I think we should expose our reference data in our public API to help plugin authors. Our public API is well-considered, especially our conventions around rules. In contrast, we haven't given much thought to our reference data. For example,
As people request more data, we can clean up and expose the relevant bits. It'll involve digging into the specs to make sure it's named as accurately as it can be. We could:
In that last example, "properties" is the generic, "longhand" the specific and "sub-properties" the nested data (spec ref). How does that sound? Lastly, the reference data is mostly comprised of Sets. However, there are some objects and arrays in there. Can we unify what we export? |
@jeddy3 Thank you for clearing considerations! Indeed, it's vital to examine APIs before publishing them. I agree with your suggestions. 👍🏼 |
@ybiquitous The shorthand data is currently an object. Do you have any thoughts on whether we should continue to use that structure, or is there something else we can use that ties into the Sets of the other reference files? |
@jeddy3 I think it's more helpful to align data structures. Fortunately,
|
I've created a refactoring PR #6167 before exposing the references. |
What is the problem you're trying to solve?
I'm writing a custom lint that would like to have access to some of the data in
lib/reference
(specificallyshorthandData
). Currently that's not publicly available, although it is used by a number of internal lints which suggests that it's useful for implementing reasonable lints.What solution would you like to see?
Possibly a top-level
reference
export that exposes the various data tables in question.The text was updated successfully, but these errors were encountered: