JounQin and Georgii Dolzhykov
c1937cb1b8
feat: add new parser babel-ts to parse TypeScript syntaxes via Babel ( #6400 )
...
* feat: add new parser `babel-ts` to parse TypeScript syntaxes via Babel
* docs: document parser babel-ts
* chore: enable babel-ts in markdown and worker.js
* verify all TS tests against babel-ts except disabled by disableBabelTS
* support for TSDeclareMethod; fix abstract properties and methods
* fix embedded angular templates and styles
* fix TSImportType
* simplify babel options combinations
* fix method decorators
* fix ranges
* work around loc inconsistencies for SequenceExpression
* don't print trailing comma in type parameters (unsupported in TS < 3.3)
* preserve quotes for class properties
* align printing of single-parameter functions
* fix comments in degenerate single-element unions and intersections
* fix comments for methods
* fix comments for mapped types
* edit docs, change 'since' to 2.0.0
* add changelog
* fix code sample on playground
* update snapshots after rebase
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-01-29 14:11:16 +02:00
Panayiotis Lipiridis
0c51368d33
Merge branch 'master' of github.com:prettier/prettier into next
...
* 'master' of github.com:prettier/prettier:
Clarify API docs (#7402 )
Fix typo (#7425 )
[docs] Add Tidelift to cspell.json
website: add Tidelift enterprise language (#7424 )
Use BOM string instead of BOM charCode (#7420 )
2020-01-29 13:45:45 +02:00
Alexander Kachkaev
e00ce8c2c8
Change arrowParens to always by default for 2.0 ( #7430 )
2020-01-29 13:31:25 +02:00
fisker Cheung
ebd0c6d605
Remove useless argument in editorconfig load function ( #7459 )
2020-01-29 12:51:05 +03:00
dependabot-preview[bot] and Georgii Dolzhykov
f40fcba710
Bump angular-html-parser from 1.3.0 to 1.4.0 ( #7461 )
...
* Bump angular-html-parser from 1.3.0 to 1.4.0
Bumps [angular-html-parser](https://github.com/ikatyang/angular-html-parser ) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/ikatyang/angular-html-parser/releases )
- [Changelog](https://github.com/ikatyang/angular-html-parser/blob/master/CHANGELOG.md )
- [Commits](https://github.com/ikatyang/angular-html-parser/compare/v1.3.0...v1.4.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* add test for #5810
closes #5810
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-01-29 12:47:59 +03:00
fisker Cheung
e4e1b3ec5b
Always set parser bundle target to universal ( #7455 )
...
* Always set parser bundle target to `universal`
* Allow override
2020-01-29 12:45:57 +03:00
dependabot-preview[bot]
52cc26e5af
Bump terser-webpack-plugin from 2.3.2 to 2.3.3 ( #7462 )
...
Bumps [terser-webpack-plugin](https://github.com/webpack-contrib/terser-webpack-plugin ) from 2.3.2 to 2.3.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/v2.3.2...v2.3.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-29 04:50:16 +02:00
dependabot-preview[bot]
97abc6ac41
Bump html-element-attributes from 2.2.0 to 2.2.1 ( #7444 )
...
Bumps [html-element-attributes](https://github.com/wooorm/html-element-attributes ) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/wooorm/html-element-attributes/releases )
- [Commits](https://github.com/wooorm/html-element-attributes/compare/2.2.0...2.2.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-29 04:49:41 +02:00
dependabot-preview[bot]
e14da4466b
Bump cross-env from 6.0.3 to 7.0.0 ( #7446 )
...
Bumps [cross-env](https://github.com/kentcdodds/cross-env ) from 6.0.3 to 7.0.0.
- [Release notes](https://github.com/kentcdodds/cross-env/releases )
- [Changelog](https://github.com/kentcdodds/cross-env/blob/master/CHANGELOG.md )
- [Commits](https://github.com/kentcdodds/cross-env/compare/v6.0.3...v7.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-29 04:49:26 +02:00
fisker Cheung
23079c461e
Update babel target ( #7418 )
2020-01-29 09:03:36 +09:00
dependabot-preview[bot]
4a4bd249c6
Bump @glimmer/syntax from 0.41.0 to 0.47.1 ( #7448 )
...
Bumps [@glimmer/syntax](https://github.com/glimmerjs/glimmer-vm ) from 0.41.0 to 0.47.1.
- [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.41.0...v0.47.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-29 00:19:56 +02:00
Alexander Kachkaev
1b3a5d3572
Change endOfLine to lf by default for 2.0 ( #7435 )
...
* Towards changing default value for endOfLine
* Update tests and snapshots
* Add placeholder for changelog_unreleased
* Add CHANGELOG
* Undo adding snapshot tests for auto as it does not play well on Windows in CI
* Tweak changelog
* Update jest snapshot
2020-01-28 23:35:47 +02:00
fisker Cheung and dependabot-preview[bot]
d0f0bac976
Bump @glimmer/syntax from 0.41.0 to 0.47.0 ( #7443 )
...
* Bump @glimmer/syntax from 0.41.0 to 0.47.0
Bumps [@glimmer/syntax](https://github.com/glimmerjs/glimmer-vm ) from 0.41.0 to 0.47.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.41.0...v0.47.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* fix build script
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-01-28 21:53:29 +02:00
dependabot-preview[bot]
b63e3f22a1
Bump rimraf from 3.0.0 to 3.0.1 ( #7453 )
...
Bumps [rimraf](https://github.com/isaacs/rimraf ) from 3.0.0 to 3.0.1.
- [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.0...v3.0.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-28 21:25:37 +02:00
fisker Cheung
c493bdef8d
Update mem to v6 ( #7260 )
...
* Style: use async for `editorconfigAsyncNoCache`
* Update `mem` to v6
* Fix usage of `mem`
* Fix: add `await`
* Use JSON.stringify
2020-01-28 19:10:01 +02:00
Alexander Kachkaev
210db4700c
Document changes in 6963 ( #7441 )
...
* Document 6963
* Minor tweaks
* Minor edit
* Add a note on the changed default value in options.md to keep things in sync
2020-01-28 19:09:06 +02:00
fisker Cheung
f11a94befd
Simplify createUsage ( #7439 )
...
* Simplify `createUsage`
* restore some change
2020-01-28 18:56:36 +02:00
fisker Cheung
ccb38118b5
Minor tweak ( #7440 )
...
* Simplify `isExportDeclaration`
* move `isExportDeclaration` and `getParentExportDeclaration` to `language-js/utils.js`
2020-01-28 18:55:00 +02:00
dependabot-preview[bot]
18c3c120b9
Bump graphql from 14.5.8 to 14.6.0 ( #7449 )
...
Bumps [graphql](https://github.com/graphql/graphql-js ) from 14.5.8 to 14.6.0.
- [Release notes](https://github.com/graphql/graphql-js/releases )
- [Commits](https://github.com/graphql/graphql-js/compare/v14.5.8...v14.6.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-28 18:37:56 +02:00
dependabot-preview[bot]
2046c769a8
Bump flow-parser from 0.116.1 to 0.117.0 ( #7450 )
...
Bumps [flow-parser](https://github.com/facebook/flow ) from 0.116.1 to 0.117.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.116.1...v0.117.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-28 18:37:40 +02:00
dependabot-preview[bot]
6fe115b791
Bump concurrently from 5.0.2 to 5.1.0 in /website ( #7451 )
...
Bumps [concurrently](https://github.com/kimmobrunfeldt/concurrently ) from 5.0.2 to 5.1.0.
- [Release notes](https://github.com/kimmobrunfeldt/concurrently/releases )
- [Commits](https://github.com/kimmobrunfeldt/concurrently/compare/v5.0.2...v5.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-28 18:37:03 +02:00
dependabot-preview[bot]
436befb8a0
Bump cspell from 4.0.44 to 4.0.46 ( #7445 )
...
Bumps [cspell](https://github.com/streetsidesoftware/cspell ) from 4.0.44 to 4.0.46.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases )
- [Commits](https://github.com/streetsidesoftware/cspell/compare/cspell@4.0.44...cspell@4.0.46 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-28 18:36:43 +02:00
dependabot-preview[bot]
14b5f5b201
Bump rollup from 1.29.1 to 1.30.1 ( #7454 )
...
Bumps [rollup](https://github.com/rollup/rollup ) from 1.29.1 to 1.30.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.29.1...v1.30.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-28 18:35:52 +02:00
fisker Cheung
93f71d499a
Setup github actions ( #7321 )
2020-01-25 16:22:29 +02:00
dependabot-preview[bot]
638a01ecd1
Bump html-tag-names from 1.1.4 to 1.1.5 ( #7426 )
...
Bumps [html-tag-names](https://github.com/wooorm/html-tag-names ) from 1.1.4 to 1.1.5.
- [Release notes](https://github.com/wooorm/html-tag-names/releases )
- [Commits](https://github.com/wooorm/html-tag-names/compare/1.1.4...1.1.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-25 16:19:59 +02:00
Jack Steam and Georgii Dolzhykov
a858a315e9
Clarify API docs ( #7402 )
...
* Clarify API docs
It is not immediately obvious how to set the language (parser), hopefully this will save others time.
* improve wording
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-01-25 16:19:42 +02:00
Alex Grover
0089ad5c43
Fix typo ( #7425 )
2020-01-25 16:19:10 +02:00
Lucas Duailibe
613dd502fe
[docs] Add Tidelift to cspell.json
2020-01-23 19:10:46 -03:00
Blaine Bublitz
b7571ad017
website: add Tidelift enterprise language ( #7424 )
2020-01-23 18:52:24 -03:00
fisker Cheung
c0517441b2
Enable unicorn/prefer-string-slice ( #7251 )
2020-01-23 15:15:28 +03:00
dependabot-preview[bot]
d6a51d34dd
Bump codecov from 3.6.1 to 3.6.2 ( #7421 )
...
Bumps [codecov](https://github.com/codecov/codecov-node ) from 3.6.1 to 3.6.2.
- [Release notes](https://github.com/codecov/codecov-node/releases )
- [Commits](https://github.com/codecov/codecov-node/compare/v3.6.1...v3.6.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-23 13:41:03 +02:00
dependabot-preview[bot]
0eeeac50de
Bump resolve from 1.14.2 to 1.15.0 ( #7422 )
...
Bumps [resolve](https://github.com/browserify/resolve ) from 1.14.2 to 1.15.0.
- [Release notes](https://github.com/browserify/resolve/releases )
- [Commits](https://github.com/browserify/resolve/compare/v1.14.2...v1.15.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-23 13:40:46 +02:00
fisker Cheung
9d9b4a15e5
Use BOM string instead of BOM charCode ( #7420 )
...
* Use BOM string instead of BOM charCode
* Trigger CI
2020-01-23 13:40:05 +02:00
fisker Cheung
27b5cb4d9d
Enable ESLint prefer-rest-params rule ( #7400 )
2020-01-23 10:36:18 +02:00
Georgii Dolzhykov
6f1ed54206
fix tests on Windows: drive letter case returned by process.cwd() depends on environment ( #7409 )
2020-01-23 10:34:53 +02:00
fisker Cheung
e7f3cfd684
Simplify getLast ( #7267 )
2020-01-22 17:30:25 +03:00
dependabot-preview[bot]
5815e8de06
Bump jest from 24.9.0 to 25.1.0 ( #7415 )
...
Bumps [jest](https://github.com/facebook/jest ) from 24.9.0 to 25.1.0.
- [Release notes](https://github.com/facebook/jest/releases )
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/facebook/jest/compare/v24.9.0...v25.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-22 15:59:43 +02:00
fisker Cheung and Georgii Dolzhykov
0e17ba0fe1
Update chalk to v3 ( #7259 )
...
* Update `chalk` to v3
* Shim `tty`
* add tty to EXTERNALS in bundler.js
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-01-22 15:36:07 +02:00
Georgii Dolzhykov
37a7e9cd42
Merge branch 'master' into next
2020-01-22 14:55:22 +02:00
dependabot-preview[bot]
af694a70d5
Bump jest-docblock from 24.9.0 to 25.1.0 ( #7411 )
...
Bumps [jest-docblock](https://github.com/facebook/jest/tree/HEAD/packages/jest-docblock ) from 24.9.0 to 25.1.0.
- [Release notes](https://github.com/facebook/jest/releases )
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/facebook/jest/commits/v25.1.0/packages/jest-docblock )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-22 12:24:26 +02:00
dependabot-preview[bot]
d70d7fbd89
Bump typescript from 3.7.4 to 3.7.5 ( #7412 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 3.7.4 to 3.7.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.7.4...v3.7.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-22 12:23:22 +02:00
dependabot-preview[bot]
f7c07b9db2
Bump flow-parser from 0.116.0 to 0.116.1 ( #7413 )
...
Bumps [flow-parser](https://github.com/facebook/flow ) from 0.116.0 to 0.116.1.
- [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.116.0...v0.116.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-22 12:23:09 +02:00
dependabot-preview[bot]
ff545eb41d
Bump eslint-plugin-react from 7.17.0 to 7.18.0 ( #7414 )
...
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react ) from 7.17.0 to 7.18.0.
- [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.17.0...v7.18.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-22 12:22:53 +02:00
dependabot-preview[bot]
b05ff97467
Bump rollup from 1.29.0 to 1.29.1 ( #7410 )
...
Bumps [rollup](https://github.com/rollup/rollup ) from 1.29.0 to 1.29.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.29.0...v1.29.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-22 12:22:35 +02:00
fisker Cheung
07b9465dcf
website: remove eslint-disable in landing.js ( #7329 )
2020-01-21 22:23:45 +02:00
Georgii Dolzhykov
8efa29ca0c
fix object literal checks in isSimpleCallArgument ( #7403 )
2020-01-21 17:55:43 +02:00
fisker Cheung
e8009fa102
GraphQL: improve detection of separator between interfaces ( #7305 )
2020-01-21 13:18:53 +02:00
Masashi Hirano
bc31b13b9c
Upgrade Node.js version and drop mkdirp ( #7302 )
2020-01-21 13:00:37 +03:00
dependabot-preview[bot]
4a8ffe8269
Bump codemirror from 5.50.2 to 5.51.0 in /website ( #7404 )
...
Bumps [codemirror](https://github.com/codemirror/CodeMirror ) from 5.50.2 to 5.51.0.
- [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.50.2...5.51.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-21 10:34:41 +02:00
dependabot-preview[bot]
13297dba21
Bump @typescript-eslint/typescript-estree from 2.11.0 to 2.17.0 ( #7406 )
...
Bumps [@typescript-eslint/typescript-estree](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-estree ) from 2.11.0 to 2.17.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.17.0/packages/typescript-estree )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-21 10:34:27 +02:00