Commit Graph
100 Commits
Author SHA1 Message Date
Evilebot Tnawiandfisker 3f4da31c62 fix: comment at end of at-rule with selector (#7009)
* fix: comment at end of at-rule with selector

* Improve a little bit

* Fix test

* sass directives

Co-authored-by: fisker <lionkay@gmail.com>
2020-05-08 21:39:41 +08:00
Evilebot TnawiandGeorgii Dolzhykov 4602bb6b95 refactor css comments (#7021)
* refactor css comments

* workarounds for postcss-less location bugs

* improve replaceQuotesInInlineComments

* update changelog

* fix comments in selectors

* fix comments in values

* use \ufffe instead of \0 because that's what these characters are for

see http://www.unicode.org/faq/private_use.html#nonchar6

* fix quoted urls

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-03-20 18:09:07 +02:00
Evilebot Tnawi 034dca62da Bump @babel/preset-env from 7.8.6 to 7.8.7 in /website (#7712)
Bumps [@babel/preset-env](https://github.com/babel/babel) from 7.8.6 to 7.8.7.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.8.6...v7.8.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-05 13:25:51 +03:00
Evilebot Tnawi 165f6fc317 Bump clipboard from 2.0.4 to 2.0.6 in /website (#7713)
Bumps [clipboard](https://github.com/zenorocha/clipboard.js) from 2.0.4 to 2.0.6.
- [Release notes](https://github.com/zenorocha/clipboard.js/releases)
- [Commits](https://github.com/zenorocha/clipboard.js/compare/v2.0.4...v2.0.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-05 13:25:23 +03:00
Evilebot Tnawi 07ddc84513 Bump @babel/core from 7.8.6 to 7.8.7 (#7714)
Bumps [@babel/core](https://github.com/babel/babel) from 7.8.6 to 7.8.7.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.8.6...v7.8.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-05 13:23:48 +03:00
Evilebot Tnawi cad32c0e22 fix formatting of logical and binary expressions in template literals (#7010) 2019-11-22 15:36:34 +03:00
Evilebot Tnawi 90eed411d4 preserve parentheses for JSDoc type casting with extra spaces a… (#7011) 2019-11-20 18:59:25 +01:00
Evilebot Tnawi 5a94039d1b test: css-in-js (#7005) 2019-11-19 13:58:32 +02:00
Evilebot Tnawi a9217a76e5 fix: tests for empty type parameters in TS (#6960) 2019-11-15 12:10:13 +02:00
Evilebot Tnawi 61a2482c48 fix: issue #6813 (Zero-based lists are broken) (#6852) 2019-11-14 20:59:20 +03:00
Evilebot Tnawi 59926545aa test: issue #6283 (#6855) 2019-11-06 20:43:21 +01:00
Evilebot Tnawi 6d4d6a7599 revert: --only-changed argument (#6594) 2019-10-03 11:21:05 -03:00
Evilebot Tnawi 7a76e5d08e fix(javascript): correctly handle comments in empty arrow function expressions (#6086) 2019-05-15 12:46:12 -03:00
Evilebot Tnawi 2cebeecb4f fix(javascript): do not hug sequence expression in object properties (#6088) 2019-05-15 12:29:45 -03:00
Evilebot Tnawi 157b020de6 fix(javascript): correctly handle comments in empty arrow function expressions (#6087) 2019-04-30 14:25:20 +03:00
Evilebot Tnawi dcaed91518 fix: respect newlines in parameters (#5836) 2019-04-04 09:50:07 -03:00
Evilebot Tnawi e588533e16 chore(deps): update postcss-scss (#5481)
* chore(deps): update `postcss-scss`

* chore: trigger build
2018-11-15 17:23:26 +03:00
Evilebot Tnawi 023a8b78df feat: more shared utils for plugins (#5254) 2018-10-17 07:53:38 -07:00
Evilebot Tnawi 8b0bdf52be [WIP] feat: html support (#4753)
* feat: html support

* fix: support empty lines between children

* refactor: isScriptTagNode util

* refactor: rename `glimmer` and `handlebars` tests

* fix don't add newline after `directive` node

* fix: support `pre` tag

* fix: don't trim comments content

* fix: `script` and `style` tags output

* feat: indent `head` and `body` inside `html`

* fix: better handle quotes around attribute value

* feat: better handle embed

* tests: svg into html

* fix: better handle boolean and empty attributes

* chore(deps): update `parse5` to latest version

* fix: better handle empty attribute

* tests: fix

* fix: extra newline in multiline node

* fix: print `pre` and `textarea` in right way

* tests: xhtml doctype

* fix: use `>` instead `/>`

* tests: case

* refactor: remove `toLowerCase()`

* feat: support `prettier-ignore`

* tests: empty `script` and `style` tags

* fix: clean

* tests: refactor and more
2018-09-13 07:06:49 -06:00
Evilebot Tnawi 7fd346ffa1 feat: newline and space utils to shared (#5049) 2018-09-04 23:08:37 +03: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
Evilebot Tnawi 9387e9d833 fix: comment type for scss (#4598) 2018-05-30 23:22:18 +03:00
Evilebot Tnawi 3d60871458 fix: output color adjusters (#4494) 2018-05-29 15:24:38 +03:00
Evilebot Tnawi 27b1005455 feat: handle composer.json as package.json (#4532) 2018-05-24 20:36:16 +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
Evilebot Tnawi a8b0e55205 fix: better output scss maps (#4487) 2018-05-17 13:39:22 +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
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
Evilebot Tnawi 2fe5263ff9 refactor: printer-postcss (#4378) 2018-04-26 13:53:52 +03: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
Evilebot Tnawi 7c0dee617b refactor: parseNestedCSS function (#4208) 2018-04-13 22:12:59 +03:00
Evilebot Tnawi 47cb5ad298 fix: correct prettier placeholder regex (#4302) 2018-04-12 18:25:25 +03:00
Evilebot Tnawi d676188dbb chore(deps): update html-tag-names package (#4242) 2018-04-02 16:25:29 +03:00
Evilebot Tnawi c9bb96cd52 fix: don't break value property with inlined URL (#4236) 2018-04-02 14:16:39 +03:00
Evilebot Tnawi 76cb653347 chore: update postcss-scss and postcss-less (#4237) 2018-04-02 12:50:48 +03:00
Evilebot Tnawi f2f2390114 fix: inline comments in lists and maps (#4205) 2018-03-31 17:18:23 +03:00
Evilebot Tnawi 30bcd110e4 fix: mangles template literal when you use prettier-ignore (#4220) 2018-03-30 21:40:14 +03:00
Evilebot Tnawi 190d34fa46 tests: comments with CRLF (#4145) 2018-03-21 12:04:57 +03:00
Evilebot Tnawi 31530259a1 feat: indent in discriminant switch (#4165) 2018-03-19 23:50:24 +11:00
Evilebot Tnawi 5537140296 fix: don't lowercase variable in css modules (#4152) 2018-03-15 18:16:28 +03:00
Evilebot Tnawi e2373206bc fix(html): support comment on top (#4141) 2018-03-13 19:47:48 +03:00
Evilebot Tnawi 8686653433 tests(html): aurelia non standard attributes (#4142) 2018-03-13 19:03:44 +03:00
Evilebot Tnawi 94ec29dac7 fix: handle unicode-range (#4117) 2018-03-07 21:15:06 +03:00
Evilebot Tnawi 19d7d881a7 chore: update postcss-scss to latest version (#4084) 2018-03-01 21:00:51 +03:00
Evilebot Tnawi 4ddf1a6e84 fix: don't lowercase nesting selector (#4048) 2018-02-26 18:13:02 -07:00
Evilebot Tnawi 65b988a989 feat: ignore non standard IE filter values (#4028) 2018-02-26 14:58:38 +03:00
Evilebot Tnawi 7b457fd3b8 refactor: at rules parse (#4023) 2018-02-22 12:49:03 +03:00
Evilebot Tnawi 335fe638f5 refactor(css): printer (#4024) 2018-02-22 12:00:08 +03:00
Evilebot Tnawi e1491d0f95 fix(css): comments in at rules (#3920) 2018-02-21 21:36:09 +03:00
Evilebot Tnawi 86f0b93e29 feat(css): improve math output (#3984) 2018-02-16 21:58:21 +03:00
Evilebot Tnawi 0ee9959bd6 tests(css): trailing comma (#3843) 2018-02-16 17:56:11 +03:00
Evilebot Tnawi 0f067d3832 feat(css): improve @nest at rule output (#3976) 2018-02-15 20:45:33 +03:00
Evilebot Tnawi cce8924ef3 fix(css): @nest at rule (#3975) 2018-02-15 15:19:28 +03:00
Evilebot Tnawi 17c0f9bfe1 feat(css): lowercase html tags (#3954) 2018-02-13 18:41:55 +03:00
Evilebot Tnawi 11a8d586b8 tests(css): source map comment (#3962) 2018-02-12 21:42:01 +03:00
Evilebot Tnawi c30d28003b chore(css): update postcss-values-parser to latest version (#3960) 2018-02-12 20:46:54 +03:00
Evilebot Tnawi c36cb7670a tests(css): postcss popular plugins (#3959) 2018-02-12 20:12:09 +03:00
Evilebot Tnawi bff7de3ea2 tests(css): more tests around pseudo-classes and pseudo-elements (#3957) 2018-02-12 20:11:55 +03:00
Evilebot Tnawi f5cfa96878 tests(css): colors (#3958) 2018-02-12 18:56:25 +03:00
Evilebot Tnawi ec4f4eb6d3 fix(css): don't eat selector namespace (#3956) 2018-02-12 18:39:03 +03:00
Evilebot Tnawi 1bb5cbaa4c fix(css): space after math operations before parens (#3945) 2018-02-10 20:57:06 +03:00
Evilebot Tnawi 087b68d183 fix(css): scss interpolation (#3943) 2018-02-10 02:05:48 +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 bc027bd661 fix(css): space after if in else at rule (#3921) 2018-02-07 19:53:28 +03:00
Evilebot Tnawi 517db8f5db tests(css): comments in selectors (#3917) 2018-02-07 15:05:29 +03:00
Evilebot Tnawi 0e1358b5ca Improve the printing of CSS at-rules (#3896)
fix(css): improve at rules print
2018-02-07 13:33:10 +03:00
Evilebot Tnawi 9e6bd15ade fix(css): comments in selectors (#3909) 2018-02-07 13:20:13 +03:00
Evilebot Tnawi a6ab8a7e32 refactor(tests): restructure at rules tests (#3892) 2018-02-06 19:03:36 +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
Evilebot Tnawi ebf83a9138 refactor(printer-postcss): use node name and implement helper functions (#3893) 2018-02-05 16:42:32 +03:00
Evilebot Tnawi 0e8f3acb59 tests(css): custom media (#3879) 2018-02-03 18:04:59 +03:00
Evilebot Tnawi ed2a9be58e fix(css): stringify unquoted data urls (#3877) 2018-02-02 20:39:53 +03:00
Evilebot Tnawi f5e74cd70a fix(css): at rules improve formatting and tests (#3828) 2018-02-02 18:06:47 +03:00
Evilebot Tnawi ed5f68844f fix(css): scss global flag (#3844) 2018-01-30 17:53:37 +03:00
Evilebot Tnawi 22ba2bcb64 fix(css): don't remove semicolon in less ruleset declaration (#3841) 2018-01-30 14:16:07 +03:00
Evilebot Tnawi 386e2a9bd4 tests(css): attr function (#3825) 2018-01-30 14:06:52 +03:00
Evilebot Tnawi 640ffa949d tests(css): font-face at rule (#3826) 2018-01-26 15:53:08 +03:00
Evilebot Tnawi e3369db2c1 fix(css): handle namespace in attribute selector (#3810) 2018-01-26 13:00:20 +03:00
Evilebot Tnawi acf5e66408 tests(css): prefixes property (#3822) 2018-01-25 15:56:28 +03:00
Evilebot Tnawi e90f766459 tests(css): viewport at rule (#3817) 2018-01-25 14:59:38 +03:00
Evilebot Tnawi ca949a46d2 tests(css): supports at rule (#3816) 2018-01-25 12:53:34 +03:00
Evilebot Tnawi a3bf378259 fix: handle YAML front matter block (#3802) 2018-01-24 19:44:09 +03:00
Evilebot Tnawi 5008836dc2 fix(css): remove whitespaces before ":" in scss maps (#3814) 2018-01-24 18:48:54 +03:00
Evilebot Tnawi b48fb2015a tests(css): variables (#3813) 2018-01-24 17:00:02 +03:00
Evilebot Tnawi 2b300a0f40 tests(css): namespace at rule (#3811) 2018-01-24 16:27:02 +03:00
Evilebot Tnawi 4bffe76a42 tests(css): function parens (#3809) 2018-01-24 16:06:05 +03:00
Evilebot Tnawi 4c90608d11 fix: keep space between deep selector >>> (#3792) 2018-01-24 14:53:22 +03:00
Evilebot Tnawi 7797c93489 fix(css): ignore media params with scss interpolation (#3801) 2018-01-24 12:31:30 +03:00
Evilebot Tnawi d3004b51ea feat: remove extra spaces in url inside @import (#3793) 2018-01-23 23:33:19 +03:00
Evilebot Tnawi d1f9598d68 tests(css): newlines around multiple and combinator selectors (#3800) 2018-01-23 21:12:45 +03:00