Georgii Dolzhykov
d3757fb6b4
website: add State of JS 2020 ( #10312 )
2021-02-15 00:22:08 +02:00
Sosuke Suzuki
2598803a2a
Improve formatting for React Hooks call ( #10238 )
...
* Add isReactHookCallWithDepsArray
* Improve formatting for React hooks call
* Refactor
* Add changelog
* Use isReactHookCallWithDepsArray in shouldGroupLastArg
* Support general pattern
2021-02-14 23:57:26 +02:00
fisker Cheung
dca2c55ef6
Move embeddedInHtml to language-html/ ( #9739 )
...
* Move `embeddedInHtml` to `language-html/`
* Fix
* Rename to `__embeddedInHtml`
2021-02-13 13:34:31 +08:00
dependabot[bot]
0ba5029ed0
Build(deps): Bump resolve from 1.19.0 to 1.20.0 ( #10307 )
2021-02-12 23:48:43 +00:00
dependabot[bot]
e2d917353c
Build(deps-dev): Bump @babel/preset-env from 7.12.13 to 7.12.16 ( #10306 )
2021-02-12 22:46:47 +00:00
Syu Kato and fisker Cheung
9f9677e6b7
Fix hasFlowShorthandAnnotationComment check ( #5497 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2021-02-13 05:29:44 +08:00
dependabot[bot]
2e596e33b7
Build(deps): Bump typescript from 4.1.4 to 4.1.5 ( #10299 )
2021-02-12 21:25:37 +00:00
dependabot[bot]
90b588371c
Build(deps): Bump @angular/compiler from 11.1.2 to 11.2.0 ( #10300 )
2021-02-12 21:25:01 +00:00
fisker Cheung
ea63f245d0
Refactor conditionalExpressionChainContainsJsx ( #10282 )
2021-02-13 05:24:06 +08:00
dependabot[bot]
4c92d213e1
Build(deps): Bump meriyah from 4.1.1 to 4.1.2 ( #10302 )
...
Bumps [meriyah](https://github.com/meriyah/meriyah ) from 4.1.1 to 4.1.2.
- [Release notes](https://github.com/meriyah/meriyah/releases )
- [Changelog](https://github.com/meriyah/meriyah/blob/master/CHANGELOG.md )
- [Commits](https://github.com/meriyah/meriyah/compare/v4.1.1...v4.1.2 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-13 05:15:31 +08:00
dependabot[bot]
3f5530dcb3
Build(deps-dev): Bump @babel/core from 7.12.13 to 7.12.16 ( #10309 )
...
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ) from 7.12.13 to 7.12.16.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.12.16/packages/babel-core )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-13 05:12:01 +08:00
Sosuke Suzuki and fisker Cheung
7d84c0a5a4
Fix inconsistent indentation for ternary in call expressions ( #10266 )
...
* Refactor with do while
* return false when ternary in CallExpression is not callee
* Update changelog
* For computed member property
* Fix
* Simplify
* Minor tweak
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2021-02-12 08:11:24 +09:00
fisker Cheung
bc30016500
Remove isLineNext ( #10304 )
...
* Replace `isLineNext` with `isLineOrHardlineOrSoftline`
* Remove `isLineNext`
* Use `isEmptyStringOrAnyLine`
* Update condition
2021-02-11 23:06:47 +02:00
dependabot[bot] and fisker Cheung
db2eb50e84
Build(deps-dev): Bump eslint-plugin-unicorn from 27.0.0 to 28.0.0 ( #10301 )
...
* Build(deps-dev): Bump eslint-plugin-unicorn from 27.0.0 to 28.0.0
Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn ) from 27.0.0 to 28.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases )
- [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v27.0.0...v28.0.0 )
Signed-off-by: dependabot[bot] <support@github.com >
* Fix problem caught by `prefer-includes`
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2021-02-11 23:06:23 +02:00
Nathan Totten and Georgii Dolzhykov
edf8bceac6
Removed experimental plugins ( #9417 )
...
* Removed experimental plugins
Removing plugins that abuse the plugin api.
* Remove more plugins that use the API in a non-intended way
* Update version-stable
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2021-02-11 23:05:49 +02:00
Cyrille David
5aa057b40b
Handlebars: Default --html-whitespace-sensitivity to strict ( #10201 )
...
* Handlebars: Default --html-whitespace-sensitivity to strict
* Record tests other than handlebars
* Trim trailing newlines
* Record tests
* Fix rebase
* Record all tests not only hbs
* Fix the idempotency issue
Adjust dedent for the last child node
* Fix the annoying trailing whitespace
* Trim isolated leading newline
2021-02-11 15:43:07 +02:00
fisker Cheung
37b5b58ea1
Update parse-json
2021-02-11 16:20:41 +08:00
fisker Cheung
cb27432b77
Fix changelog
2021-02-11 16:15:37 +08:00
Sosuke Suzuki
2d97df8ec7
Fix unnecessary line breaks in method type declaration parameters ( #10024 )
2021-02-11 09:49:38 +02:00
fisker Cheung
659d9a1f1f
Add a link to prettier-doc/no-concat ESLint rule ( #10188 )
2021-02-11 04:39:19 +02:00
fisker Cheung
36d3a0c784
Remove isEmpty ( #10295 )
2021-02-11 04:36:10 +02:00
dependabot[bot]
9ff161d482
Build(deps): Bump typescript from 4.1.3 to 4.1.4 ( #10288 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.1.3 to 4.1.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.1.3...v4.1.4 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-11 00:52:59 +08:00
dependabot[bot]
930d73daa6
Build(deps-dev): Bump @typescript-eslint/types from 4.14.2 to 4.15.0 ( #10281 )
...
Bumps [@typescript-eslint/types](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/visitor-keys ) from 4.14.2 to 4.15.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/visitor-keys/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.15.0/packages/visitor-keys )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-11 00:52:37 +08:00
dependabot[bot]
73065806e6
Build(deps): Bump flow-parser from 0.143.1 to 0.144.0 ( #10251 )
...
Bumps [flow-parser](https://github.com/facebook/flow ) from 0.143.1 to 0.144.0.
- [Release notes](https://github.com/facebook/flow/releases )
- [Changelog](https://github.com/facebook/flow/blob/master/Changelog.md )
- [Commits](https://github.com/facebook/flow/compare/v0.143.1...v0.144.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-11 00:52:20 +08:00
dependabot[bot] and fisker Cheung
d0829f8b95
Build(deps): Bump meriyah from 4.0.0 to 4.1.1 ( #10283 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2021-02-11 00:51:41 +08:00
fisker Cheung
2f4140ff18
Test: Skip install for standalone test ( #10273 )
2021-02-11 00:50:59 +08:00
Georgii Dolzhykov
662cdb04db
RFC: label doc ( #10275 )
...
* RFC: label doc
* Update functions in doc-utils
2021-02-10 17:08:54 +02:00
dependabot[bot]
91c0d58c4a
Build(deps): Bump @angular/compiler from 11.1.1 to 11.1.2 ( #10242 )
2021-02-10 13:31:20 +00:00
dependabot[bot]
bc2b8fda34
Build(deps-dev): Bump @glimmer/reference from 0.74.2 to 0.75.0 ( #10289 )
2021-02-10 13:19:31 +00:00
Georgii Dolzhykov
f3906d84d4
Refactor: rename FastPath → AstPath ( #10276 )
2021-02-10 13:42:06 +02:00
dependabot[bot]
cf80f0a681
Build(deps): Bump @typescript-eslint/typescript-estree from 4.14.2 to 4.15.0 ( #10280 )
...
Bumps [@typescript-eslint/typescript-estree](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-estree ) from 4.14.2 to 4.15.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/typescript-estree/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.15.0/packages/typescript-estree )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-10 19:38:20 +08:00
dependabot[bot]
fd020fc9bd
Build(deps): Bump @glimmer/syntax from 0.74.2 to 0.75.0 ( #10287 )
...
Bumps [@glimmer/syntax](https://github.com/glimmerjs/glimmer-vm ) from 0.74.2 to 0.75.0.
- [Release notes](https://github.com/glimmerjs/glimmer-vm/releases )
- [Changelog](https://github.com/glimmerjs/glimmer-vm/blob/master/CHANGELOG.md )
- [Commits](https://github.com/glimmerjs/glimmer-vm/compare/v0.74.2...v0.75.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-10 19:36:40 +08:00
Georgii Dolzhykov
a55fe2d961
Add tests for #2239 ( #10286 )
2021-02-10 01:06:14 +02:00
Cyrille David
091e91e50d
Handlebars printer: two small refactorings ( #10285 )
...
* Refactor generateHardlines
* Move variables
* Fix isWhitespaceOnly regex
2021-02-09 21:49:31 +02:00
Georgii Dolzhykov
03a43ae55f
Fix error thrown on expressions like a(b => c => function (){}) ( #10278 )
2021-02-09 11:08:14 +02:00
2245e93900
Don't skip file paths contains special words like constructor ( #10256 )
...
Co-authored-by: fisker <lionkay@gmail.com >
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2021-02-08 22:46:00 +02:00
dependabot[bot]
6a55d918de
Build(deps-dev): Bump webpack from 5.20.2 to 5.21.2 ( #10268 )
2021-02-08 09:26:34 +00:00
dependabot[bot]
1d805826ec
Build(deps-dev): Bump rollup from 2.38.4 to 2.38.5 ( #10271 )
2021-02-08 06:24:25 +00:00
dependabot[bot]
fda0c4c87a
Build(deps): Bump actions/cache from v2 to v2.1.4 ( #10272 )
2021-02-08 06:16:44 +00:00
dependabot[bot]
64628a1e38
Build(deps-dev): Bump webpack from 5.20.2 to 5.21.2 in /website ( #10270 )
2021-02-08 05:56:11 +00:00
fisker Cheung
a1ba8fb812
Build: Add rollup-plugin-polyfill-node ( #10249 )
2021-02-08 09:50:43 +08:00
fisker Cheung
ba3930d63e
Replace concat in src/document/ with array ( #10185 )
2021-02-08 09:48:25 +08:00
fisker Cheung
bf3cabd2bb
Refactor: Use fromPairs instead of Array#reduce ( #10262 )
...
* Refactor: Use `fromPairs` instead of `Array#reduce`
* Restore unrelated change
2021-02-08 00:55:46 +02:00
Sosuke Suzuki
cc1f0543e6
Consistent indentations for conditional operators ( #10187 )
2021-02-07 16:53:05 +02:00
fisker Cheung
22a10c5589
CLI: Handle logLevel parse error ( #10207 )
2021-02-07 09:01:28 +08:00
fisker Cheung
75c6dcd6a1
Test: extract some code to createSnapshot ( #10255 )
2021-02-07 08:59:30 +08:00
Cyrille David and fisker Cheung
8198f40727
handlebars: Split text content on multiple lines ( #10179 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2021-02-07 08:58:44 +08:00
fisker Cheung
2a157bf7cb
CLI: Print error message when --find-config-path can't find config file ( #10208 )
2021-02-07 08:52:32 +08:00
fisker Cheung
93409294e6
CLI: clear printed long filenames ( #10217 )
2021-02-07 08:51:19 +08:00
dependabot[bot]
05b5ba88e1
Build(deps-dev): Bump webpack from 5.20.1 to 5.20.2 in /website ( #10254 )
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.20.1 to 5.20.2.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.20.1...v5.20.2 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-07 08:50:48 +08:00