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

Provide links to message #7648

Open
StanislavSapogov opened this issue Apr 24, 2024 · 3 comments
Open

Provide links to message #7648

StanislavSapogov opened this issue Apr 24, 2024 · 3 comments
Labels
status: needs discussion triage needs further discussion

Comments

@StanislavSapogov
Copy link

What is the problem you're trying to solve?

https://stylelint.io/user-guide/configure/#message
It would be great to provide a link to the message property

What solution would you like to see?

{ "message": "Expected custom property name to be [kebab-case](https://kebab-case)" }

@Mouvedia Mouvedia added the status: needs clarification triage needs clarification from author label Apr 24, 2024
@Mouvedia
Copy link
Contributor

What type of link are you talking about?
An anchor link pointing to the core rule itself?
A string argument which would be added to every rules?
What's your use case? Why do you need that url?

@StanislavSapogov
Copy link
Author

StanislavSapogov commented Apr 24, 2024

We have documentation for our design system and I'm writing a rule to help our developers use our variables, so I'd like to provide a URL to our docs :)
So, it would be possible to see them in hovers in vscode e.g.

'declaration-property-value-allowed-list': [
      {
        '/^font-weight/': [
          'var(--design-system-regular)',
          'var(--design-system-medium)',
          'var(--design-system-semi-bold)',
          'var(--design-system-bold)',
        ]
      },
      {
        message:
          'Consider using design tokens instead https://read-the-manual.please',
      },
],

@Mouvedia Mouvedia added status: needs discussion triage needs further discussion and removed status: needs clarification triage needs clarification from author labels Apr 24, 2024
@ybiquitous
Copy link
Member

@StanislavSapogov Perhaps, will #7484 resolve your problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs discussion triage needs further discussion
Development

No branches or pull requests

3 participants