fisker Cheung
9b7ba8a42c
Style: Use dotAll regexp ( #10864 )
2021-05-18 02:44:21 +08:00
fisker Cheung
383f622942
Style: Remove useless flags ( #10861 )
2021-05-15 14:37:17 +03:00
TJ Mazeika and fisker Cheung
7e4f4d5fe6
Exclude @keyframes params from being parsed as a Less variable ( #10773 )
...
* Exclude @keyframes params from being parsed as a Less variable
* Update changelog_unreleased/css/10773.md
Co-authored-by: fisker Cheung <lionkay@gmail.com >
* Update changelog_unreleased/css/10773.md
Co-authored-by: fisker Cheung <lionkay@gmail.com >
* Add "keyframes" to cspell.json
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2021-04-26 01:13:40 +03:00
fisker Cheung and Georgii Dolzhykov
7cc52da144
Simplified printGenerically ( #10557 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2021-03-22 16:57:03 +02:00
fisker Cheung
230428f34b
Add consistent-negative-index-access rule ( #10569 )
2021-03-20 14:06:12 +02:00
fisker Cheung
863eb079dc
Forbid AstPath.call without name ( #10541 )
2021-03-15 17:20:27 +08:00
fisker Cheung
64a3906571
Enable unicorn/prefer-optional-catch-binding ( #9464 )
2021-02-25 18:28:55 +08:00
Georgii Dolzhykov
ca4a51dcd9
build: fix tree shaking for front matter related functions ( #10314 )
2021-02-15 05:29:15 +02:00
fisker Cheung
f04b2b991c
Enable no-implicit-coercion rule ( #10186 )
2021-02-01 13:14:04 +08:00
Sosuke Suzuki and fisker Cheung
07b30645ec
style: Add new ESLint rule no-empty-string-for-ifbreak ( #10172 )
...
* Add new ESLint rule for ifBreak
* Fix for third argument
* Run fix with new rule
* Address review
* Fix
* Update no-empty-flat-contents-for-if-break.js
* Fix CI config
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2021-01-29 20:03:11 +09:00
fisker Cheung
ce26805e84
Enable unicorn/prefer-spread ( #10129 )
2021-01-26 09:46:14 +08:00
fisker Cheung
743ef3de9b
SCSS: Fix maps with keys that are lists or maps ( #10005 )
2021-01-26 09:45:25 +08:00
fisker Cheung
12bddae20c
Switch default branch to main ( #10115 )
2021-01-23 19:14:13 +02:00
fisker Cheung
7b24335064
Refactor: Use Doc[] instead of concat() ( #9993 )
2021-01-11 13:46:05 +08:00
fisker Cheung
358ad36a84
Forbid use concat() in concat() ( #9998 )
2021-01-11 10:19:13 +08:00
fisker Cheung and Sosuke Suzuki
7ec7a0f21f
Fix using concat() on single Doc ( #9994 )
...
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com >
2021-01-04 14:40:02 +08:00
fisker Cheung
181a325c1c
Enable unicorn/explicit-length-check ( #9975 )
2021-01-04 10:11:57 +08:00
fisker Cheung and Georgii Dolzhykov
9d9c0e2b6f
Add Doc[] as Doc ( #9733 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2021-01-04 10:04:30 +08:00
Christopher Chedeau
eec3e82f48
Fix absolute path in custom CSS url() calls ( #9966 )
...
At Facebook we have some custom pre-processor `-fb-url(/abs/path/)` that gets messed up as `-fb-url(/ abs/path)` with the current version of prettier.
The parser has hardcoded logic to only parse as path things that use `url()` but not `-fb-url()` and it parses it as `division /` and `abs/path/`. Because we put a space after division, the bug is introduced.
I don't really know the impact of changing the parser, but on the printer side, it is straightforward to not add a space after `/` if it's the first element in a group. I can't think of any reason why you could write `(/ something` in CSS so I think it's a safe change.
2020-12-28 20:22:25 -03:00
fisker Cheung
f0f18d3090
Enable unicorn/prefer-number-properties ( #9935 )
2020-12-21 17:09:20 +08:00
fisker Cheung
ec5f60725b
Send array to FastPath#{each,map} callback ( #9901 )
2020-12-17 15:52:51 +08:00
fisker Cheung
c7e354e38c
Add isNonEmptyArray ( #9902 )
2020-12-17 14:46:59 +08:00
fisker Cheung
0fd2a28cff
Enable arrow-body-style rule ( #9918 )
2020-12-17 14:31:51 +08:00
fisker Cheung
25d53fa9b3
SCSS/LESS: Fix comment inside parens ( #9710 )
2020-11-26 19:28:00 +08:00
fisker Cheung
60a5729a19
Move prettier-ignore related functions into language-js/ ( #9555 )
2020-11-10 09:12:46 +08:00
fisker Cheung
84b81c8a1a
Enable directly-loc-start-end in language-css ( #9591 )
2020-11-05 19:26:05 +08:00
fisker Cheung
309ffdd562
Refactor: Use ignoredProperties for all languages ( #9586 )
2020-11-05 14:12:14 +08:00
Sosuke Suzuki and fisker
f7554c62a2
Revert breaking changes related to adding pure css parser for minor releasing ( #9500 )
...
* revert without tests
* Downgrade postcss-scss and postcss-less
* Fix tests
* Revert "Make `isSCSS*` function stricter (#9093 )"
This reverts commit 01f986bea9 .
* Revert "Remove `css` parser from `isLessParser` check (#9092 )"
This reverts commit c0bca1805d .
* Revert "Add pure css parser (#7933 )"
This reverts commit 589ebf670b .
* Disable `parser-postcss.js` minify
* Try to fix build script
* Update fs.mjs
* Update fs.mjs
* Style
Co-authored-by: fisker <lionkay@gmail.com >
2020-10-31 22:22:35 +09:00
fisker Cheung and Georgii Dolzhykov
fbee029497
Add index to FastPath#each() callback ( #9499 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-10-30 12:27:20 +08:00
dependabot[bot] and fisker
bc9db85490
Build(deps): Bump postcss-less from 3.1.4 to 4.0.0 ( #9471 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2020-10-26 09:46:00 +08:00
fisker Cheung
3fe4666a85
Consistent parser errors ( #9406 )
2020-10-16 10:39:05 +08:00
Georgii Dolzhykov
633f084a76
LESS: fix comments in value lists ( #9356 )
2020-10-12 09:16:36 +08:00
fisker Cheung
9efeb8309e
Update postcss-scss to v3 ( #9210 )
2020-09-27 08:49:16 +08:00
fisker Cheung
b77da32a80
Update postcss to v8 ( #9209 )
...
* Update `postcss` v8
* Parser custom properties
* Improve logic
* Update lint script
* Fix node location
* Fix comments inside
* Add a test
* Test on `less` and `scss` too
* Fix empty prop print
* Clean
* Update `postcss`
* Exclude `regenerator`
* Test `no-semi`
* Add changelog
* Typo
* Apply review suggestion
* Style
* Simplify logic
* Remove error test, we don't throw on this anymore
* Style
* Update postcss
* Update postcss
2020-09-25 00:51:55 +08:00
fisker Cheung
01f986bea9
Make isSCSS* function stricter ( #9093 )
2020-09-01 16:58:35 +08:00
fisker Cheung
c0bca1805d
Remove css parser from isLessParser check ( #9092 )
2020-09-01 15:28:11 +08:00
fisker Cheung
0aba03062d
Remove a unnecessary check in css printer ( #9094 )
2020-09-01 11:24:58 +08:00
fisker Cheung
589ebf670b
Add pure css parser ( #7933 )
2020-08-28 13:07:49 +08:00
Sosuke Suzuki
cc63358c90
Respect spacing between template values in embedded css ( #9078 )
...
* Respect no space for embedded css
* Fix by lint
* Add changelog
2020-08-28 11:08:29 +09:00
fisker Cheung
f2e3cb7f3b
Support .wxs & .wxss ( #9081 )
...
* Support `.wxs` & `.wxss`
* Spell check
* Add comments
* Spellcheck
2020-08-27 20:56:53 +03:00
fisker Cheung
d31ebf4619
Test: Improve coverage ( #8811 )
2020-08-21 09:43:24 +08:00
fisker Cheung
97b899b7bc
Improve multiparser handle finalNewLine and frontMatter ( #8595 )
2020-08-16 16:12:20 +08:00
fisker Cheung
c6b3ed6e1c
Enforce .json extensions ( #8908 )
2020-08-06 00:37:16 +08:00
fisker Cheung and sosukesuzuki
c8f9d254b9
Minor refactor ( #8752 )
...
Co-authored-by: sosukesuzuki <aosukeke@gmail.com >
2020-07-17 09:08:03 +08:00
fisker Cheung
f8e6c215ce
Refactor: Move parsers to language index ( #8765 )
2020-07-17 09:06:00 +08:00
fisker Cheung and Georgii Dolzhykov
c0abefb662
SCSS: Fix Comments at the end of the file were lost if the final semicolon was omitted ( #8675 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-07-14 23:36:40 +08:00
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