Skip to content
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 #6152

Closed
wants to merge 1 commit into from
Closed

Publicly expose reference data #6152

wants to merge 1 commit into from

Conversation

nex3
Copy link
Contributor

@nex3 nex3 commented Jun 15, 2022

Closes #6151

@nex3
Copy link
Contributor Author

nex3 commented Jun 15, 2022

Note: this shouldn't be merged until people have a chance to discuss #6151

Copy link
Member

@ybiquitous ybiquitous left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nex3 Thanks for creating the pull request!

I think there are no significant problems. Could you consider addressing my review comments? Of course, you can do it after the discussion.

@@ -364,6 +364,77 @@ declare module 'stylelint' {
line?: number;
};

export type KeywordSets = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[suggest] Could you add a type annotation to each module like this? By doing so, we could improve the code's type safety.

// lib/reference/keywordSets.js

/** @type {import('stylelint').KeywordSets} */
const keywordSets = {};

// ...

module.exports = (keywordSets);

Comment on lines +5 to +8
## 14.10.0

- Added: `reference` export, which contains reference data from the CSS spec that may be useful for custom lints.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[suggest] Could you revert the change, please? We will update the changelog after merged.

Suggested change
## 14.10.0
- Added: `reference` export, which contains reference data from the CSS spec that may be useful for custom lints.

@@ -1,6 +1,6 @@
{
"name": "stylelint",
"version": "14.9.1",
"version": "14.10.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[suggest] Could you revert the version, please? It will be automatically updated on release.

Suggested change
"version": "14.10.0",
"version": "14.9.1",

@nex3
Copy link
Contributor Author

nex3 commented Jun 24, 2022

I'm going to close this out in favor of #6168, which is a more principled approach to the same goal.

@nex3 nex3 closed this Jun 24, 2022
@ybiquitous ybiquitous deleted the expose-reference branch June 28, 2022 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Publicly expose reference data
2 participants