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

Add media-query-no-invalid specific problem messages #7462

Conversation

romainmenke
Copy link
Member

Which issue, if any, is this issue related to?

Closes #7401

Is there anything in the PR that needs further explanation?

I've added a second argument for the rejected message.

  • is there an existing pattern in other rules for what I want to do here?
  • is hint a good name for the second argument? (maybe reason, ...)

I am also unsure what the best wording is.
I don't think most people are familiar with the wording of the specification, e.g. range context, plain feature, ...
So I've opted to label everything as a query : range query, boolean query.

Copy link

changeset-bot bot commented Jan 13, 2024

🦋 Changeset detected

Latest commit: 4cc80c2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
stylelint Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ybiquitous
Copy link
Member

ybiquitous commented Jan 14, 2024

@romainmenke Thanks for the pull request!

  • is there an existing pattern in other rules for what I want to do here?

As far as I know, there is no such case. But I think what this PR try is not a problem. 👌🏼

  • is hint a good name for the second argument? (maybe reason, ...)

I prefer reason a bit because I think people want to know the reason for the lint problems.

I don't think most people are familiar with the wording of the specification

I think so, too. Your try looks good to me. 👍🏼

…pe-71a22d3c66' of https://github.com/stylelint/stylelint into media-query-no-invalid--specific-messages--witty-antelope-71a22d3c66
@romainmenke
Copy link
Member Author

Thank you for the feedback @Mouvedia, @ybiquitous 🙇
I've made some changes following your suggestions.

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.

Thank you. LGTM 👍🏼

@ybiquitous ybiquitous mentioned this pull request Jan 15, 2024
4 tasks
Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
@romainmenke romainmenke merged commit 5bb517b into main Jan 15, 2024
16 checks passed
@romainmenke romainmenke deleted the media-query-no-invalid--specific-messages--witty-antelope-71a22d3c66 branch January 15, 2024 07:11
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.

Add media-query-no-invalid specific problem messages
3 participants