Skip to content

Commit

Permalink
Merge pull request #212 from mvllow/feat/support-prettier-in-styled-c…
Browse files Browse the repository at this point in the history
…omponents

Add official Prettier meta_scope for styled-components (#196)
  • Loading branch information
borela authored Apr 10, 2019
2 parents 7d73889 + c41e5d4 commit a1034a8
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ contexts:
1: punctuation.accessor.js.fjsx15
2: support.function.styled-component.js.fjsx15
set: styled-component-begin

pop-now:
- match: ""
pop: true
Expand Down Expand Up @@ -190,7 +189,7 @@ contexts:

styled-component-content:
- clear_scopes: true
- meta_content_scope: source.css
- meta_content_scope: source.css.embedded.js
- include: comment-no-pop
- include: shared-content
# Recover ruleset block.
Expand All @@ -202,7 +201,7 @@ contexts:

styled-component-content-keyframes:
- clear_scopes: true
- meta_content_scope: source.css
- meta_content_scope: source.css.embedded.js
- include: comment-no-pop
- include: shared-content
- match: (?=\S)
Expand Down

0 comments on commit a1034a8

Please sign in to comment.