fisker Cheung
0998366d41
Less: Fix incorrect comment in selector() ( #8707 )
2020-07-06 17:48:30 +08:00
fisker Cheung
350f641fca
Fix util import ( #8696 )
2020-07-05 00:34:35 +08:00
1d6d60ee37
Fix: at rule supports selector ( #8545 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
Co-authored-by: Boyen Vaesen <boyen.vaesen@kbc.be >
2020-07-03 09:24:27 +08:00
fisker Cheung
0c2b918078
ESLint: enable import/order ( #8635 )
2020-06-26 20:30:21 +08:00
Boyen Vaesen
4009ecf70d
Fix: Prettier breaks code when inline number lists are used as arbitrary arguments [SCSS] ( #8566 )
2020-06-18 12:12:31 +03:00
Boyen Vaesen and Boyen Vaesen
aefc9a48e5
Fix: [Sass] Unexpectedly add extra space after function when passing arbitrary arguments ( #8567 )
...
Co-authored-by: Boyen Vaesen <boyen.vaesen@kbc.be >
2020-06-17 09:26:28 +08:00
boyenn and Boyen Vaesen
ff865794a6
Fix: Incorrect whitespace added after escaped colon in css line name ( #8535 )
...
* {fix}: Incorrect whitespace added after escaped colon in css grid line name
* {chore}: update changelog
* {fix}: add check for prevNode to be defined
Co-authored-by: Boyen Vaesen <boyen.vaesen@kbc.be >
2020-06-10 14:05:21 +03:00
fisker Cheung
3e44061f84
SCSS: Fix broken comments between declaration prop and value ( #8366 )
2020-06-09 18:41:16 +03:00
boyenn and Boyen Vaesen
f051170f98
fix: Update scss comment indentation ( #7844 )
...
Co-authored-by: Boyen Vaesen <boyen.vaesen@kbc.be >
2020-06-09 14:55:24 +08:00
Michael Mattiacci
ffceb60e92
CSS: Fix url() unquoted content manipulation ( #2835 ) ( #7592 )
2020-05-29 16:09:15 +03:00
fisker Cheung
44bae94647
Support dynamic languages in front matter ( #8381 )
2020-05-26 16:18:39 +08:00
fisker Cheung
b438ad47d1
Less: Fix inline comments contains /* ( #8360 )
2020-05-20 22:26:30 +08:00
Georgii Dolzhykov
b1791e0def
refactor(css): calculate correct location data for value-* nodes ( #8266 )
...
* calculate correct loc for value-* nodes
* update clean.js to fix idempotence tests
2020-05-16 02:48:25 +03:00
Georgii Dolzhykov
ce2114533a
Fix extra space after minus in CSS-in-JS ( #8255 )
...
* Fix extra space after minus in CSS-in-JS
* add changelog entry
2020-05-08 16:53:36 +03:00
Evilebot Tnawi and fisker
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
fisker Cheung
14f5f8589f
Less: parser :extend as selector ( #8178 )
2020-04-30 11:58:21 +03:00
Brian Schlenker
2a7515b77e
Remove trailing semicolon on single line html style attribute ( #8013 )
2020-04-25 09:48:26 +08:00
fisker Cheung
f0207e6850
Enable unicorn/better-regex ( #7991 )
...
* Enable `unicorn/better-regex`
* Spellcheck ignore regex
2020-04-10 21:20:40 +08:00
fisker Cheung
69d121b19e
Enable unicorn/prefer-set-has ( #7990 )
2020-04-09 13:22:28 +08:00
fisker Cheung
76cb1efcb6
Fix less :extend format ( #7984 )
...
* Fix less `:extend` format
* Add changelog
* Add longer test
* Add issue link
* Style
* Fix changelog
2020-04-08 18:02:13 +03:00
fisker Cheung
17377f3082
Split css parsers ( #7932 )
...
* Split css parsers
* pass function to parseWithParser
* Fix plugins parser
* Fix coverage fails
* coverage ignore
* Update project coverage target to 95%
2020-04-03 12:41:48 +08:00
fisker Cheung
93aa37867e
Update isSCSS test regex ( #7922 )
2020-04-02 15:51:48 +03:00
Georgii Dolzhykov
2d1142fc30
Use scss parser for css-in-js ( #7883 )
2020-03-31 17:10:38 +03:00
Georgii Dolzhykov
9dad95b35f
Bump Prettier dependency to 2.0.0
2020-03-21 22:09:54 +02:00
Evilebot Tnawi and Georgii 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
fisker Cheung
acff41e7c9
Update postcss-less to v3 ( #6981 )
2020-03-10 01:14:34 +02:00
Karl Horky
2b761b6af8
Remove unnecessary expression ( #7648 )
...
Since wordPart is checked for falsiness on the previous line, it will always evaluate to an empty string. The expression in the parentheses will then evaluate to `"" || ""`, which I assume is not desired.
Ref: https://lgtm.com/projects/g/prettier/prettier/snapshot/ecfc5e9b8320d79ed8a801d811e0a63892b040d0/files/src/printer-postcss.js?sort=name&dir=ASC&mode=heatmap#L468
2020-02-21 00:54:15 +02:00
fisker Cheung
2bfaa7c2cf
Simplify createLanguage ( #7509 )
2020-02-17 16:39:08 +02:00
fisker Cheung
017d079ca8
Format value of HTML style attribute ( #7556 )
2020-02-14 14:21:11 +03:00
fisker Cheung and dependabot-preview[bot]
28e70b6c9b
Bump linguist-languages from 7.7.0 to 7.8.0 ( #7481 )
...
* Bump linguist-languages from 7.7.0 to 7.8.0
Bumps [linguist-languages](https://github.com/ikatyang/linguist-languages ) from 7.7.0 to 7.8.0.
- [Release notes](https://github.com/ikatyang/linguist-languages/releases )
- [Commits](https://github.com/ikatyang/linguist-languages/compare/v7.7.0...v7.8.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* Bump linguist-languages from 7.7.0 to 7.8.0
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-01-30 19:36:49 +02:00
fisker Cheung
0c93198942
Remove deprecated parser & update sharedUtil ( #6993 )
...
* Remove some old stuff
* Add changelog
* Fix test
* util changes
* restore parser
* Fix `util` usage
2020-01-29 17:32:42 +03:00
fisker Cheung
c0517441b2
Enable unicorn/prefer-string-slice ( #7251 )
2020-01-23 15:15:28 +03:00
fisker Cheung
27b5cb4d9d
Enable ESLint prefer-rest-params rule ( #7400 )
2020-01-23 10:36:18 +02:00
fisker Cheung
288bf5ee3d
Fix prefer-object-spread in src/language-css ( #7351 )
2020-01-19 01:20:58 +02:00
Georgii Dolzhykov
7e3c0c73b3
Merge branch 'master' into next
2020-01-14 20:36:21 +02:00
fisker Cheung and Georgii Dolzhykov
d456b158e0
Style: use object destructuring ( #7325 )
...
* Style: use object destructuring
* Update versions.js
* Update sync-flow-tests.js
* Update core.js
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-01-14 17:30:18 +02:00
fisker Cheung
dd77e146b9
using object spread for createLanguage ( #7268 )
2020-01-14 16:47:39 +02:00
fisker Cheung
85eefb918e
Style: enable object-shorthand ( #7322 )
2020-01-14 14:25:24 +03:00
fisker Cheung
c68d6e3c2b
Move doc directory to document ( #7272 )
2020-01-14 13:58:42 +03:00
fisker Cheung
beeaa98cb9
Fix quote style, enable quote rule ( #7304 )
2020-01-14 13:58:20 +03:00
Lipis
3a96c6d542
Merge branch 'master' into next
2020-01-10 00:41:30 +02:00
Daiki Ihara
209cee6cea
Scss: fix scss variable string concatenation removing spaces ( #7211 )
2020-01-09 23:38:16 +02:00
fisker Cheung
eac6fba2c3
Fix new usage for builtin objects ( #6968 )
2019-11-17 11:36:21 +01:00
fisker Cheung
57f0dd56dd
Replace indexOf with includes ( #6967 )
...
* Replace `indexOf` with `includes`
* Add `unicorn/prefer-includes`
2019-11-17 11:06:14 +01:00
ark120202
4ed5253509
Don't lowercase element names in CSS selectors ( #6947 )
...
Fixes #5788 .
2019-11-13 18:13:55 +01:00
fisker Cheung
11d032365e
SCSS: don't add extra comma after last comment in map ( #6918 )
2019-11-12 19:09:46 +01:00
Simon Lydell
98d27c7de2
Bump Prettier dependency to 1.19.0
2019-11-09 01:14:31 +01:00
fisker Cheung and Georgii Dolzhykov
85912a738d
Update postcss-less to v2 ( #6778 )
...
* Update `postcss-less` to v2
* fix less `custom-selectors`
* fix less `custom-selectors` 2
* fix custom-selector `:` position
* remove less hack
* fix custom selector
* cleanup
* add changlog
* add link
* restore changlog
* restore snap
* restore snap
* update postcss-custom-selectors detect
* remove startsWith
* trigger build
* update `custom-selector`
* add test and changelog
* style
* md
* issue-4090-test
* docs
* Update CHANGELOG.unreleased.md
Co-Authored-By: Georgii Dolzhykov <thorn.mailbox@gmail.com >
* fix pr issue
* fix
* fix merge issue
* insert new line
* snap update
* only support custom-selector in css
* scss already parse it as custom-selector
* remove `custom-selector` test in scss
* link
2019-11-08 18:34:14 +03:00
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