Skip to content

Conversation

@lencioni
Copy link
Contributor

@extend is unintuitive and dangerous, so we are recommending against its
use. As part of this commit, I enabled the SCSS-lint linter that will
warn against its use. I also revised content that mentioned @extend, to
maintain philosophical consistency.

@extend is unintuitive and dangerous, so we are recommending against its
use. As part of this commit, I enabled the SCSS-lint linter that will
warn against its use. I also revised content that mentioned @extend, to
maintain philosophical consistency.
README.md Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

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

did you intend to remove the mixins section entirely?

Choose a reason for hiding this comment

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

We should keep this section but reword the description. In the wake of advising against @extend, this section should recommend using mixins to DRY up code if you are also serving gzip'd code. We should maintain a note that using mixins without arguments can lead to unnecessary code duplication if you aren't gzipping.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I removed it because it only recommended against using argumentless mixins in favor of extending placeholders. I'll push a new revision that improves this section.

@gilbox
Copy link

gilbox commented Jan 22, 2016

<3

In my previous commit, I revised this document to advise against using
@extend, which included removing the section about mixins because it
only existed to recommend against using argumentless mixins in favor of
@extend. However, this document feels a bit incomplete without some
guidance on mixin usage, so I am adding a few sentences here.
@lencioni
Copy link
Contributor Author

Alright folks, I added a section about mixins. Feedback away!

@mikefowler
Copy link

👌

@ljharb
Copy link
Collaborator

ljharb commented Jan 25, 2016

LGTM2

@lencioni
Copy link
Contributor Author

Great, if we are all good, will someone please merge? I don't appear to have access.

ljharb added a commit that referenced this pull request Jan 26, 2016
Advise against @extend, enable SCSS-lint ExtendDirective
@ljharb ljharb merged commit 807a755 into airbnb:master Jan 26, 2016
@mikefowler
Copy link

Thanks, @ljharb!

And thanks @lencioni for the language changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants