Commit Graph

3261 Commits (d789126c69a81a0cf4395ee59cf704d72d5022ff)

Author SHA1 Message Date
fisker Cheung d789126c69 Switch `rollup-plugin-alias` to `@rollup/plugin-alias` (#6764)
* Switch `rollup-plugin-alias` to `@rollup/plugin-alias

* fix build script
2019-10-31 14:16:58 +02:00
dependabot-preview[bot] fdfec22510 Bump svgo from 1.3.0 to 1.3.2 in /website (#6761)
Bumps [svgo](https://github.com/svg/svgo) from 1.3.0 to 1.3.2.
- [Release notes](https://github.com/svg/svgo/releases)
- [Changelog](https://github.com/svg/svgo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/svg/svgo/compare/v1.3.0...v1.3.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-31 11:06:04 +02:00
dependabot-preview[bot] bc8f658e40 Bump webpack from 4.41.0 to 4.41.2 (#6759)
Bumps [webpack](https://github.com/webpack/webpack) from 4.41.0 to 4.41.2.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.41.0...v4.41.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-31 11:05:32 +02:00
fisker Cheung 0f4fb469c4 Update `unified` to v8 (#6545) 2019-10-30 15:17:43 +02:00
fisker Cheung 417b92c636 Switch `rollup-plugin-replace` to `@rollup/plugin-replace` (#6750) 2019-10-30 15:07:01 +02:00
fisker Cheung b70c2a747e Pin `cspell` version (#6751) 2019-10-30 15:06:49 +02:00
fisker Cheung c1332e3009 Update `jest-junit` to v9 (#6740) 2019-10-30 14:37:06 +02:00
fisker Cheung 56e3434a43 Update `cross-env` to v6 (#6734) 2019-10-30 14:36:29 +02:00
fisker Cheung d3a6495369 Update `get-stream` to v5 (#6731) 2019-10-30 14:35:46 +02:00
fisker Cheung b5a201b0ae Prevent webpack generate `.LICENSE` file when minify (#6737)
* check build result

* list dist file

* Update build script

* restore ci script [skip ci]
2019-10-30 14:33:52 +02:00
fisker Cheung f0ddd0e5b6 Update `mem` to v5 (#6732) 2019-10-30 14:26:41 +02:00
fisker Cheung 56a2cd8a1b Refactor createLanguage to use function transform (#6676) 2019-10-29 20:49:44 +02:00
fisker Cheung 4a336f8393 Update `html-element-attributes` to v2.2.0 (#6739) 2019-10-29 17:00:45 +02:00
fisker Cheung 16e0e593f0 Update `jest-watch-typeahead` to v0.4.0 (#6741) 2019-10-29 16:12:50 +03:00
fisker Cheung 5522f0d78f Update `@typescript-eslint/typescript-estree` to v2.6.0 (#6736) 2019-10-29 12:36:49 +02:00
Sosuke Suzuki f2c6b94ee7 TypeScript: Keep semi for a class property before index signatu… (#6728)
* Modify to add semi to prop before TSIndexSignature

Co-Authored-By: Simon Lydell <simon.lydell@gmail.com>
2019-10-29 07:17:29 +01:00
dependabot-preview[bot] b4f28a5b65 Bump react-dom from 16.10.2 to 16.11.0 in /website (#6724)
Bumps [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom) from 16.10.2 to 16.11.0.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/v16.11.0/packages/react-dom)

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

Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com>
2019-10-28 18:27:40 +01:00
dependabot-preview[bot] 27ef80d56a Bump react from 16.10.2 to 16.11.0 in /website (#6723)
Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react) from 16.10.2 to 16.11.0.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/v16.11.0/packages/react)

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

Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com>
2019-10-28 17:54:36 +01:00
dependabot-preview[bot] 2c135433ae Bump eslint-config-prettier from 6.4.0 to 6.5.0 (#6722)
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.4.0 to 6.5.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v6.4.0...v6.5.0)

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

Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com>
2019-10-28 17:54:24 +01:00
Zhongliang Wang 2cfd8fb518 Support TypeScript 3.7 (and drop Node 6 support for direct inst… (#6657)
* WIP: Support TypeScript 3.7

* Add support for `asserts` keyword; Update snapshots

* Update typescript-estree to v2.5.0 to remove the dependency on chokidar

* Update TypeScript

* Update CHANGELOG.unreleased.md

* Add examples for TypeScript 3.7

* Update TypeScript 3.7 to latest dev version

* Correct wording

* Support `declare` keyword on class members (TypeScript 3.7 feature)

* Update Changelog and downgrade TypeScript from 3.8.0-dev to 3.7.1-rc

* Add a note regarding to dropping Node 6 support for direct installation

* tweak build config to repair build

* update CHANGELOG.unreleased.md

* TSTypePredicate microrefactoring

* fix formatting

* clean up tests

* fix parens for optional chaining inside computed properties

* update CHANGELOG.unreleased.md

* unify output across parsers for template literals

* enable more tests with optional chaining

* fix unneeded parens inside computed key of OptionalMemberExpression

* fix paren issues for OptionalCallExpression

* more fixes for OptionalCallExpression

* @typescript-eslint/typescript-estree 2.5.1-alpha.4

* fix lint

* revert build hacks

* fix one more parens issue

* @typescript-eslint/typescript-estree 2.5.1-alpha.5, remove loggerFn override

* drop node 6 for direct installing from github

* fix another parens issue, disable some tests for flow

* workaround for flow bug

* fix issues with comments


Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2019-10-28 17:53:57 +01:00
Zaven Muradyan 4e46f92b86 Add formatting for i18n attributes. (#6695)
* Add formatting for i18n attributes.

Previously, Prettier would largely ignore i18n attributes, not even
wrapping their content, which wasn't ideal since i18n descriptive text
can sometimes get long.

After this, Prettier will auto-wrap the contents of i18n attributes once
they exceed the line length.

Fixes #5875.
2019-10-25 22:10:43 +03:00
Chris Brody 7eb4431350 JSDoc type fixes in `src/main/core-options.js` (#6702)
with unused `oppositeDescription` parameter removed

and reordering of some other members

to resolve checkJs issues in `src/main/core-options.js`,

as verified by the following command:

    npx tsc --allowJs --checkJs --noEmit --target es5 src/main/core-options.js
2019-10-25 19:25:15 +03:00
Sosuke Suzuki f207e665bc JavaScript: Break arrays of arrays/objects if each element has more than one element/property (#6694)
* Modify to define isJestEachFunctionCall

* Modify to break ArrayExpression when parent is jest each function

* Add tests

* Update CHANGELOG.unreleased.md

* Fix comment

* Add pr number

* Update CHANGELOG.unreleased.md

* Remove hasNewLineInRange

* Modify to change logic for breaking jest each call function

* Modify to add logic for breaking ArrayExpression

* Modify to avoid mixed nested array

* Modify to remove changes for jest

* Update CHANGELOG.unreleased.md

* Update CHANGELOG.unreleased.md
2019-10-25 19:12:07 +03:00
Georgii Dolzhykov 69b481758c
set up cspell (#6684)
* set up cspell

* fix actual misspellings

* add cspell.json to .prettierignore

* rebase and fix issues in CHANGELOG.unreleased.md
2019-10-25 00:07:17 +03:00
Chris Brody 473bacf966 typescript@3.6.4 update (#6704) 2019-10-24 14:00:16 +03:00
Georgii Dolzhykov 2c14a7f13c
docs on whitespace sensitivity: better wording (#6699) 2019-10-23 21:57:00 +03:00
dependabot-preview[bot] 63b450b8e6 Bump terser-webpack-plugin from 1.4.1 to 2.1.3 (#6654)
Bumps [terser-webpack-plugin](https://github.com/webpack-contrib/terser-webpack-plugin) from 1.4.1 to 2.1.3.
- [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/v1.4.1...v2.1.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-23 14:39:44 +02:00
Kai Cataldo df45e12c5c API: add resolveConfig option to getFileInfo() (#6666)
* Add useConfig option to getFileInfo()

* useConfig -> resolveConfig
2019-10-23 13:56:59 +02:00
Sosuke Suzuki 7f68db8e88 JavaScript: arguments with object contains newline in arrow function (#6382)
* Modify to fix arguments with object contains newline in arrow function(nested)

* Update CHANGELOG.unreleased.md

* Update tests

* Modify to refactor

* Modify to refactor

* Add pr number and link

* Update CHANGELOG.unreleased.md

* Modify to remove unnecessary null checking

* Fix for ArrayPattern

* Fix for RestElement

* Fix for AssignmentPattern

* Update tests

* Fix for nested array and object

* Update tests

* Fix for nested array pattern

* Update tests

* Modify to discard unnecessary node type check

* Fix for rest element

* Fix for array in rest

* Fix for array in assignment pattern

* Update tests

* Fix for CallExpression with Assignment

* Fix for ArrowFunction with AssignmentPattern

* Update tests

* Modify to support generally pattern

* Update tests

* Modify to use path.each instead of path.map

* Fix for multi arguments

* Fix typo, Argments => Arguments
2019-10-22 16:05:10 +03:00
Chad Carbert a7cae47cdf Glimmer: Improve whitespace handling (#6354)
* Improve curly and whitespace handling

* Refactoring and clean up

* Collapse elements with non-whitespace children

* Clean selfClosing check in AST compare

selfClosing tags can't be considered when using AST_COMPARE=1.
The new AST may have a Glimmer component that has been collapsed,
ie: <HelloWorld></HelloWorld> -> <HelloWorld />

These result in different ASTs and thereofre we need to clean the
check that compares self-closing in the before and after ASTs

Co-authored-by: Jamie White <jamie@jgwhite.co.uk>

* Add istanbul ignore for ternaries in utilities

* Improve handling around whitespace near elements and block statements

* Update tests after rebasing

* Fix CHANGELOG.unreleased.md after rebase

* Tweak regex around leading and trialing line beraks and update test

Co-authored-by: FabHof <35104465+FabHof@users.noreply.github.com>

* Extract attribute value from concat node
2019-10-21 23:51:41 +02:00
dependabot-preview[bot] e4ab962a6d Bump docusaurus from 1.13.0 to 1.14.0 in /website (#6690)
Bumps [docusaurus](https://github.com/facebook/docusaurus) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/compare/v1.13.0...v1.14.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-21 17:34:47 +02:00
dependabot-preview[bot] 5edb0edae5 Bump codemirror-graphql from 0.11.1 to 0.11.2 in /website (#6689)
Bumps [codemirror-graphql](https://github.com/graphql/graphiql) from 0.11.1 to 0.11.2.
- [Release notes](https://github.com/graphql/graphiql/releases)
- [Changelog](https://github.com/graphql/graphiql/blob/master/CHANGELOG.md)
- [Commits](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.11.1...codemirror-graphql@0.11.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-21 14:23:46 +03:00
dependabot-preview[bot] a5a33bca11 Bump codemirror from 5.49.0 to 5.49.2 in /website (#6691)
Bumps [codemirror](https://github.com/codemirror/CodeMirror) from 5.49.0 to 5.49.2.
- [Release notes](https://github.com/codemirror/CodeMirror/releases)
- [Changelog](https://github.com/codemirror/CodeMirror/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codemirror/CodeMirror/compare/5.49.0...5.49.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-21 14:03:01 +03:00
Selvazhagan 10deb1f086 Angular: closing parenthesis on a new line after ternaries passed to pipes (#5902) 2019-10-21 12:38:21 +03:00
Zaven Muradyan 8a37258a33 Add basic instructions on how to run Prettier locally for debugging. (#6686)
Fixes #5887.
2019-10-20 16:19:47 +02:00
Sean Baines 4bd0c014fe Fix tooltip being hidden behind browser scrollbars (#6688) 2019-10-20 15:44:29 +02:00
Georgii Dolzhykov e1bfd2e2fc fix playground: wrong parser shown in options on first open (#6683) 2019-10-18 14:20:55 +02:00
fisker Cheung 3dbe4b2038 Docs: add link to `devDependencies` (#6682) 2019-10-18 10:36:24 +02:00
JounQin 9a0bdf71cb feat: add support for PartialApplication (#6397) 2019-10-17 16:45:24 +03:00
Georgii Dolzhykov 80260555c9 ts: fix optional computed methods (#6673) 2019-10-17 14:23:14 +03:00
Georgii Dolzhykov 4ba0d4e36d
fix spelling, wording, markup issues in CHANGELOG.unreleased.md (#6672) 2019-10-16 23:18:53 +03:00
dependabot-preview[bot] f28faf9c04 Bump webpack from 4.41.1 to 4.41.2 in /website (#6671)
Bumps [webpack](https://github.com/webpack/webpack) from 4.41.1 to 4.41.2.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.41.1...v4.41.2)

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

Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com>
2019-10-16 20:11:51 +02:00
Sosuke Suzuki 60d6f139a9 Docs: update docs to follow #6665 (#6670) 2019-10-16 18:53:01 +02:00
fisker Cheung 4750b1c25a Fix an expired todo test (#6665)
* Fix a expired todo test

* only check TypeError

* Throw a specific TypeError

* fix async expect

* use return
2019-10-16 15:09:39 +02:00
Eric Sakmar 10bd71e478 fix(js): Object destructuring in method shorthand #6515 (#6646) 2019-10-16 10:46:20 +03:00
fisker Cheung d52021ecbf Minor tweaks for build configs (#6663)
* Minor tweaks for build configs

* fix `@angular/compiler` path
2019-10-16 07:08:30 +02:00
fisker Cheung b5cc13a5df Remove usage of `require.extensions` in `parser-glimmer.js` (#6658)
* Fix usage of `require.extensions`

* try cjs build

* update comment
2019-10-15 18:00:32 +02:00
Georgii Dolzhykov d4537dc5f2
enable the allowUndeclaredExports Babel option (#6660) 2019-10-15 18:32:46 +03:00
Georgii Dolzhykov ab598e6e23
tests: rename duplicate bindings to be ready for #6400 (#6662) 2019-10-15 18:27:39 +03:00
Sosuke Suzuki 3a998df02e
TSX: Fix incorrectly removing parentheses around jsx elements being accessed in tsx file (#6640)
* Modify to wrap jsx element used with member-expression in tsx

* Add tests

* Update CHANGELOG.unreleased.md

* Modify to support no-inline jsx element

* Add pr number

* Fix from lint-docs

* Modify to rename isTsx => isTSXFile

* Modify to no considering file ext

* Support JSXFragment and add tests

* Update CHANGELOG.unreleased.md
2019-10-16 00:11:48 +09:00