Ika
4af3dd4b07
test: improve snapshots ( #5521 )
...
- before
```
${input}${"~".repeat(printWidth)}
${output}
```
- after
```
===options===
${options}
${" ".repeat(printWidth)}| printWidth
====input====
${input}
===output====
${output}
=============
```
2018-11-25 16:21:14 +08:00
Simen Bekkhus
51b7c02e12
Upgrade jest to 22 ( #4782 )
...
* chore: upgrade Jest
* chore: update snapshots
* chore: lock down babel dependency using invalid syntax
* 2 args to test.skip
* use jest 22 for now
* Revert "2 args to test.skip"
This reverts commit 691fdc3f99e320f2303958f2b503f7b4c93fa455.
* remove snapshot name from matcher
* fix standalone tests skips
2018-07-03 03:06:29 -03:00
Aakansha Doshi
f99aee8e46
refactor: use `postcss-values-parser` for `@import` at rule ( #4435 )
...
* update to postcss value parser for @import and at rule
* fix specs
* Add rule for @import url and fix specs
* fix more specs
* fix more specs
* import check
* fix specs and add more specs
* remove console.log
* review fixes
* update snapshots
* remove bad code
* fix spec
* remove code
* Add comment
* fix comment
* lint fix
2018-05-14 22:54:34 +03:00
Evilebot Tnawi
58a91cc570
feat: improve `@support` at-rule output ( #4372 )
2018-04-25 20:41:41 +03:00
Evilebot Tnawi
7c0dee617b
refactor: `parseNestedCSS` function ( #4208 )
2018-04-13 22:12:59 +03:00
Evilebot Tnawi
f2f2390114
fix: inline comments in lists and maps ( #4205 )
2018-03-31 17:18:23 +03:00
Evilebot Tnawi
190d34fa46
tests: comments with `CRLF` ( #4145 )
2018-03-21 12:04:57 +03:00
Evilebot Tnawi
19d7d881a7
chore: update `postcss-scss` to latest version ( #4084 )
2018-03-01 21:00:51 +03:00
Evilebot Tnawi
e1491d0f95
fix(css): comments in at rules ( #3920 )
2018-02-21 21:36:09 +03:00
Evilebot Tnawi
11a8d586b8
tests(css): source map comment ( #3962 )
2018-02-12 21:42:01 +03:00
Evilebot Tnawi
d716c84156
fix(css): space and newlines before parenthesis ( #3930 )
2018-02-09 15:28:55 +03:00
Evilebot Tnawi
26ceb854c2
tests(css): more comments tests ( #3922 )
2018-02-07 21:31:00 +03:00
Evilebot Tnawi
517db8f5db
tests(css): comments in selectors ( #3917 )
2018-02-07 15:05:29 +03:00
Evilebot Tnawi
9e6bd15ade
fix(css): comments in selectors ( #3909 )
2018-02-07 13:20:13 +03:00
Evilebot Tnawi
0bdceaa158
tests(css): declaration comments ( #3906 )
2018-02-06 18:48:24 +03:00
Evilebot Tnawi
1b13dc8974
fix(css): declaration comments ( #3897 )
2018-02-06 18:09:42 +03:00
Christopher Chedeau
a4dd86436a
[scss] Print comments inside of selector as is ( #3649 )
...
Fixes #3647
2018-01-04 19:03:04 -08:00
Lucas Duailibe
f119d4a90f
Change run_spec to have explicit parser list ( #3356 )
2017-11-30 03:31:52 -03:00
Ika
1d4848b37c
chore(deps): upgrade patch-level dependencies ( #3153 )
...
* chore(deps): update jest-docblock to 21.3.0-beta.7
* chore(deps): upgrade patch-level dependencies
* test: update snapshot
2017-11-07 00:38:37 +11:00
Simon Lydell
c6bac7cfe6
Split Less and SCSS parsing into different parsers ( #2844 )
...
* Split Less and SCSS parsing into different parsers
Now, .less files are always parsed with postcss-less, and .scss files
areare always parsed with postcss-scss. This:
- Is less hacky.
- Is meant to avoid issues like #2829 .
- Is probably more performant.
`parser: "postcss"` and `--parser postcss` continue to work like before:
First trying postcss-less, and if that fails, postcss-scss, unless a
regex says that we should try in the opposite order. The new values for
the parser option are "postcss-less" and "postcss-scss".
* Remove postcss from package.json since it is not used
* Rename parser-less to less and parser-scss to scss
* Deprecate parser:postcss in favor of parser:css
* Fix CSS tests
2017-09-26 07:08:11 +02:00
Simon Lydell
4979f58c15
Normalize quotes in CSS like in JS
2017-08-14 09:14:57 +02:00
Lucas Azzola
82b80b3c79
Trim whitespace in descendant combinator, fixes #2410 ( #2411 )
...
* Trim whitespace in descendant combinator, fixes #2410
* Permit whitespace changes in clean-ast.js
2017-07-06 13:55:34 +02:00
Lucas Azzola
f7819d5695
CSS: implement prettier-ignore ( #2089 )
...
* fix(css): implement prettier-ignore, fixes #2007
* refactor(css): move prettier-ignore to printNodeSequence
2017-06-10 07:45:59 -07:00
Christopher Chedeau
2ab3d6d6ac
Workaround bug with comment ending in */ ( #1810 )
...
Reported in the original repo: https://github.com/postcss/postcss-scss/issues/64
2017-05-29 13:05:20 -07:00
Christopher Chedeau
c4e32f4c78
Remove double spaces in @font-face ( #1801 )
2017-05-29 08:49:51 -07:00
Christopher Chedeau
6a9e053221
Workaround a bug where the comment location is off for scss ( #1799 )
...
Workarounds https://github.com/postcss/postcss-scss/issues/63
2017-05-29 08:39:41 -07:00
Christopher Chedeau
855a701309
Preserve comments for selectors ( #1755 )
2017-05-26 14:55:41 -07:00
Christopher Chedeau
78ba808322
Initial CSS support ( #1636 )
...
I wanted to see how hard it would be to add support for CSS inside of prettier. Turns out, it's not that hard. I spent a few hours printing post-css values and getting all the stylefmt unit tests to not throw.
2017-05-24 10:52:12 -07:00