fisker Cheung
56a2cd8a1b
Refactor createLanguage to use function transform ( #6676 )
2019-10-29 20:49:44 +02:00
Georgii Dolzhykov
f8a4a61a62
fix typos ( #6642 )
2019-10-13 21:51:58 +02:00
fisker Cheung
5ce16eaa02
Update linguist-languages to v7 ( #6367 )
...
* Update linguist-languages to v7
* Trigger build
* Update
* replace `includes` with `indexOf`
* fix `exclude`
* add `nodejs` back
2019-09-14 00:57:16 +03:00
Jarda Snajdr
5847c168e4
Fix formatting of lists in SCSS property/variable values ( #5710 )
2019-01-10 00:08:34 +08:00
Dmitriy Sharshakov aka. sh7dm
6a45924379
fix(printer-postcss): ignore escape \ and escaped / in Less ( #5597 )
...
Avoid messing up Less files containing \\/ (escaped /).
Ignore escape \ and escaped / in Less.
2018-12-17 08:28:48 +08:00
Ika
952bc0cc03
fix: get rid of CRLF ( #5494 )
2018-12-08 18:28:29 +08:00
Ika
cc6899e5c5
fix(css-in-js): do not duplicate comments ( #5416 )
2018-11-10 16:43:59 +08:00
Ika
32ea48d499
fix(scss): do not throw if node.source undefined ( #5394 )
2018-11-09 09:48:16 +08:00
Ika
514b6d3741
Bump Prettier dependency to 1.15.0
2018-11-07 09:12:25 +08:00
Ika
6a54e21c12
fix(css-in-js): do not remove semicolon ( #5353 )
2018-11-07 00:19:42 +08:00
Ika
0878a6a3e7
fix(less): remove CRs from inline comments ( #5334 )
...
The issue here is that less parser somehow included CRs in `comment.raws.content`, but it was hidden by the wrong trailing space elimination previously, which was fixed by #5165 .
We already have such tests but it's not reproducible in AppVeyor since they use LF ([`core.autocrlf=input`](https://stackoverflow.com/a/20653073 )).
2018-11-04 11:36:14 +08:00
Onur Temizkan
f6d8be881c
fix(css-in-js) Keep newlines in CSS-in-JS Templates ( Fixes : #5147 ) ( #5240 )
...
* fix(css-in-js) Keep newlines in CSS-in-JS Templates (Fixes : #5147 )
* Add more tests
* Do not add semicolon when CSS prop is a template variable
* Fix deletion of original semicolon
* Prettify long line
2018-11-01 21:58:16 +02:00
Ika
58d34bb844
refactor: language extend ( #4994 )
2018-08-22 10:12:57 +08:00
Prashant Andani
cdcb7b11c9
Use destructures and refactor code for readability ( #4844 )
...
* Use destructuring for readability and optimzations at for loop length property
* Destructure variables for easy maintainability of code
* PR review fix
* refactor: fix linting
* Use destructures and refactor code for better readability
* Remove merge conflict line
* lint before commit
2018-07-17 18:01:44 -03:00
Ika
99c4e41fa1
feat: format yaml front matter ( #4773 )
...
* refactor: front-matter
* feat: format yaml front matter
2018-07-03 09:54:40 +08:00
Ika
0b659b898d
feat: update linguist languages ( #4741 )
...
Context: https://github.com/prettier/prettier/pull/4734#issue-196702272
Languages should be easy to maintain now.
2018-06-28 08:24:02 +08:00
Evilebot Tnawi
aa4ea034b3
refactor: some stuff ( #4703 )
2018-06-25 12:57:41 +03:00
Evilebot Tnawi
03a2002348
fix: newline between front-matter and comment ( #4701 )
2018-06-15 16:27:41 +03:00
Ika
f6890bd071
feat(css): support pragma ( #4688 )
2018-06-14 09:51:18 +08:00
Evilebot Tnawi
9387e9d833
fix: comment type for scss ( #4598 )
2018-05-30 23:22:18 +03:00
Jimmy Jia
dc5de053c4
fix: comment around color adjusters ( #4595 )
2018-05-29 21:03:09 +03:00
Evilebot Tnawi
3d60871458
fix: output color adjusters ( #4494 )
2018-05-29 15:24:38 +03:00
Lucas Azzola
b0cb63a7bb
Use destructuring for imports ( #4554 )
...
* Use destructuring for imports
* Clean up integration tests
* Use moduleNameMapper for require_prettier
2018-05-27 21:36:12 +10:00
Lucas Duailibe
52a2a46b3c
New build system ( #4449 )
2018-05-24 15:30:45 -03:00
Evilebot Tnawi
db0278a186
refactor: math operator ( #4529 )
2018-05-24 20:19:22 +03:00
Evilebot Tnawi
9db668702c
refactor: `less` extend ( #4526 )
2018-05-23 19:28:18 +03:00
Evilebot Tnawi
7a8dc82065
refactor: printer ( #4501 )
2018-05-22 21:10:24 +03:00
Evilebot Tnawi
0b8a8d84f6
fix: scss interpolation in string ( #4490 )
2018-05-22 16:05:47 +03:00
Jed Fox
9155fe5018
Rename all uses of frontmatter to frontMatter or front-matter ( #4519 )
2018-05-21 10:02:09 -04:00
Evilebot Tnawi
a8b0e55205
fix: better output scss maps ( #4487 )
2018-05-17 13:39:22 +03:00
Suchipi
ec45dc9a4c
(refactor): Move common options out of JS plugin ( #4445 )
...
* (refactor): Move common options out of JS plugin
* Add Common category to playground
2018-05-15 14:14:50 -06:00
Lucas Duailibe
983202413c
Refactor frontmatter handling ( #4482 )
2018-05-14 22:17:15 -03:00
Evilebot Tnawi
636ae9d037
refactor: `css` language ( #4483 )
2018-05-15 01:08:04 +03:00
Evilebot Tnawi
9d41f1355a
refactor: parser-postcss ( #4478 )
2018-05-15 00:00:45 +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
6cd6ea383e
fix: characters escaping ( #4472 )
2018-05-14 13:47:46 +03:00
Evilebot Tnawi
bc2f57dcf9
fix: css variables and scss interpolation ( #4471 )
2018-05-12 22:38:28 +03:00
Elias Meire
2f5c00ad18
Fix: not greedy match the frontmatter in postcss parser ( #4457 )
2018-05-10 13:50:19 -03:00
Ika
df3eb0cf68
refactor(massageAst): move target props to corresponding plugins ( #4430 )
2018-05-08 10:48:29 +08:00
Aakansha Doshi
299cc97ceb
Fix spacing issue in postcss simple vars ( #4408 )
2018-05-06 13:51:28 +02:00
Elias Meire
5b7ebb18ba
Fix: Always preserve frontmatter, remove dependency ( #4392 )
...
* Fix: Always preserve frontmatter, remove dependency
* Move correct test to correct filename
* Add test for malformed frontmatter, finetune regex
* Use other malformed test case
* Update yarn.lock
2018-04-28 08:53:30 -03:00
Evilebot Tnawi
2fe5263ff9
refactor: `printer-postcss` ( #4378 )
2018-04-26 13:53:52 +03:00
Lipis
37eea26acf
Make Travis green again ( #4380 )
2018-04-26 10:17:19 +08:00
Evilebot Tnawi
2a3c616787
refactor: remove unused `css-import` node ( #4375 )
2018-04-25 21:29:59 +03:00
Evilebot Tnawi
e5741552ed
feat: use `postcss-values-parser` for `@namespace` at rule ( #4373 )
2018-04-25 21:27:12 +03:00
Evilebot Tnawi
58a91cc570
feat: improve `@support` at-rule output ( #4372 )
2018-04-25 20:41:41 +03:00
Lucas Duailibe
67f1c4877e
Refactoring: better boundaries for different parts of the project ( #4364 )
2018-04-25 13:29:35 -03:00
Aakansha Doshi
7f20ffc7f5
Allow trailing comma in scss list and maps ( #4317 )
...
* Allow trailing comma in scss list and maps
* fix #4076
* triple equalto
* newline
* linting
* review fixes
* print trailing comma only when options.tralingComma is not none
* Add nested maps and lists
* add isSCSS() check
* linting
* Add utils for isSCSS() in language-css
* lint
2018-04-18 17:40:01 -03:00
Evilebot Tnawi
7c0dee617b
refactor: `parseNestedCSS` function ( #4208 )
2018-04-13 22:12:59 +03:00
Suchipi Izumi
bdc5e0073d
Bump own prettier dependency to 1.12.0
2018-04-11 22:39:13 -06:00