fisker Cheung
bc18fa4397
Fix incorrect removal of parentheses when using an infer with a constraint in a function predicate ( #14279 )
2023-02-06 11:17:48 +08:00
Riad Krim
f602be5a47
Update embeddedLanguageFormatting option documentation ( #14048 )
2023-01-31 08:16:17 +08:00
James C. Davis and fisker Cheung
37fb53acf3
[handlebars] group params in opening block statements ( #14067 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2023-01-28 09:23:40 +08:00
fisker Cheung
310a5b1ba5
Handlebars: Improve HTML void element check ( #14110 )
2023-01-22 21:50:42 +08:00
Michael Bolin
62195dd1f2
Add .sl to the list of silentlyIgnoredDirs ( #14206 )
...
In [Sapling SCM](https://sapling-scm.com/ ), `.sl/` is the folder where it stores its state,
analogous to `.git/` in Git. It should be ignored in Prettier like the other SCM folders.
2023-01-19 11:10:22 -08:00
fisker
bf406f7728
Clean changelog
2023-01-14 11:44:30 +08:00
fisker
878e8f57ff
Git blame ignore 2.8.3
2023-01-14 11:42:15 +08:00
fisker
9e9f8ec13f
Bump Prettier dependency to 2.8.3
2023-01-14 11:42:14 +08:00
fisker
c990e522ce
Release 2.8.3
2023-01-14 11:33:26 +08:00
fisker Cheung
4ad9160891
Angular: allow self-closing tags on custom elements ( #14170 )
...
Fixes https://github.com/prettier/prettier/issues/14168
2023-01-14 10:57:39 +08:00
fisker Cheung
06ea1ac0d0
Stricter node type check ( #14165 )
2023-01-14 01:07:42 +08:00
c1b976572c
feat: add copy to clipboard in code blocks ( #14153 )
...
* feat: add copy to clipboard in code blocks
* Use the same style as docusaurus v2
* Remove style from siteConfig.js
* Fix typo
* Disable button on copied
Co-authored-by: Tarun Chauhan <tarun.chauhan@tripjack.com >
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2023-01-12 18:01:07 +02:00
fisker Cheung
3ef82ae06b
Remove and ignore .node-version file ( #14143 )
2023-01-10 09:28:06 +08:00
Sosuke Suzuki
a37ce0b8f6
Clean changelog_unreleased ( #14144 )
...
Clean changelog
2023-01-09 16:48:32 +09:00
Boris Petrov
4cf4c2c563
Fix typo in CHANGELOG ( #14137 )
2023-01-09 15:08:34 +08:00
Sosuke Suzuki
26b45e361f
Git blame ignore 2.8.2
2023-01-07 20:22:01 +09:00
Sosuke Suzuki
b9c3cd4c70
Bump Prettier dependency to 2.8.2
2023-01-07 20:22:01 +09:00
Sosuke Suzuki
dc187f1936
Update dependents count
2023-01-07 20:21:43 +09:00
Sosuke Suzuki
ac88438d65
Release 2.8.2
2023-01-07 20:15:48 +09:00
fisker Cheung
aaf919014f
Fix comments after directive ( #14081 )
2023-01-07 16:43:44 +08:00
fisker Cheung
9e09a78cf5
Stop inserting space in LESS property access ( #14103 )
2023-01-07 16:43:15 +08:00
Sosuke Suzuki and fisker Cheung
0c5d4f3458
Fix removing commas from function arguments in maps ( #14089 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2023-01-06 17:13:41 +09:00
Cyrille David
b77d912c0c
ember / glimmer: Preserve self-closing tags ( #13691 )
2023-01-04 18:51:39 +08:00
Cyrille David
cf36209a27
Handlebars: Add tests for {{! prettier-ignore}} ( #13693 )
2023-01-04 18:49:24 +08:00
fisker Cheung
f8e1ad806c
Add parens to head of ExpressionStatement instead of whole statement ( #14077 )
2023-01-04 15:22:12 +08:00
dependabot[bot]
8034bada96
Build(deps): Bump json5 from 2.2.0 to 2.2.3 in /scripts/release ( #14104 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-03 18:46:14 +08:00
dependabot[bot]
31d40104f4
Build(deps): Bump json5 from 2.2.1 to 2.2.3 in /website ( #14101 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-03 14:19:41 +08:00
Michael Voříšek and fisker Cheung
41cee0636e
Do not change case of property name if inside a variable declaration in LESS ( #14034 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2023-01-03 13:32:00 +08:00
dependabot[bot]
0e25b13a28
Build(deps): Bump json5 from 2.2.1 to 2.2.2 ( #14098 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-03 13:30:38 +08:00
fisker Cheung
af3d6fa80b
Quote numeric keys for json-stringify parser ( #14083 )
2023-01-03 10:47:30 +08:00
Michael Voříšek
efa6aa68b6
Fix semicolon duplicated at the end of LESS file ( #14007 )
...
Fix semicolon duplicated at the end of file
2022-12-30 17:09:55 +09:00
0024 and fisker Cheung
369bf2a1c1
Fix to add parentheses for TSTypeQuery in some case ( #14042 )
...
* add TSTypeQuery to needsParens
* fix to lint prettier
* add test
* remove comment
* add changelog
* fix lint
* remove template comments at top in changelog
* Fix changelog
* Add new line
* check objectType
* remove fallthrough comment
* check property name
* Simplify changelog
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-12-30 15:05:14 +09:00
fisker Cheung
e301b1f9ce
Fix comments inside JSX attributes ( #14082 )
...
Fixes https://github.com/prettier/prettier/issues/11242
2022-12-30 10:36:58 +08:00
fisker Cheung
ef707da0a2
Fix formatting for auto-accessors with comments ( #14038 )
...
Fixes https://github.com/prettier/prettier/issues/14036
2022-12-29 17:17:54 +08:00
fisker Cheung
d798b55486
Improve let check in for..of ( #14076 )
2022-12-29 15:12:22 +08:00
Georgii Dolzhykov
201e02e14e
Fix displacing of comments in default switch case ( #14047 )
2022-12-29 10:13:02 +08:00
fisker Cheung
32d46d9fa1
Fix formatting of empty type parameters ( #14073 )
2022-12-29 10:11:50 +08:00
Michael Voříšek
4551fe6f6f
Fix no space after unary minus when followed by opening parenthesis in LESS ( #14008 )
2022-12-29 10:07:12 +08:00
fisker Cheung
948b3af232
Revert last commit
...
Accidentally committed to main branch when testing #14062
Revert 6ed29ee10e
2022-12-26 10:31:16 +08:00
fisker Cheung
6ed29ee10e
Test
2022-12-26 10:10:02 +08:00
Sosuke Suzuki and fisker
08a51db63f
Update dependencies ( #14052 )
...
Co-authored-by: fisker <lionkay@gmail.com >
2022-12-23 21:45:45 +08:00
Sosuke Suzuki and fisker
7564339a15
Support type annotations on auto accessors via babel-ts ( #14049 )
...
* Update `@babel/parser`
* Move tests to `/format/typescript`
* Update tests
* Add changelog
* Dedupe
Co-authored-by: fisker <lionkay@gmail.com >
2022-12-23 16:41:36 +09:00
fisker Cheung and Georgii Dolzhykov
57a109af0a
Add missing parentheses to let in for..of loop ( #14044 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2022-12-23 14:49:01 +08:00
fisker Cheung
895adf780b
Fix badge ( #14046 )
2022-12-23 14:47:20 +08:00
fisker
20fad630fa
Fix test
2022-12-22 10:19:01 +08:00
fisker Cheung and Georgii Dolzhykov
a6b6184d75
Add missing parentheses to let ( #14000 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2022-12-22 09:42:03 +08:00
fisker Cheung
985b895c47
Improve keyword class property print ( #13997 )
2022-12-19 13:20:48 +08:00
fisker Cheung
617f077766
Remove outdated code ( #13996 )
2022-12-19 13:19:59 +08:00
b50dfd1974
fix: preserve empty lines between nested SCSS maps ( #13931 )
...
Co-authored-by: Jeremy Neander <jeremy.neander@glassdoor.com >
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-12-15 14:54:47 +08:00
HonkingGoose and fisker Cheung
d24d74930e
Rewrite sentence ( #13686 )
...
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com >
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-12-15 14:52:09 +08:00