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

Stylelint: convert configuration from json to JavaScript format #63090

Open
afercia opened this issue Jul 3, 2024 · 0 comments
Open

Stylelint: convert configuration from json to JavaScript format #63090

afercia opened this issue Jul 3, 2024 · 0 comments
Labels
[Tool] stylelint config /packages/stylelint-config [Type] Code Quality Issues or PRs that relate to code quality

Comments

@afercia
Copy link
Contributor

afercia commented Jul 3, 2024

Description

The more the Stylelint rules get extended, the more the need for a more flexible configuration that allows, for example, to print custom warning or error messages for each custom rule.

Quoting insightful feedback from @mirka on #63048 (comment):

we'll probably want to convert the .stylelintrc.json to a .stylelintrc.js at this point, so we can configure the message as a function to show different warning messages for each violation. It looks like we'll also need to update our stylelint dependency to achieve that. Our repo is at stylelint 14.2, whereas the feature we need is available from 14.5.0.

Step-by-step reproduction instructions

N/A

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@afercia afercia added [Type] Code Quality Issues or PRs that relate to code quality [Tool] stylelint config /packages/stylelint-config labels Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Tool] stylelint config /packages/stylelint-config [Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

No branches or pull requests

1 participant