Commit Graph

3277 Commits (3d52ab70167fc5a8f21b5ebdaf2cfdb54e5e0471)

Author SHA1 Message Date
Zaven Muradyan 3d52ab7016 Gracefully handle nonexistent paths passed to --stdin-filepath. (#6687)
Co-authored-by: Simon Lydell <simon.lydell@gmail.com>
2019-11-02 15:56:26 +01:00
Anders Kaseorg 0acc3120ef cli: Handle errors when reading stdin (#6708)
Co-authored-by: Simon Lydell <simon.lydell@gmail.com>
2019-11-02 13:53:13 +01:00
Georgii Dolzhykov 1490536054 merge similar entries in CHANGELOG.unreleased.md (#6782) 2019-11-02 10:40:41 +01:00
Dang Mai f6bd59dfd3 Allow plugin to specify option with type `string` (#6219) 2019-11-02 09:52:49 +01:00
fisker Cheung 545a712dc0 Revert #6333 (#6721) 2019-11-02 09:47:16 +01:00
fisker Cheung 491038d693 Run CI on node 12 (#6738) 2019-11-02 09:45:56 +01:00
Chris Brody e50ad942b7 Start JSDoc type linting (#6770)
Co-Authored-By: Christopher J. Brody <chris@brody.consulting>
Co-Authored-By: Christopher Quadflieg <christopher.quadflieg@adsoul.com>
Co-Authored-By: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2019-11-02 09:44:27 +01:00
Sosuke Suzuki cf32f29d41 Flow: Keep parentheses wrap specific FunctionTypeAnnotation (#6717)
Co-Authored-By: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2019-11-02 09:39:18 +01:00
Mary a28e5c94c4 prettier-emacs is actually prettier-js-mode (#6653) 2019-11-02 09:17:13 +01:00
fisker Cheung 159566798d Move `multiple-patterns` tests to `patterns` (#6777) 2019-11-01 18:02:34 +01:00
Georgii Dolzhykov ea6ae31ba0
test: fix a FIXME, add typescript (#6744)
* test: fix a FIXME, add typescript

* tests/es6modules

* tests/no-semi

* tests/array_spread
2019-11-01 18:43:03 +02:00
fisker Cheung e66e34a435 Update `string-width` to v4 (#6544) 2019-11-01 15:43:12 +02:00
fisker Cheung 90cb3c268d Fix spellcheck script (#6774) 2019-11-01 07:49:35 +01:00
dependabot-preview[bot] d47c77e9e9 Bump rollup from 1.21.4 to 1.26.0 (#6752)
Bumps [rollup](https://github.com/rollup/rollup) from 1.21.4 to 1.26.0.
- [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.21.4...v1.26.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-31 15:01:59 +02:00
dependabot-preview[bot] 318568e22a Bump execa from 1.0.0 to 3.2.0 (#6758)
Bumps [execa](https://github.com/sindresorhus/execa) from 1.0.0 to 3.2.0.
- [Release notes](https://github.com/sindresorhus/execa/releases)
- [Commits](https://github.com/sindresorhus/execa/compare/v1.0.0...v3.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-31 14:19:15 +02:00
dependabot-preview[bot] 246972c086 Bump @babel/parser from 7.6.3 to 7.6.4 (#6757)
Bumps [@babel/parser](https://github.com/babel/babel) from 7.6.3 to 7.6.4.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.6.3...v7.6.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-31 14:18:11 +02:00
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