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

fix(button): Lint button syntax #4629

Merged
merged 1 commit into from Aug 3, 2016
Merged

fix(button): Lint button syntax #4629

merged 1 commit into from Aug 3, 2016

Conversation

Garbee
Copy link
Collaborator

@Garbee Garbee commented Aug 2, 2016

Use the postcss bem linter to lint the button syntax. Ignoring the double-class selectors we use to
simplify the codes usage.

Use the postcss bem linter to lint the button syntax. Ignoring the double-class selectors we use to
simplify the codes usage.
&.mdl-button--raised {
background-color: var(--mdl-theme-color-accent);
color: rgba(0, 0, 0, .87);

/* postcss-bem-linter: ignore */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems like a postcss-bem-linter bug if you have to ignore it :/

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not. BEM doesn't want you combining classes. It wants a single-class target to everything.

@traviskaufman
Copy link
Contributor

💎 LGTM Thanks @Garbee!

@traviskaufman traviskaufman merged commit 849b920 into master Aug 3, 2016
@traviskaufman traviskaufman deleted the garbee/button-lint branch August 3, 2016 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants