New Chrome Extension for BEM Compliance Support in Development Projects #316
nxpatterns
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
To summarise succinctly, here is the underlying regular expression I've employed in the extension: /^[a-z\d]+(?:-[a-z\d]+)*(?:--[a-z\d]+)*(?:__[a-z\d]+)*(?:-[a-z\d]+)*$/ You might find it useful to test whether it delivers the required results for ensuring BEM compliance. Acceptable Patterns:
Unacceptable Patterns:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Non-compliant classes and IDs:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear BEM Team,
As an Enterprise Software Architect, I deeply appreciate your efforts to standardize CSS through BEM, generously sharing your expertise and ideas with the community. I aim to contribute by developing a Chrome Extension designed to assist developers in identifying and correcting non-BEM-compliant styles during the development phase, before minification and uglification.
Ensuring adherence to naming conventions is crucial in my projects, yet supervising every developer's compliance is impractical. With no adequate tools currently available (e.g., within VSCode) for this purpose, I dedicated a weekend to creating a lightweight extension, which I've now made available to the community.
I would be honored if you could review the extension to assess its practical utility. Your feedback, whether suggestions for improvement or confirmation of its initial readiness, would be invaluable. Should you find it satisfactory, I am also considering developing a corresponding VSCode extension.
Thank you very much for any feedback, positive or negative. :)
Best regards
Chrome Extension: Non-compliant Style Finder
Beta Was this translation helpful? Give feedback.
All reactions