Commit Graph
3705 Commits
Author SHA1 Message Date
fisker Cheung 2bfaa7c2cf Simplify createLanguage (#7509) 2020-02-17 16:39:08 +02:00
fisker Cheung d2de524571 Don't add parens to undefined in ConditionalExpression with jsx (#7504)
* Add failed test

* Don't add parens to Literal and Identifier

* Update snap shot

* Move test to `jsx`

* Only undefined

* Add changelog
2020-02-17 16:34:50 +02:00
dependabot-preview[bot] 3532888bdf Bump cspell from 4.0.46 to 4.0.47 (#7600)
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 4.0.46 to 4.0.47.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/cspell@4.0.46...cspell@4.0.47)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-17 12:49:48 +02:00
dependabot-preview[bot] 72de796f64 Bump terser-webpack-plugin from 2.3.4 to 2.3.5 (#7599)
Bumps [terser-webpack-plugin](https://github.com/webpack-contrib/terser-webpack-plugin) from 2.3.4 to 2.3.5.
- [Release notes](https://github.com/webpack-contrib/terser-webpack-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/terser-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.3.4...v2.3.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-17 12:49:38 +02:00
fisker CheungandGeorgii Dolzhykov 40a1418246 Format value of HTML class attribute (#7555)
* Format HTML attribute `class` value

* Add more example

* Typo

* Don't break

* exclude mustache and multiparser

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-02-16 10:59:15 +02:00
dependabot-preview[bot] e214e9bf7a Bump rollup from 1.31.0 to 1.31.1 (#7581)
Bumps [rollup](https://github.com/rollup/rollup) from 1.31.0 to 1.31.1.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v1.31.0...v1.31.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-14 16:20:11 +02:00
dependabot-preview[bot] 2725c5dba1 Bump @glimmer/syntax from 0.47.4 to 0.47.9 (#7579)
Bumps [@glimmer/syntax](https://github.com/glimmerjs/glimmer-vm) from 0.47.4 to 0.47.9.
- [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.47.4...v0.47.9)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-14 15:14:21 +02:00
Georgii Dolzhykov 5dab172700 Merge remote-tracking branch 'remotes/upstream/master' into next 2020-02-14 14:08:20 +02:00
Cory Forsyth 5bd45d79af fix(glimmer): Do not strip AttrNode value when it is not blank (#7552)
* failing test

* fix(glimmer): Do not strip attr node values when not blank

* Add user-facing changes
2020-02-14 13:39:59 +02:00
dependabot-preview[bot] 5023197514 Bump rimraf from 3.0.1 to 3.0.2 (#7580)
Bumps [rimraf](https://github.com/isaacs/rimraf) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/isaacs/rimraf/releases)
- [Changelog](https://github.com/isaacs/rimraf/blob/master/CHANGELOG.md)
- [Commits](https://github.com/isaacs/rimraf/compare/v3.0.1...v3.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-14 13:31:29 +02:00
dependabot-preview[bot] bb232263d5 Bump semver from 7.1.2 to 7.1.3 (#7578)
Bumps [semver](https://github.com/npm/node-semver) from 7.1.2 to 7.1.3.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/master/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v7.1.2...v7.1.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-14 13:31:17 +02:00
dependabot-preview[bot] 34edb97184 Bump @typescript-eslint/typescript-estree from 2.19.0 to 2.19.2 (#7583)
Bumps [@typescript-eslint/typescript-estree](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-estree) from 2.19.0 to 2.19.2.
- [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/v2.19.2/packages/typescript-estree)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-14 13:31:05 +02:00
dependabot-preview[bot] 01f1bd74d6 Bump eslint-plugin-unicorn from 16.0.0 to 16.1.1 (#7577)
Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 16.0.0 to 16.1.1.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases)
- [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v16.0.0...v16.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-14 13:30:53 +02:00
dependabot-preview[bot] 5e28ec1364 Bump webpack from 4.41.5 to 4.41.6 (#7582)
Bumps [webpack](https://github.com/webpack/webpack) from 4.41.5 to 4.41.6.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.41.5...v4.41.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-14 13:30:15 +02:00
fisker Cheung 017d079ca8 Format value of HTML style attribute (#7556) 2020-02-14 14:21:11 +03:00
dependabot-preview[bot] 4267eeb6e3 Bump resolve from 1.15.0 to 1.15.1 (#7553)
Bumps [resolve](https://github.com/browserify/resolve) from 1.15.0 to 1.15.1.
- [Release notes](https://github.com/browserify/resolve/releases)
- [Commits](https://github.com/browserify/resolve/compare/v1.15.0...v1.15.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-14 12:33:37 +02:00
fisker Cheung ee1a8e45f4 Always enable ENABLE_TEST_RESULTS and AST_COMPARE on CI (#7433)
* Use `ci-info` instead of `is-ci`

* Always enable `ENABLE_TEST_RESULTS` and `AST_COMPARE` on CI
2020-02-14 12:30:58 +02:00
fisker Cheung 4bac066146 Refactor shouldPrintComma logic for angular (#7507) 2020-02-14 13:21:46 +03:00
fisker Cheung b26d66feb3 Remove unnecessary type-casting in FastPath (#7506) 2020-02-14 13:21:19 +03:00
fisker Cheung 03655b48e9 Categorize scripts in package.json (#7561) 2020-02-14 13:20:38 +03:00
Daiki Ihara 3a485c68dd Markdown: fix incorrect prettification of multi-line markdown footnote (#7203)
* fix incorrect prettification of multi-line markdown footnote

* update test of footnoteDefinition

* add changelog_unreleased pr-7203

* fix changelog_unreleased

* fix pointed out

* update snapshot test of markdown for footnote
2020-02-14 11:50:49 +02:00
dependabot-preview[bot] 410d1580ac Bump @rollup/plugin-node-resolve from 7.0.0 to 7.1.1 (#7537)
Bumps [@rollup/plugin-node-resolve](https://github.com/rollup/plugins) from 7.0.0 to 7.1.1.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/node-resolve-v7.0.0...node-resolve-v7.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-14 01:50:22 +02:00
dependabot-preview[bot] dd3deed78c Bump @rollup/plugin-commonjs from 11.0.1 to 11.0.2 (#7539)
Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins) from 11.0.1 to 11.0.2.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/commonjs-v11.0.1...commonjs-v11.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-14 01:50:06 +02:00
fisker Cheung 61398f0dc7 Vue: don't print long single expression of TemplateLiteral and StringLiteral on new line (#7479)
* Add failed test

* Fix logic

* Update example

* More tests

* Add changelog_unreleased/vue/pr-7479.md

* Fix logic
2020-02-14 01:47:36 +02:00
dependabot-preview[bot] c707ca91f1 Bump webpack-cli from 3.3.10 to 3.3.11 in /website (#7570)
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 3.3.10 to 3.3.11.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/next/CHANGELOG_v3.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/v3.3.10...v3.3.11)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-14 01:39:38 +02:00
fisker Cheung 5cb59a07d1 Add tests for globby update (#7543) 2020-02-14 01:39:01 +02:00
Dang Mai ae9d2ac054 Add Apex to list of supported languages on home page (#7545) 2020-02-14 01:37:13 +02:00
dependabot-preview[bot] ffef2e9b74 Bump snapshot-diff from 0.6.2 to 0.7.0 (#7546)
Bumps [snapshot-diff](https://github.com/thymikee/snapshot-diff) from 0.6.2 to 0.7.0.
- [Release notes](https://github.com/thymikee/snapshot-diff/releases)
- [Commits](https://github.com/thymikee/snapshot-diff/compare/v0.6.2...v0.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-14 01:36:25 +02:00
fisker Cheung 8fdab1bf40 A little DRY on TypeCastExpression print (#7551) 2020-02-14 01:35:43 +02:00
dependabot-preview[bot] 1fd1f8e752 Bump @rollup/plugin-json from 4.0.1 to 4.0.2 (#7538)
Bumps [@rollup/plugin-json](https://github.com/rollup/plugins) from 4.0.1 to 4.0.2.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/url-v4.0.1...url-v4.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-14 01:00:12 +02:00
dependabot-preview[bot] 798a993264 Bump flow-parser from 0.117.1 to 0.118.0 (#7554)
Bumps [flow-parser](https://github.com/facebook/flow) from 0.117.1 to 0.118.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.117.1...v0.118.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-14 00:59:29 +02:00
fisker Cheung 81e8f28156 Fix warning on test (#7566) 2020-02-14 00:14:24 +02:00
dependabot-preview[bot] 57d2b9df28 Bump codecov from 3.6.4 to 3.6.5 (#7567)
Bumps [codecov](https://github.com/codecov/codecov-node) from 3.6.4 to 3.6.5.
- [Release notes](https://github.com/codecov/codecov-node/releases)
- [Commits](https://github.com/codecov/codecov-node/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-14 00:13:40 +02:00
dependabot-preview[bot] 0a8dc9a6bc Bump angular-estree-parser from 1.2.0 to 1.3.0 (#7568)
Bumps [angular-estree-parser](https://github.com/ikatyang/angular-estree-parser) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/ikatyang/angular-estree-parser/releases)
- [Changelog](https://github.com/ikatyang/angular-estree-parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ikatyang/angular-estree-parser/compare/v1.2.0...v1.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-14 00:13:22 +02:00
dependabot-preview[bot] fbc5980b95 Bump webpack from 4.41.5 to 4.41.6 in /website (#7571)
Bumps [webpack](https://github.com/webpack/webpack) from 4.41.5 to 4.41.6.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.41.5...v4.41.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-14 00:12:46 +02:00
fisker CheungandGeorgii Dolzhykov b35074007b HTML: Fix inconsistent formatting of self-closing tags (#7395)
* Fix inconsistent self-closing tag in vue

* Update snap

* Add changelog

* More test

* reword changelog

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-02-10 13:36:25 +03:00
fisker Cheung 9d9f39cb7c Add missing comma in technical-details.md (#7549) 2020-02-06 15:25:02 +03:00
dependabot-preview[bot]andGeorgii Dolzhykov e94291f4b8 Bump @typescript-eslint/typescript-estree from 2.17.0 to 2.19.0 (#7540)
* Bump @typescript-eslint/typescript-estree from 2.17.0 to 2.19.0

Bumps [@typescript-eslint/typescript-estree](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-estree) from 2.17.0 to 2.19.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/v2.19.0/packages/typescript-estree)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* remove tests for obscure jsdoc function types

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-02-04 15:25:37 +03:00
Cyrille David 057e93305b refactoring(glimmer): Create a clean file (#7529) 2020-02-04 02:32:14 +02:00
Cyrille David 7d42e79d9d refactoring(glimmer): Extract utils from printer (#7528)
* Extract isWhitespaceNode

* Refactor isParentOfType to isParentOfSomeType

* Introduce isNodeOfSomeType

* Replace isNextNodeOfType with isNextNodeOfSomeType

* Move utils to utils file

* Sort utils

* Refactor isPrettierIgnoreNode function to use util

* Extract hasPrettierIgnore to utils

* Apply review feedback

* Apply review suggestions

* Add getSiblingNode
2020-02-03 21:44:24 +02:00
Cyrille DavidandGeorgii Dolzhykov 9b684892d5 Upgrade @glimmer/syntax to latest (#7245)
* Remove simple-html-tokenizer resolution

* Remove outdated filter

I'm not 100% sure but I guess it was useful with previous
@glimmer/syntax versions

* Remove unused code

* Upgrade @glimmer/syntax and simple-html-tokenizen

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-02-03 18:28:08 +02:00
Kagami Sascha RosylightandGeorgii Dolzhykov 1cd90c9fb8 Do not add hard linebreak for html template (#7208)
* Do not add hard linebreak for html template

* Collapse whitespaces to single space char

* restore line breaking

* use `line` and rename vars

* add test

* support htmlWhitespaceSensitivity

* indent if breakable

* add htmlWhitespaceSensitivity test

* indent only when multiple top levels

* add a changelog entry

* update snapshot

* replace match with test

* split tests into multiple files for better readability of snapshots

* fix an edge case with html-in-js-in-html

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-02-03 17:09:38 +02:00
dependabot-preview[bot] 64723640c8 Bump eslint-plugin-import from 2.20.0 to 2.20.1 (#7522)
Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) from 2.20.0 to 2.20.1.
- [Release notes](https://github.com/benmosher/eslint-plugin-import/releases)
- [Changelog](https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md)
- [Commits](https://github.com/benmosher/eslint-plugin-import/compare/v2.20.0...v2.20.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-03 14:38:06 +02:00
dependabot-preview[bot] e100be7484 Bump eslint-plugin-unicorn from 15.0.1 to 16.0.0 (#7520)
Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 15.0.1 to 16.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases)
- [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v15.0.1...v16.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-03 14:37:47 +02:00
dependabot-preview[bot] 3ca52419d8 Bump @rollup/plugin-replace from 2.3.0 to 2.3.1 (#7523)
Bumps [@rollup/plugin-replace](https://github.com/rollup/plugins) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/replace-v2.3.0...replace-v2.3.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-03 14:37:30 +02:00
dependabot-preview[bot] d8b6e4b5d3 Bump angular-estree-parser from 1.1.5 to 1.2.0 (#7521)
Bumps [angular-estree-parser](https://github.com/ikatyang/angular-estree-parser) from 1.1.5 to 1.2.0.
- [Release notes](https://github.com/ikatyang/angular-estree-parser/releases)
- [Changelog](https://github.com/ikatyang/angular-estree-parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ikatyang/angular-estree-parser/compare/v1.1.5...v1.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-03 12:57:34 +02:00
dependabot-preview[bot] 0996efdd91 Bump codecov from 3.6.2 to 3.6.4 (#7524)
Bumps [codecov](https://github.com/codecov/codecov-node) from 3.6.2 to 3.6.4.
- [Release notes](https://github.com/codecov/codecov-node/releases)
- [Commits](https://github.com/codecov/codecov-node/compare/v3.6.2...v3.6.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-03 12:51:12 +02:00
dependabot-preview[bot] 800a4d35eb Bump eslint-plugin-react from 7.18.0 to 7.18.3 (#7525)
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.18.0 to 7.18.3.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.18.0...v7.18.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-03 12:50:49 +02:00
dependabot-preview[bot] 14e42cc7e0 Bump @rollup/plugin-alias from 3.0.0 to 3.0.1 (#7526)
Bumps [@rollup/plugin-alias](https://github.com/rollup/plugins) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/wasm-v3.0.0...alias-v3.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-03 12:48:19 +02:00
Cyrille David 2662e542b5 Extract isGlimmerComponent to an util (#7483) 2020-02-03 13:44:37 +03:00