fisker Cheung and Chris Brody
73e3976c34
Add espree parser ( #9000 )
...
Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com >
2020-10-13 09:14:02 +08:00
Georgii Dolzhykov
633f084a76
LESS: fix comments in value lists ( #9356 )
2020-10-12 09:16:36 +08:00
Alexander Kachkaev
744638e96b
Markdown: Align code block language detection with other tools ( #9365 )
2020-10-12 09:13:30 +08:00
Ara Adkins and fisker Cheung
42c1ff3fcf
Add support for [[wiki-style]] links in markdown ( #9275 )
...
* Add support for [[wiki-style]] links in markdown
1. Support for [[wiki-style]] links ensures that they do not get broken
by the prettier formatting by being wrapped over multiple lines.
2. The contents of the link (between the `[[]]` brackets) are treated
as raw text. This is because the various tools that rely on the
`[[]]` syntax do not agree on what is allowable between them.
* Add a changelog document
* Update pr-9275.md
* Add additional tests as requested
* Add a fix for AST tests
* Fix issues with prose-wrap: "preserve"
* Lint
* Add a clean action for wikiLinks
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2020-10-08 21:51:01 +08:00
Sosuke Suzuki
bba196abc8
Improve formatting for AssignmentExpression with ClassExpression that has long superClass ( #9341 )
...
* Improve formatting for AssignmentExpression with ClassExpression that has long superClass
Fix by prettier
* Add changelog
* Remove unnecesary concat call
* Mention abount Google Closure Library in changelog
2020-10-08 20:11:15 +09:00
Sosuke Suzuki
bb238f5765
Fix placing leading comments for a body of while statement ( #9345 )
...
* Add leading comments for while
* Add tests
* Add changelog
2020-10-08 17:08:40 +09:00
Sosuke Suzuki
e1eecfd7eb
TypeScript: Preserve a last separator for ignored object and interface types ( #9318 )
...
* Preserve ignored TypeScript signature
* Add Changelog
2020-10-06 15:09:22 +09:00
fisker Cheung and Georgii Dolzhykov
64cb7abed8
JS: Fix comments inside template ( #9278 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-10-05 05:49:52 +08:00
fisker Cheung
7c5a7d3c74
Markdown: Fix missing blank lines in fenced code block ( #8786 )
2020-09-30 17:03:14 +08:00
fisker Cheung
9efeb8309e
Update postcss-scss to v3 ( #9210 )
2020-09-27 08:49:16 +08:00
fisker Cheung
50eeaadeca
MDX: fix JSX format ( #9267 )
2020-09-27 08:46:19 +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
Ananda Umamil and fisker
fe70b17a9a
Vue: Improve v-for format ( #9225 )
...
* Vue: break `v-for` around `in` or `of`
* Update changelog
* Minor refactor
Co-authored-by: fisker <lionkay@gmail.com >
2020-09-24 08:00:58 +09:00
fisker Cheung
203be9da5a
Change test package name ( #8848 )
2020-09-18 14:05:29 +08:00
fisker Cheung
94ef5f5683
Test: Fix indexes calculation ( #9152 )
...
* Test: Fix indexes calculation
* Simplify logic
* Update snapshots
2020-09-17 07:31:29 +08:00
golergka
7131347cde
Typescript tagged template literal test ( #9195 )
2020-09-14 14:20:24 +03:00
dependabot[bot] and fisker
116727b3b6
Build(deps): Bump yaml-unist-parser from 1.3.0 to 1.3.1 ( #9169 )
...
* Build(deps): Bump yaml-unist-parser from 1.3.0 to 1.3.1
Bumps [yaml-unist-parser](https://github.com/ikatyang/yaml-unist-parser ) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/ikatyang/yaml-unist-parser/releases )
- [Changelog](https://github.com/ikatyang/yaml-unist-parser/blob/master/CHANGELOG.md )
- [Commits](https://github.com/ikatyang/yaml-unist-parser/compare/v1.3.0...v1.3.1 )
Signed-off-by: dependabot[bot] <support@github.com >
* Update snapshot
* Update changelog
* spellcheck
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2020-09-10 21:30:40 +08:00
fisker Cheung
4de63cfc4f
Test: add test for issue 5961 ( #9153 )
2020-09-07 17:59:50 +03:00
Sosuke Suzuki and fisker
5f9bb2590b
YAML: Fix printing doubles a blank line before a comment ( #9143 )
...
* Print hardline for endComments only when under mappingValue
* Add changelog
* Fix from linter
* Update tests
* Use shouldPrintEndCommentsWithAlign
* Add tests
* Add test
* Fix format
* Update test
* Test map too
* Update tests
* `shouldPrintEndCommentsWithAlign` -> `shouldPrintEndComments`
Co-authored-by: fisker <lionkay@gmail.com >
2020-09-07 14:10:05 +03:00
fisker Cheung
370844cc4c
Run full test on every parser ( #9070 )
...
* Refactor test
* Fix
* Improve `hasPragma` & `insertPragma` on files has BOM
* Fix `coreFormat` cursorOffset
* Code style
* Update snapshots
* Refactor
* Restore BOM test
* Add export
* Empty file
* return after SyntaxError
* EOL test
* Fix eol tests
* Named export
* Tweak matrix
* Disable on `requirePragma`
* Disable `cr` test
* Simplify logic
* Update `verbose`
* Remove `test:full-test`
* Typo
2020-09-04 23:43:41 +08:00
dependabot[bot] and fisker
6c05c75e06
Build(deps): Bump flow-parser from 0.132.0 to 0.133.0 ( #9135 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2020-09-04 16:00:08 +08:00
Sosuke Suzuki
2c0e9838f2
Fix line breaks for CSS in JS ( #9136 )
...
* Fix 2.1 regression for css-in-js
* Add changelog
2020-09-04 13:12:58 +09:00
Sosuke Suzuki and Georgii Dolzhykov
7463b9dd15
GraphQL: Fix formatting for directives in fields ( #9116 )
...
* Fix formatting for directives in FragmentDefinition
* Add changelog
* Update src/language-graphql/printer-graphql.js
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
* Fix by Prettier
* Refactor
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-09-03 02:57:17 +09:00
dependabot[bot] and fisker
0983660aa8
Build(deps): Bump @babel/parser from 7.11.2 to 7.11.5 ( #8947 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2020-09-01 19:26:19 +08:00
fisker Cheung
01f986bea9
Make isSCSS* function stricter ( #9093 )
2020-09-01 16:58:35 +08:00
fisker Cheung and Georgii Dolzhykov
f5e96f7d83
Redirect babel parser to babel-flow ( #9071 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-09-01 11:23:47 +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
ebe9e07716
Vue: Fix format on self-closing and empty blocks ( #9055 )
2020-08-26 11:19:34 +08:00
Chris Brody
77c8da7691
test(TypeScript): test ...infer type with parens ( #9056 )
2020-08-26 09:02:58 +08:00
fisker Cheung and prettifier[bot]
ee57066cb4
HTML: Fix format on style[lang="sass"] ( #9051 )
...
Co-authored-by: prettifier[bot] <45367598+prettifier[bot]@users.noreply.github.com>
2020-08-26 00:26:03 +08:00
fisker Cheung
073dfd9fa2
Vue: fix format on blocks with src attribute ( #9052 )
2020-08-25 23:06:25 +08:00
fisker Cheung
720177ac5c
HTML: Fix format on files with frontMatter ( #9043 )
2020-08-25 19:49:38 +08:00
fisker Cheung
9a9dcbe12b
Fix broken format for ...infer T ( #9044 )
2020-08-25 12:36:54 +03:00
Sosuke Suzuki
c4e9dd9c36
Continuation of revert 7889 ( #9024 )
...
* Continuation of revert 7889
* Remove isLiteralLikeValue
* Revert callHasComplexArguments
* Revert usage of shouldMerge
2020-08-23 01:23:41 +09:00
fisker Cheung
08e8b40ac6
Move non-js syntax test out of tests/js/ dir ( #9023 )
2020-08-22 14:50:54 +08:00
Cyrille David
8013e510cc
handlebars: Remove duplicated tests ( #9020 )
2020-08-22 11:35:24 +08:00
fisker Cheung
95ba0aeb79
Update javascript tests to avoid syntax errors ( #9019 )
2020-08-22 01:00:14 +08:00
Sosuke Suzuki and Christopher J. Brody
751f67af1f
Upgrade to TypeScript 4.0 ( #8982 )
...
* Upgrade to TypeScript 4.0
* Update tests
* Fix changelog
* Revert invalid label tests
* Set loggerFn to false
* Use TS 4.0
* Apply logical assginment test for TypeScript
* Remove hack for NamedTupleMember
* workaround for TypeScript 4.0 in src/language-js/utils.js
Co-authored-by: Christopher J. Brody <chris.brody+brodybits@gmail.com >
2020-08-21 16:09:28 +09:00
fisker Cheung
1d2ff824cc
Improve requirePragma on files with BOM ( #9003 )
2020-08-21 10:30:42 +08:00
fisker Cheung
d31ebf4619
Test: Improve coverage ( #8811 )
2020-08-21 09:43:24 +08:00
fisker Cheung
7bf1803a11
JS: DRY hasPragma & insertPragma ( #9002 )
2020-08-21 09:10:14 +08:00
fisker Cheung
dc46155962
Revert #7367 "Fix: remove unnecessary parens when yielding jsx" ( #9011 )
2020-08-21 09:09:45 +08:00
fisker Cheung
2ff156136f
Improve internal cursorOffset calculate ( #9013 )
2020-08-21 09:09:15 +08:00
Sosuke Suzuki
e3f075b3e7
Revert #7889 ( #8861 )
...
* Revert #7889
* Remove changelog
* Run prettier
2020-08-20 00:00:27 +09:00
Sosuke Suzuki and fisker Cheung
6dbef8681e
Fix interface extends with long type parameters ( #8981 )
...
* Try the same way as #8967
* Update src/language-js/printer-estree.js
Co-authored-by: fisker Cheung <lionkay@gmail.com >
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2020-08-19 23:51:49 +09:00
Sosuke Suzuki
36c35be210
Fix class implements with long type parameters ( #8967 )
...
* Fix class implements
* Extract extendsParts and indent
* Refactor
* Refactor
* Fix by Prettier
* Refactor
* Refactor getTypeParametersGroupId with WeakMap
2020-08-19 20:21:52 +09:00
fisker Cheung
6833310f87
Fix wrong range format on files with BOM ( #8936 )
2020-08-10 22:18:55 +08:00
fisker Cheung
0a2ec1b4a2
Fix range tests with TEST_CRLF and endOfLine option ( #8821 )
2020-08-08 16:45:44 +08:00