-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Use stylelint to enfore css prefixes #4381
Comments
@anandthakker I'm looking in to this issue. Is there a preference on how stylelint should be used? Here are the options for stylelint.
|
@asantos3026 thanks for looking into it! I think using the CLI is probably our best bet. Using the stylelint CLI, we could add a |
I was just reading this blog and I came to the same conclusion 👍
|
I'm new to developing and contributing to open source as part of my project this week :) I love Mapbox so wanted to contribute. Apologies for my novice question but for the style linter, is the declaration output in the css file supposed to be:
|
@asantos3026 questions to clarify an issue are very welcome! Yes, I think what you've got there looks right to me: every CSS class in our output file should be in the form |
Thanks @anandthakker. I added style lint and the naming convention seems to be working. |
closed by #4584 |
To avoid regressions on fixes like #4357, we should use https://github.com/stylelint/stylelint to enforce that every CSS class we define is prefixed with
mapbox
.The text was updated successfully, but these errors were encountered: