Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Fix media query ordering #1015

Closed
wants to merge 5 commits into from

Conversation

rawrmonstar
Copy link
Contributor

Fixes #975

Identical media queries with identical rulesets across different components were being deduped which
broke user-defined media query ordering.

Identical media queries with identical rulesets across different components were being deduped which
broke user defined media query ordering
@coveralls
Copy link

coveralls commented Dec 20, 2018

Coverage Status

Coverage increased (+0.03%) to 95.395% when pulling f15fef4 on rawrmonstar/fix-media-query-ordering into dc5680c on master.

@@ -150,7 +151,7 @@ rules:
no-undefined: 0 # disallow use of undefined variable
no-unused-vars: 2 # disallow declaration of variables that are not used in
# the code
no-use-before-define: 2 # disallow use of variables before they are defined
no-use-before-define: 1 # disallow use of variables before they are defined
Copy link
Contributor Author

@rawrmonstar rawrmonstar Dec 20, 2018

Choose a reason for hiding this comment

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

I think adding the es6 env made it so eslint started checking this rule... there are 2 instances in the code base from before this PR that don't follow this rule. I could go and fix them by moving the declarations to the top of the file, but they are unrelated to this PR. Their uses are valid though.

@rawrmonstar
Copy link
Contributor Author

Closing this in favor of the old #635. My solution was basically a less informed version of the work done in that ongoing PR. I didn't know that that PR existed before.

@rawrmonstar rawrmonstar deleted the rawrmonstar/fix-media-query-ordering branch December 20, 2018 18:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants