-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don’t break chains if they fit on one line & they were written that way #4765
Conversation
This is interesting. I'm not sure yet what I think about it. Would be nice to make all the examples that were written in the issues go through this PR and see how they look like now. |
And add them as snapshots! :D |
Turns out `node.loc.start` is an object, not a number.
I expect this will fix a lot of the complaints we've had about breaking chains in enzyme tests, too |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking the time to submit a concrete change/proposal!
@stephenh The snapshots also contain the inputs (original code). The formatted parts are below “~~~~~~~~” |
@duailibe ah shoot, sorry, newbie mistake. Thanks! You're right, I'd assumed the snapshot was only formatted/expected output. Might be nice to have smaller |
Any ideas why Travis and Appveyor can’t see the relevant snapshots? |
Is this PR still active? Would be really good to see this feature merged in! (I hate how prettier currently deals with chained methods...) |
Sorry I've been missing I'll review it this weekend |
@@ -70,10 +70,7 @@ let tests = [ | |||
hmac.update(buf, "utf8"); // 1 error: no encoding when passing a buffer | |||
|
|||
// it's also chainable | |||
(hmac |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I liked the original.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you like it better on multiple lines, you can manually break it and it’ll stay that way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the thing though, If I was writing it I'd (hopefully) understand it and probably want it to be on one line. But the next person to read the code would have found it more readable when split onto multiple lines 😉. Part of the value of Prettier is making other people's code easier to read, less so your own.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally, I’d write it like was output before, since it’s doing multiple things instead of retrieving an object:
hmac
.update("some data to hash") // add some data
.update(buf) // add some more data
.digest() // get the hash
With this PR, that format would be preserved, with or without the comments.
Looking forward for this feature to be merged 👍 |
I believe Travis/AppVeyor is based on the master branch while Circle is based on the original branch. Travis/AppVeyor: git clone https://github.com/prettier/prettier
git fetch origin +refs/pull/4765/merge:
git checkout -f FETCH_HEAD Circle: git clone https://github.com/prettier/prettier
git fetch --force origin "pull/4765/head:remotes/origin/pull/4765"
git reset --hard "$CIRCLE_SHA1"
git checkout -B "$CIRCLE_BRANCH"
git reset --hard "$CIRCLE_SHA1"
|
First of all I really like prettier. This implementation would fix my only concern about using prettier. For example: I have this very easy to read if statement if ($(el).attr("href").includes("/wiki/")) {
...
} And prettier turns it into if (
$(el)
.attr("href")
.includes("/wiki/")
) {
...
} I like the first one waaay more. Let's just say we are nesting some if statements: if (
$(el)
.attr("href")
.includes("/wiki/")
) {
if (
$(el)
.attr("xyz")
.includes("/whatever/")
) {
if (
$(el)
.attr("hello")
.includes("/world/")
) {
...
}
}
} .. could be turned into: if ($(el).attr("href").includes("/wiki/")) {
if ($(el).attr("xyz").includes("/whatever/")) {
if ($(el).attr("hello").includes("/world/")) {
...
}
}
} I think that the majority would prefer the compact one-line version. ButThe point that we use prettier on other peoples code is solid. Yes we do not want them to decide the style. We want to use prettier and reformat all of their code to a readable version of it. I guess one way to implement this is with a config option.
I really like this approach. Prettier wouldn't decide on the users code then. As much as I'd like to have prettier format the code in my way, I agree with @azz that this is not how prettier should work. There are other formatters for that. Prettier should format every piece of code to the same result (if the same config is given). TLDR:
Seems like a good solution for me. |
Hi 👋 Total Prettier newbie here. I really dig the "ctrl+s and let the machine take care of formatting" approach that Prettier endorses, and i want to incorporate it in my everyday usage 🙂. But when integrating Prettier on some small projects, i noticed these sort of formatting choices related to either splitting single-line expressions (below the I think the approach proposed in this PR would be better for Prettier than the current behavior. As a simple example, i had this function on a little project: // Parses a string like '321' into [1, 2, 3]
const parseNumbers = s => s.split('').map(Number).sort() Which Prettier formatted as: const parseNumbers = s =>
s
.split('')
.map(Number)
.sort() This function is inside the scope of a bigger function, and i intended it to be just a simple detail. Therefore the implementation as a succinct one-liner. To me, Prettier's re-formatting of this function is problematic for various reasons:
Expanding a bit on the last point, which i think is the most important, deciding whether a single piece of code ("statement", "expression") should be split into multiple simpler ones or not is a core part of programming. It's not the same as a menial formatting adding spaces between operators, which i think everyone using Prettier agrees should be automated 🙂 For example, a statement like: me.eat(new Cake(getCakeIngredients())) Could safely be written as: const ingredients = getCakeIngredients()
const theWholeCake = new Cake(ingredients)
me.eat(theWholeCake) For the computer, they behave exactly the same. But for human readers, i could imagine cases where either of these styles would be preferable. Each has its pros and cons. For example, if i wanted to debug line-by-line, or to emphasize that i'm eating the whole cake, i would prefer the second example. But if that What i'm really sure is that nobody would expect an automatic tool deciding to transform the first snippet into the second one or vice-versa. For now at least, it's part of a human programmer's job to make that decision, and maybe for tools to assist them in that if necessary. On a similar vein, i wouldn't want a an automatic tool transforming this: me
.grabCakeIngredients()
.prepareCake()
.eat() Into this: me.grabCakeIngredients().prepareCake().eat() Or vice-versa. If the programmer wrote it in separate lines, it's because they wanted to communicate that each method is to be thought as a "separate step". Whereas if they decided to write it on a single line they want to communicate that this chain is to be considered a single operation. Leaving aside the eating cake example, it's easy to imagine examples for either case. As a bad analogy, i think there's not so much controversy with other formatting rules of Prettier because they are like fixing punctuation errors or typos on prose. It's very useful to have a tool that fixes those automatically. But the rule of splitting method chains into multiple lines is like splitting longish sentences into many short ones. Maybe useful for a tool to notice, but not its decision to make 🙂 Or, putting this in another way, and quite more bluntly: do you think there would be as many requests to change the formatting of chained method calls if the original rule was the one proposed on this PR? |
Please make this change. I'm considering using Prettier because we're bringing on someone who uses it, but I can't stomach splitting chains into multiple lines. |
Can't wait for this... |
Splitting chaining calls are against to what Prettier suggests.
When it comes to fluent api, Prettier is fitting almost no code into every line. |
I may have overlooked it, but has no one proposed to make the number of chain components configurable? That is:
This would also allow to configure only s specific part of the repo differently with file overrides. For example, test files tend differ in coding style from other files as mentioned before. If I can allow long chains in tests, that would already be a huge win. |
Any progress on this? And do not get thi swhy 3? Why cannot be just config propertybecause my team want to have all shained methods on separate line. |
* Update eslint config * Applied linter to lib * Applied eslint config to CliClient/app * Removed prettier due to prettier/prettier#4765 * First pass on test units * Applied linter config to test units * Applied eslint config to clipper * Applied to plugin dir * Applied to root of ElectronClient * Applied on RN root * Applied on CLI root * Applied on Clipper root * Applied config to tools * test hook * test hook * test hook * Added pre-commit hook * Applied rule no-trailing-spaces * Make sure root packages are installed when installing sub-dir * Added doc
Please guys, this is much needed! |
The problem here is really similar to the one from #6033, isn't it? So I think changing the current heuristic in the spirit of #6033 (like also mentioned in this comment) should do the trick. A bit more sophisticated option: use the |
Pretty please, prettier please! |
Is there any status update on this? It's the most upvoted issue on the repo here. I am wondering if this pull is unofficially declined now? |
this commit includes no prettier functionality changes, so that diffs will be easily visible. specifically: * prettier#4125 * prettier#4765 * prettier#1565 * prettier#3107
Any chances this'll ever get merged? Its been 16 months already 🙄 |
this commit includes no prettier functionality changes, so that diffs will be easily visible. specifically: * prettier#4125 * prettier#4765 * prettier#1565 * prettier#3107
this commit includes no prettier functionality changes, so that diffs will be easily visible. specifically: * prettier#4125 * prettier#4765 * prettier#1565 * prettier#3107
this commit includes no prettier functionality changes, so that diffs will be easily visible. specifically: * prettier#4125 * prettier#4765 * prettier#1565 * prettier#3107
* examples from various issues about method chaining this commit includes no prettier functionality changes, so that diffs will be easily visible. specifically: * #4125 * #4765 * #1565 * #3107 * add heuristic for breaking method chains * fix: remove unnecessary escape characters * initial non-regex isSimple implementation * handle babel literal types properly found here: https://github.com/babel/babel/blob/fe258dec047f473fb5a35172b2ff8cb172051dec/packages/babel-parser/ast/spec.md * template literal + test * use !every instead of some(!) * fix: some test cases * fix: object expressions and some more simple node types * some test cases showing need for depth check * depth check * update test to test thing it's supposed to test * optional expressions * test case for missing isSimple depth * fix isSimple depth bug * fix: comment check * test for ts non-null operator * make object properties behave similarly to arrays * isSimple -> isSimpleCallArgument; move to utils; add unaries * add Import to the list of simple things * only short regexps to be considered simple (<= 5 chars) * add changelog entry in the new format * update snapshots Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
Closing this since #6685 has been merged. |
@thorn0 it will be released with 2.0? |
Previous discussions seemd to imply that pre-existing line breaks should have been preserved. IMO: it's now as annoying as before for a different set of use-cases, notably fluent APIs. As a library author with dozen builder types libs with fluent apis, hundreds of files are now beeing reformated in a non consistent / weird and not readable way. I now need to go and edit all those files to add comments in the middle of each chain to ensure lines are broken correctly. Is there a way to keep using the previous heuristic ? here is an example I'm editing right now : domain.concept('Page').val('title', 'string').vals('widgets', 'Widget')
domain
.concept('Widget')
.val('title', 'string')
.val('color', 'Color')
.val('foo', 'Foo')
.val('bar', 'Bar')
domain.concept('Widget').val('title', 'string').val('color', 'Color') here is what it used to be domain
.concept('Page')
.val('title', 'string')
.vals('widgets', 'Widget')
domain
.concept('Widget')
.val('title', 'string')
.val('color', 'Color')
.val('foo', 'Foo')
.val('bar', 'Bar')
domain // <-- I now manually add a comment here
.concept('Widget')
.val('title', 'string')
.val('color', 'Color') some people warned about this before with upvotes.
example mentioned above:
vs
|
@hwalinga @RikJansen81 and others => discussion is happening here: #7884 (comment) your feedback there would be very much appreciated :) |
Merge branch 'master' of github.com:prettier/prettier into next * 'master' of github.com:prettier/prettier: (43 commits) Update `postcss-less` to v2 (#6778) Show invalid config filename in error message (#6865) Change external links to https (#6874) Bump @babel/parser from 7.7.0 to 7.7.2 (#6862) Fix nullish coalescing parenthesis with mixed logical operators (#6863) Remove handlebars@4.4.5 requirement in yarn.lock (#6867) Update browerslist in yarn.lock (#6868) fix formatting of comments in flow enums (#6860) better formatting for AwaitExpression in CallExpression/MemberExpression (#6856) Bump @typescript-eslint/typescript-estree from 2.6.0 to 2.6.1 (#6805) test: issue #6283 (#6855) audit(critical): handlebars@4.4.5 in package resolutions (#6853) Flow enums (#6833) Add mongo as a VS Code supported language (#6848) Bump `eslint` from 6.5.1 to 6.6.0 (#6846) Upgrade flow-parser from 0.89 to 0.111 (#6830) Bump @babel/preset-react from 7.6.3 to 7.7.0 in /website (#6827) Bump typescript from 3.7.1-rc to 3.7.2 (#6832) Bump rollup from 1.26.0 to 1.26.3 (#6821) update Babel to 7.7.0 and enable error recovery (#6816) ... Bump Prettier dependency to 1.19.1 Fix code block in changelog Add missing headings to changelog Fix bin permissions (#6902) Run CI on the `next` branch Merge remote-tracking branch 'upstream/master' into next Merge remote-tracking branch 'upstream/master' into next Update `fsevents` in yarn.lock (#6909) Drop Node.js 4 test on CI (#6907) refactoring: Babel's error recovery superseded option combinations (#6930) Bump unified from 8.4.1 to 8.4.2 (#6927) Bumps [unified](https://github.com/unifiedjs/unified) from 8.4.1 to 8.4.2. - [Release notes](https://github.com/unifiedjs/unified/releases) - [Changelog](https://github.com/unifiedjs/unified/blob/master/changelog.md) - [Commits](https://github.com/unifiedjs/unified/compare/8.4.1...8.4.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Bump jest-watch-typeahead from 0.4.0 to 0.4.2 (#6923) Bumps [jest-watch-typeahead](https://github.com/jest-community/jest-watch-typeahead) from 0.4.0 to 0.4.2. - [Release notes](https://github.com/jest-community/jest-watch-typeahead/releases) - [Changelog](https://github.com/jest-community/jest-watch-typeahead/blob/master/CHANGELOG.md) - [Commits](https://github.com/jest-community/jest-watch-typeahead/compare/v0.4.0...v0.4.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Merge branch 'master' of github.com:prettier/prettier into next * 'master' of github.com:prettier/prettier: (31 commits) Bump jest-watch-typeahead from 0.4.0 to 0.4.2 (#6923) Bump unified from 8.4.1 to 8.4.2 (#6927) refactoring: Babel's error recovery superseded option combinations (#6930) Update `fsevents` in yarn.lock (#6909) Run CI on the `next` branch Fix bin permissions (#6902) Add missing headings to changelog Fix code block in changelog Bump Prettier dependency to 1.19.1 Release 1.19.1 Quick-fix for stdin being broken in 1.19.0 (#6894) Fix `since` version for `vueIndentScriptAndStyle` (#6897) Remove out-of-date comment fix formatting of union type as arrow function return type (#6896) Try to fix some code blocks in 1.19.0 blog post Blog post, changelog and docs for 1.19 (#6787) Bump Prettier dependency to 1.19.0 Release 1.19.0 prettier 1.19.0-beta.1 deduplicate entries in yarn.lock - part 2 (#6884) ... Merge branch 'next' of github.com:prettier/prettier into next * 'next' of github.com:prettier/prettier: Drop Node.js 4 test on CI (#6907) Remove typescript-etw from build (#6919) Co-authored-by: Jed Fox <git@twopointzero.us> SCSS: don't add extra comma after last comment in map (#6918) TypeScript: Fix formatting of type operators as arrow function… (#6901) Add the XML plugin to the docs (#6944) Create SECURITY.md Rename SECURITY.md to .github/SECURITY.md Support string-to-package config in JSON schema: (#6941) Prettier supports having just a string in the config file to use a shared config from a package. Example: "@company/prettier-config" But the JSON schema generated by running `node scripts/generate-schema.js` did not include that possibility. See https://github.com/SchemaStore/schemastore/pull/855 for more information. Update build scripts to target Node.js 10 (#6908) Don't lowercase element names in CSS selectors (#6947) Fixes #5788. Merge branch 'master' of github.com:prettier/prettier into next * 'master' of github.com:prettier/prettier: Don't lowercase element names in CSS selectors (#6947) Support string-to-package config in JSON schema: (#6941) Rename SECURITY.md to .github/SECURITY.md Create SECURITY.md Add the XML plugin to the docs (#6944) TypeScript: Fix formatting of type operators as arrow function… (#6901) SCSS: don't add extra comma after last comment in map (#6918) Remove typescript-etw from build (#6919) Update `snapshot-diff` to v0.6.1 (#6955) * update `snapshot-diff` to 0.6.1 * update snapshot Disable trailingComma for Angular internal parser (#6912) Style: use async functions (#6935) fix: issue #6813 (Zero-based lists are broken) (#6852) Fix MDX html parsing errors (#6949) * Fix MDX html parsing errors For MDX wrap JSX parsing in a fragment before sending it of to babel for parsing and formatting. In MDX adjacent JSX tags are permitted in the root. An option sent to the babel parser omits printing the root fragment and instead just prints its children. Solves #6943 * an attempt to address JounQin's comments * use <$>...</$> instead of <>...</> * refactoring fix: tests for empty type parameters in TS (#6960) Merge branch 'master' into next Bump react-dom from 16.11.0 to 16.12.0 in /website (#6958) Bumps [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom) from 16.11.0 to 16.12.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.12.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> Fix a code example in docs (#6890) Update stable docs Bump react from 16.11.0 to 16.12.0 in /website (#6959) Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react) from 16.11.0 to 16.12.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.12.0/packages/react) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> Remove `prettylint` (#6978) Fix redundant parens around JSX inside NewExpressions (#6980) Bump postcss-values-parser from 1.5.0 to 2.0.1 (#6804) Bumps [postcss-values-parser](https://github.com/shellscape/postcss-values-parser) from 1.5.0 to 2.0.1. - [Release notes](https://github.com/shellscape/postcss-values-parser/releases) - [Commits](https://github.com/shellscape/postcss-values-parser/compare/v1.5.0...v2.0.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> Replace `indexOf` with `includes` (#6967) * Replace `indexOf` with `includes` * Add `unicorn/prefer-includes` Fix `new` usage for builtin objects (#6968) Enable `replace-array-includes-with-indexof` for all bundles (#6982) Fix babel includes plugin (#6985) Switch `rollup-plugin-json` to `@rollup/plugin-json` (#6987) Fix handling comments in labeled statements (#6984) Set `trailingComma` default value to `es5` (#6963) * Set `trailingComma` default value to `es5` * Update `options` documentation * Update tests * style * fix js code style * change options order * update tests_integration snap * disable es5 for __ng_interpolation * fix angular tests * fix scss test * fix `css_trailing_comma` snap * fix css_scss snapshot Bump @typescript-eslint/typescript-estree from 2.6.1 to 2.7.0 (#6989) Bumps [@typescript-eslint/typescript-estree](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-estree) from 2.6.1 to 2.7.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.7.0/packages/typescript-estree) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> fix: format JSX Fragment correctly, consider Fragment as block (#6398) Bump flow-parser from 0.111.3 to 0.112.0 (#6990) * Bump flow-parser from 0.111.3 to 0.112.0 Bumps [flow-parser](https://github.com/facebook/flow) from 0.111.3 to 0.112.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.111.3...v0.112.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * remove workaround for fixed issue Bump eslint-config-prettier from 6.5.0 to 6.6.0 (#6991) Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.5.0 to 6.6.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.5.0...v6.6.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> Bump execa from 3.2.0 to 3.3.0 (#6992) Bumps [execa](https://github.com/sindresorhus/execa) from 3.2.0 to 3.3.0. - [Release notes](https://github.com/sindresorhus/execa/releases) - [Commits](https://github.com/sindresorhus/execa/compare/v3.2.0...v3.3.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> [Security] Bump https-proxy-agent from 2.2.1 to 2.2.4 (#6999) Bumps [https-proxy-agent](https://github.com/TooTallNate/node-https-proxy-agent) from 2.2.1 to 2.2.4. **This update includes security fixes.** - [Release notes](https://github.com/TooTallNate/node-https-proxy-agent/releases) - [Commits](https://github.com/TooTallNate/node-https-proxy-agent/compare/2.2.1...2.2.4) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Replace `trim{Left,Right}` with `trim{Start,End}` (#6994) Bump eslint-config-prettier from 6.6.0 to 6.7.0 (#7003) Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.6.0 to 6.7.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/commits) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> Bump @angular/compiler from 8.2.13 to 8.2.14 (#7004) Bumps [@angular/compiler](https://github.com/angular/angular) from 8.2.13 to 8.2.14. - [Release notes](https://github.com/angular/angular/releases) - [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md) - [Commits](https://github.com/angular/angular/compare/8.2.13...8.2.14) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> Update `jest` to v24 (#6954) * Update `jest` to v24 * run test on linux and windows * fix regexp for macOS * fix color problem * restore asserts * update yarn.lock * fix status assert tests(handlebars): Move a test to handlebars folder (#6962) This looks like a file left behind during a rebase. Let's move it to a more logical location. test: css-in-js (#7005) refactoring: tokens requested from TS parser were immediately dismissed (#7008) Bump @typescript-eslint/typescript-estree from 2.7.0 to 2.8.0 (#7017) Bumps [@typescript-eslint/typescript-estree](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-estree) from 2.7.0 to 2.8.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.8.0/packages/typescript-estree) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Ignore test files (#7018) Bump rollup from 1.26.3 to 1.27.2 (#7016) Bumps [rollup](https://github.com/rollup/rollup) from 1.26.3 to 1.27.2. - [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.26.3...v1.27.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> preserve parentheses for JSDoc type casting with extra spaces a… (#7011) Bump docusaurus from 1.14.0 to 1.14.1 in /website (#7023) Bumps [docusaurus](https://github.com/facebook/docusaurus) from 1.14.0 to 1.14.1. - [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.14.0...v1.14.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> TypeScript: print JSDoc-only types (#7020) * TypeScript: print JSDoc-only types * add changelog Bump rollup from 1.27.2 to 1.27.3 (#7025) Bumps [rollup](https://github.com/rollup/rollup) from 1.27.2 to 1.27.3. - [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.27.2...v1.27.3) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> fix unstable formatting of logical expressions (#7026) Bump docusaurus from 1.14.1 to 1.14.2 in /website (#7030) Bumps [docusaurus](https://github.com/facebook/docusaurus) from 1.14.1 to 1.14.2. - [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.14.1...v1.14.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> fix formatting of logical and binary expressions in template literals (#7010) Bump resolve from 1.12.0 to 1.12.2 (#7032) Bumps [resolve](https://github.com/browserify/resolve) from 1.12.0 to 1.12.2. - [Release notes](https://github.com/browserify/resolve/releases) - [Commits](https://github.com/browserify/resolve/compare/v1.12.0...v1.12.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Bump @babel/preset-env from 7.7.1 to 7.7.4 (#7035) Bumps [@babel/preset-env](https://github.com/babel/babel) from 7.7.1 to 7.7.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.7.1...v7.7.4) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Bump @babel/parser from 7.7.3 to 7.7.4 (#7034) Bumps [@babel/parser](https://github.com/babel/babel) from 7.7.3 to 7.7.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.7.3...v7.7.4) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Bump rollup from 1.27.3 to 1.27.5 (#7047) Bumps [rollup](https://github.com/rollup/rollup) from 1.27.3 to 1.27.5. - [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.27.3...v1.27.5) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> Bump @babel/preset-env from 7.7.1 to 7.7.4 in /website (#7045) Bumps [@babel/preset-env](https://github.com/babel/babel) from 7.7.1 to 7.7.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.7.1...v7.7.4) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> Bump @babel/preset-react from 7.7.0 to 7.7.4 in /website (#7044) Bumps [@babel/preset-react](https://github.com/babel/babel) from 7.7.0 to 7.7.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.7.0...v7.7.4) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Bump @typescript-eslint/typescript-estree from 2.8.0 to 2.9.0 (#7054) Bumps [@typescript-eslint/typescript-estree](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-estree) from 2.8.0 to 2.9.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.9.0/packages/typescript-estree) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> Bump execa from 3.3.0 to 3.4.0 (#7059) Bumps [execa](https://github.com/sindresorhus/execa) from 3.3.0 to 3.4.0. - [Release notes](https://github.com/sindresorhus/execa/releases) - [Commits](https://github.com/sindresorhus/execa/compare/v3.3.0...v3.4.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> [ImgBot] Optimize images (#7056) Bump resolve from 1.12.2 to 1.13.1 (#7065) Bumps [resolve](https://github.com/browserify/resolve) from 1.12.2 to 1.13.1. - [Release notes](https://github.com/browserify/resolve/releases) - [Commits](https://github.com/browserify/resolve/compare/v1.12.2...v1.13.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> Fix a falling mustache issue (#7052) * Add a test highlighting the falling mustache issue * Use concat helper instead of manual concat * Fix the falling mustache issue * Add a CHANGELOG Bump eslint-plugin-react from 7.16.0 to 7.17.0 (#7071) Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.16.0 to 7.17.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.16.0...v7.17.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> JavaScript: Format ThrowStatement like ReturnStatement (#7070) Don't print trailing commas after rest elements in tuples (#7075) Bump rollup from 1.27.5 to 1.27.8 (#7078) Bumps [rollup](https://github.com/rollup/rollup) from 1.27.5 to 1.27.8. - [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.27.5...v1.27.8) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> Bump docusaurus from 1.14.2 to 1.14.3 in /website (#7076) Bumps [docusaurus](https://github.com/facebook/docusaurus) from 1.14.2 to 1.14.3. - [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.14.2...v1.14.3) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> Bump @typescript-eslint/typescript-estree from 2.9.0 to 2.10.0 (#7086) Bumps [@typescript-eslint/typescript-estree](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-estree) from 2.9.0 to 2.10.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.10.0/packages/typescript-estree) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> fix indentation in ternaries nested in conditions of other ternaries (#7087) * fix indentation in ternaries nested in conditions of other ternaries * fix giant indent when tabWidth=4 * refactoring: remove breakNested as it was always true * break between parens * add changelog * microfix * fix TS conditional types * Update pr-7087.md Bump jest-junit from 9.0.0 to 10.0.0 (#7092) Bumps [jest-junit](https://github.com/jest-community/jest-junit) from 9.0.0 to 10.0.0. - [Release notes](https://github.com/jest-community/jest-junit/releases) - [Commits](https://github.com/jest-community/jest-junit/compare/v9.0.0...v10.0.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> Bump flow-parser from 0.112.0 to 0.113.0 (#7095) * Bump flow-parser from 0.112.0 to 0.113.0 Bumps [flow-parser](https://github.com/facebook/flow) from 0.112.0 to 0.113.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.112.0...v0.113.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * remove unneeded workaround TypeScript: remove extra indentation for arrow function on variable declaration with comment (#7094) * Remove extra indent * add changelog * Fix postprocess for range of TypeScript * Remove locend from postprocess * Add test for no-smei * Remove hasLeadingComment Bump typescript from 3.7.2 to 3.7.3 (#7102) Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.7.2 to 3.7.3. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v3.7.2...v3.7.3) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> fix(typescript): align printing of comments in function types w… (#7104) * fix(typescript): align printing of comments in function types with Flow and Babel * add changelog * add tests for --no-semi Bump @babel/preset-env from 7.7.4 to 7.7.6 in /website (#7112) Bumps [@babel/preset-env](https://github.com/babel/babel) from 7.7.4 to 7.7.6. - [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.7.4...v7.7.6) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> Bump terser-webpack-plugin from 2.2.1 to 2.2.2 (#7113) Bumps [terser-webpack-plugin](https://github.com/webpack-contrib/terser-webpack-plugin) from 2.2.1 to 2.2.2. - [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.2.1...v2.2.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> refactoring: introduce path.match (#7108) Bump concurrently from 5.0.0 to 5.0.1 in /website (#7121) Bumps [concurrently](https://github.com/kimmobrunfeldt/concurrently) from 5.0.0 to 5.0.1. - [Release notes](https://github.com/kimmobrunfeldt/concurrently/releases) - [Commits](https://github.com/kimmobrunfeldt/concurrently/compare/v5.0.0...v5.0.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> tests: "Expected" and "Received" are mixed up in parser verification tests (#7125) Bump eslint-plugin-import from 2.18.2 to 2.19.1 (#7123) Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) from 2.18.2 to 2.19.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.18.2...v2.19.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> Bump @typescript-eslint/typescript-estree from 2.10.0 to 2.11.0 (#7127) Bumps [@typescript-eslint/typescript-estree](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-estree) from 2.10.0 to 2.11.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.11.0/packages/typescript-estree) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> Bump @babel/parser from 7.7.4 to 7.7.5 (#7134) Bumps [@babel/parser](https://github.com/babel/babel) from 7.7.4 to 7.7.5. - [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.7.4...v7.7.5) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Bump rollup from 1.27.8 to 1.27.12 (#7137) Bumps [rollup](https://github.com/rollup/rollup) from 1.27.8 to 1.27.12. - [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.27.8...v1.27.12) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> revert function composition logic for decorators (#7138) fixes #6953 Bump eslint-plugin-prettier from 3.1.1 to 3.1.2 (#7142) Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 3.1.1 to 3.1.2. - [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases) - [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md) - [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v3.1.1...v3.1.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> JavaScript: Fix moving semi for `return` to end of line-comment (#7140) * Modify to fix semi for return with comment * Add complex test case * Add null check * Add changelog Bump webpack from 4.41.2 to 4.41.3 in /website (#7145) Bumps [webpack](https://github.com/webpack/webpack) from 4.41.2 to 4.41.3. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](https://github.com/webpack/webpack/compare/v4.41.2...v4.41.3) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Bump rollup from 1.27.12 to 1.27.13 (#7146) Bumps [rollup](https://github.com/rollup/rollup) from 1.27.12 to 1.27.13. - [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.27.12...v1.27.13) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> Bump concurrently from 5.0.1 to 5.0.2 in /website (#7149) Bumps [concurrently](https://github.com/kimmobrunfeldt/concurrently) from 5.0.1 to 5.0.2. - [Release notes](https://github.com/kimmobrunfeldt/concurrently/releases) - [Commits](https://github.com/kimmobrunfeldt/concurrently/compare/v5.0.1...v5.0.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> Bump @babel/preset-env from 7.7.6 to 7.7.7 in /website (#7158) Bumps [@babel/preset-env](https://github.com/babel/babel) from 7.7.6 to 7.7.7. - [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.7.6...v7.7.7) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> Optimize some usage of `Array#filter` (#6996) Bump webpack from 4.41.3 to 4.41.4 in /website (#7164) Bumps [webpack](https://github.com/webpack/webpack) from 4.41.3 to 4.41.4. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](https://github.com/webpack/webpack/compare/v4.41.3...v4.41.4) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> Bump codemirror from 5.49.2 to 5.50.0 in /website (#7169) Bumps [codemirror](https://github.com/codemirror/CodeMirror) from 5.49.2 to 5.50.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.49.2...5.50.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> Refactor a few functions in glimmer printer (#7072) glimmer: Split ElementModifierStatement and MustacheStatement (#7156) Fixed ALE installation instruction (#7166) * Fixed ALE installation instruction Since the author of the Vim plugin ALE moved the repository to an organization account, the command used to download the plugin has changed from `Plug 'w0rp/ale'` to `Plug 'dense-analysis/ale'` * Fixed ALE urls Fixed all ALE urls in this document Bump webpack from 4.41.4 to 4.41.5 in /website (#7206) Bumps [webpack](https://github.com/webpack/webpack) from 4.41.4 to 4.41.5. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](https://github.com/webpack/webpack/compare/v4.41.4...v4.41.5) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> add test for ugly array key format (#7205) Bump codemirror from 5.50.0 to 5.50.2 in /website (#7214) Bumps [codemirror](https://github.com/codemirror/CodeMirror) from 5.50.0 to 5.50.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.50.0...5.50.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com> Markdown: fix HTML formatting broken if the beginning tag start… (#7181) * fix markdown formatting broken if the beginning html tag starts after a list item * add test for beginning-tag-after-a-list-item in markdown_html * add changelog_unreleased of pr-7181 * fix test of ast breaking for beginning-tag-after-a-list-item * update changelog_unreleased pr-7181 * fix changelog_unreleased * fix beginning tag starts after a list item in markdown * add test case for beginning-tag-after-a-list-item * update changelog_unreleased handlebars: Improve MustacheStatement printing (#7157) * Address https://github.com/prettier/prettier/pull/7051#discussion_r351877770 * Add isParentOfType helper fun * Add CHANGELOG * Fix a typo * CHANGELOG: Remove --print-width option * Add tests docs: Fix broken links (#7222) fix: comments for typescript function like nodes (#7144) * test: add test cases for method_types comments * fix: improve handling comments withing typescript function like nodes * fix: correct position of trailing comments in TSMethodSignature * fix: allow to use comments on TSAbstractMethodDefinition and fix TSDeclareFunction * refactor: move real function node type check to function * refactor: invert if in handleTSFunctionTrailingComments * refactor: move isRealFunctionLikeNode into end of file * chore: add changelog * chore: update changelog * chore: update changelog * make changelog more concise Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com> GraphQL: Support repeatable directive definition printing (clos… (#7227) Fixes : #5915 HTML comments in pre tags causes bad formatting o… (#5959) Fix adding unnecessary colons on Mapped Types (#7221) * fix #7174 by checking typeAnnotation existance * add changelog for pr-7174 * fix typo * revert mappedType test in conformance/ * add new directory and tests * fix missing a line * Update changelog_unreleased/typescript/pr-7174.md Co-Authored-By: Georgii Dolzhykov <thorn.mailbox@gmail.com> Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com> Markdown: fix PR 7181 broke HTML blocks inside list items (#7220) * fix PR 7181 broke HTML blocks inside list items * add test for indented html after list item * add changelog_unreleased for pr-7220 * update changelog of pr-7181 * fix pointed out handlebars: Fix superfluous line breaks in ConcatStatement (#7051) Merge branch 'next' of github.com:prettier/prettier into next * 'next' of github.com:prettier/prettier: Optimize some usage of `Array#filter` (#6996) Update `jest` to v24 (#6954) Replace `trim{Left,Right}` with `trim{Start,End}` (#6994) Set `trailingComma` default value to `es5` (#6963) Fix `new` usage for builtin objects (#6968) Replace `indexOf` with `includes` (#6967) fix: tests for empty type parameters in TS (#6960) Fix MDX html parsing errors (#6949) fix: issue #6813 (Zero-based lists are broken) (#6852) Style: use async functions (#6935) Disable trailingComma for Angular internal parser (#6912) Update `snapshot-diff` to v0.6.1 (#6955) Update build scripts to target Node.js 10 (#6908) Merge with master Fix printing both index signatures without type annotations and… (#7228) markdown: fix redundant leading spaces in markdown list (#7178) * fix rebundant leading spaces in markdown list * add test for rebundant leading spaces in markdown_list * add changelog_unreleased file of pr-7178 * Update changelog_unreleased/markdown/pr-7178.md Co-Authored-By: Sosuke Suzuki <aosukeke@gmail.com> * Update changelog_unreleased/markdown/pr-7178.md Co-Authored-By: Sosuke Suzuki <aosukeke@gmail.com> * fix minor issues Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com> Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com> Vue: format sfc jsx (#7180) * Modify to enable to format vue jsx sfc * add changelog * Modify to avoid cspell checking, "sfcs" -> "SFC" fix snapshots fix build: remove reference to replace-array-includes-with-indexof Merge remote-tracking branch 'remotes/upstream/master' into next fix snapshots add netlify.toml to override the node version on netlify Update linguist-languages to support file extensions `.cjs` and `.yaml.sed` (#7210) * Update linguist-language * Add changelog use lodash/* instead of lodash.* (#7235) Scss: fix scss variable string concatenation removing spaces (#7211) change version to 2.0.0-dev in package.json Merge branch 'master' into next remove code for old Node from jest config fix yarn.lock, add version resolutions for glimmer See https://github.com/prettier/prettier/pull/6570 re glimmer fix snapshots after merge Remove the beta label from the plugin docs (#5594) Update `cosmiconfig` to v6 (#6850) * Update `cosmiconfig` to v6 * fix changes required * style * replace parentModule logic * fix build script * fix import-fresh * fix rebase consequences * remove babel-plugin-transform-async-to-promises Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com> Bump @babel/core from 7.7.2 to 7.7.7 method chain breaking heuristic (#6685) * examples from various issues about method chaining this commit includes no prettier functionality changes, so that diffs will be easily visible. specifically: * https://github.com/prettier/prettier/issues/4125 * https://github.com/prettier/prettier/pull/4765 * https://github.com/prettier/prettier/issues/1565 * https://github.com/prettier/prettier/issues/3107 * add heuristic for breaking method chains * fix: remove unnecessary escape characters * initial non-regex isSimple implementation * handle babel literal types properly found here: https://github.com/babel/babel/blob/fe258dec047f473fb5a35172b2ff8cb172051dec/packages/babel-parser/ast/spec.md * template literal + test * use !every instead of some(!) * fix: some test cases * fix: object expressions and some more simple node types * some test cases showing need for depth check * depth check * update test to test thing it's supposed to test * optional expressions * test case for missing isSimple depth * fix isSimple depth bug * fix: comment check * test for ts non-null operator * make object properties behave similarly to arrays * isSimple -> isSimpleCallArgument; move to utils; add unaries * add Import to the list of simple things * only short regexps to be considered simple (<= 5 chars) * add changelog entry in the new format * update snapshots Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com> Add a Netlify badge to the footer (#7289) * Add a Netlify badge to the footer * Change badge as suggested by @vjeux Fix #5959 changlog (#7294) Update `rollup` related deps (#7254) Add `cspell` as `devDependencies` (#7299) Update `eslint` to v6.8.0 (#7249) Run `lint-docs` on changelogs (#7253) Use shorthand bin (#7264) Update `semver` to v7 (#7256) Bump flow-parser from 0.113.0 to 0.116.0 (#7286) Bumps [flow-parser](https://github.com/facebook/flow) from 0.113.0 to 0.116.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.113.0...v0.116.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Add tests for `sharedUtil.getMaxContinuousCount` (#7262) Update `strip-ansi` to v6 (#7257) Update `codemirror-graphql` to v0.11.6 (#7298) Bump @babel/preset-env from 7.7.7 to 7.8.2 in /website (#7291) Bumps [@babel/preset-env](https://github.com/babel/babel) from 7.7.7 to 7.8.2. - [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.7.7...v7.8.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Bump docusaurus from 1.14.3 to 1.14.4 in /website (#7290) Bumps [docusaurus](https://github.com/facebook/docusaurus) from 1.14.3 to 1.14.4. - [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.14.3...v1.14.4) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Bump terser-webpack-plugin from 2.2.2 to 2.3.2 (#7284) Bumps [terser-webpack-plugin](https://github.com/webpack-contrib/terser-webpack-plugin) from 2.2.2 to 2.3.2. - [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.2.2...v2.3.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Bump eslint-plugin-import from 2.19.1 to 2.20.0 (#7281) Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) from 2.19.1 to 2.20.0. - [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.19.1...v2.20.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Update `string-width` to v4.2.0 (#7258) Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com> Fix: don't throw on broken html (#7293) Switch `rollup-plugin-commonjs` to `@rollup/plugin-commonjs` (#7247) Update `eslint-plugin-unicorn` to v15 (#7250) Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com> Bump @babel/parser from 7.7.5 to 7.8.0 (#7279) Bumps [@babel/parser](https://github.com/babel/babel) from 7.7.5 to 7.8.0. - [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.7.5...v7.8.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Bump @babel/preset-react from 7.7.4 to 7.8.0 in /website (#7277) Bumps [@babel/preset-react](https://github.com/babel/babel) from 7.7.4 to 7.8.0. - [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.7.4...v7.8.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Bump webpack from 4.41.2 to 4.41.5 (#7319) Bumps [webpack](https://github.com/webpack/webpack) from 4.41.2 to 4.41.5. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](https://github.com/webpack/webpack/compare/v4.41.2...v4.41.5) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Add `.editorconfig` (#7252) Fix quote style, enable `quote` rule (#7304) Move `doc` directory to `document` (#7272) Update `@babel/code-frame` to v7.8.0 (#7307) Style: enable `dot-notation` (#7323) Style: enable `object-shorthand` (#7322) Update `rollup-plugin-terser` to v5.2.0 (#7308) * Update `rollup-plugin-terser` to v5.2.0 * Trigger CI start using object spread syntax (#7242) Bump typescript from 3.7.3 to 3.7.4 (#7310) Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.7.3 to 3.7.4. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v3.7.3...v3.7.4) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Simplify `arrayify` (#7266) Style: enable `prefer-spread` (#7270) Bump @babel/preset-env from 7.8.2 to 7.8.3 in /website (#7309) Bumps [@babel/preset-env](https://github.com/babel/babel) from 7.8.2 to 7.8.3. - [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.8.2...v7.8.3) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Bump @babel/preset-react from 7.8.0 to 7.8.3 in /website (#7311) Bumps [@babel/preset-react](https://github.com/babel/babel) from 7.8.0 to 7.8.3. - [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.8.0...v7.8.3) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Bump @babel/parser from 7.8.0 to 7.8.3 (#7314) Bumps [@babel/parser](https://github.com/babel/babel) from 7.8.0 to 7.8.3. - [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.8.0...v7.8.3) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> using object spread for `createLanguage` (#7268) Style: enable `eqeqeq` (#7324) Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com> Style: use object destructuring (#7325) * Style: use object destructuring * Update versions.js * Update sync-flow-tests.js * Update core.js Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com> Merge branch 'master' into next Bump @typescript-eslint/typescript-estree from 2.11.0 to 2.16.0 (#7317) * Bump @typescript-eslint/typescript-estree from 2.11.0 to 2.16.0 Bumps [@typescript-eslint/typescript-estree](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-estree) from 2.11.0 to 2.16.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.16.0/packages/typescript-estree) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * stub path.isAbsolute Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com> Fix `yarn.lock` for next (#7341) Remove an old fix for Node 4 (#7328) Tiny refactor `comment.js` (#7331) Add cli executable test (#7300) Update `escape-string-regexp` to v2 (#7340) Bump @babel/preset-env from 7.7.4 to 7.8.3 (#7345) Bumps [@babel/preset-env](https://github.com/babel/babel) from 7.7.4 to 7.8.3. - [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.7.4...v7.8.3) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Bump eslint-config-prettier from 6.7.0 to 6.9.0 (#7344) Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.7.0 to 6.9.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/commits/v6.9.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Bump diff from 4.0.1 to 4.0.2 (#7343) Bumps [diff](https://github.com/kpdecker/jsdiff) from 4.0.1 to 4.0.2. - [Release notes](https://github.com/kpdecker/jsdiff/releases) - [Changelog](https://github.com/kpdecker/jsdiff/blob/master/release-notes.md) - [Commits](https://github.com/kpdecker/jsdiff/commits) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Update `execa` to v4 (#7261) Fix `prefer-object-spread` in `/website` (#7338) Use array destructuring for some simple case (#7330) * Use array destructuring for some simple case * Revert [0] Add changelog lint script (#7320) * Add changelog lint script * Refactor lint script * spell * Fix indent * fix templateComment * add H4 check * Add category in title check * use array destructuring * Add space check Update overrides.css (#7348) * Update overrides.css * Update overrides.css * Update index.js * Update overrides.css Bump resolve from 1.13.1 to 1.14.2 (#7315) Bumps [resolve](https://github.com/browserify/resolve) from 1.13.1 to 1.14.2. - [Release notes](https://github.com/browserify/resolve/releases) - [Commits](https://github.com/browserify/resolve/compare/v1.13.1...v1.14.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Simplify `getSupportInfo` (#7269) Run lock check on CI (#7342) Fix: remove unnecessary parens when yielding jsx (#7367) * support YieldExpression inside jsx * add test cases * add changelog for pr-7367 * fix changelog file name Fix `prefer-object-spread` in `src/main` (#7357) Fix `prefer-object-spread` in `src/common` (#7355) Update `tempy` to v0.3.0 (#7363) angular: fix i18n attr with @@ (#7371) * angular: fix i18n attr with @@ * changelog Update `snapshot-diff` to v0.6.2 (#7364) Add tests for #2091 (#7368) Add test for typed constructor (#7377) Closes https://github.com/prettier/prettier/issues/4111 Merge branch 'master' into next Bump typescript from 3.7.4 to 3.7.5 (#7385) 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> Switch `parse-srcset` to `srcset` (#7381) Bump flow-parser from 0.116.0 to 0.116.1 (#7383) 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> Fix some `String#repeat` (#7335) Add missing snapshot (#7378) Bump eslint-plugin-react from 7.17.0 to 7.18.0 (#7366) 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> Update `get-stream` to v5 (#7362) Fix `prefer-object-spread` in `src/language-js` (part 4) (#7361) Fix `prefer-object-spread` in `src/language-js` (part 1) (#7358) Fix `prefer-object-spread` in `src/language-js` (part 2) (#7359) Fix `prefer-object-spread` in `src/document` (#7353) Fix `prefer-object-spread` in `src/language-js` (part 3) (#7360) Fix `prefer-object-spread` in `/src/cli` (#7356) Fix `prefer-object-spread` in `src/language-html` (#7352) Fix `prefer-object-spread` in `src/language-css` (#7351) Fix `prefer-object-spread` for `src/language-yaml` (#7349) Fix `prefer-object-spread` in `/tests*` (#7337) Fix `prefer-object-spread` in `src/language-markdown` (#7350) Switch `rollup-plugin-node-resolve` to `@rollup/plugin-node-resolve` (#7248) Fix `prefer-object-spread` in `src/config` (#7354) handlebars: Add prettier-ignore (#7275) Tiny refactor (#7334) Fix error throws on unclosed tag in `pre` (#7392) Fix `prefer-object-spread` in `/scripts` (#7336) Move React ESLint rules to "/website" (#7332) Use `lodash/partition` (#7265) RFC: Always add a space after the `function` keyword (#3903) * Always add a space after the `function` keyword * WIP update snapshots * WIP put generator function asterisk before space https://github.com/prettier/prettier/issues/3847#issuecomment-363449250 * WIP update snapshots * Add changelog * Add tests for anonymouse generator function * print space between `function` and generator star * update changelog * print space between yield and * Co-authored-by: Joseph Frazier <1212jtraceur@gmail.com> Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com> Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com> HTML: don't treat colons as namespace prefix delimiters in tag names (#7273) Enable eslint rule `prefer-object-spread` (#7398) chore(doc-printer): Fixed minor typo (#7347) Fix srcset parse error (#7295) * Fix srcset parse * Don't swallow error * fix srcset parse * Add changelog * Update case * Fix quote style * Make input ugly Add title to the `/en/users/` page (#7379) Support printing inline handlebars in html (through embed function) (#7306) * Move old handlebars to html file This kind of handlebars code is supposed to be in html files. * Remove useless file * Uglify our old handlebars file * Move venerable hbs tests to their folder Because of their config * html: Use glimmer for script tags of type handlebars * Record snapshots * Add CHANGELOG entry * Add the CHANGELOG test * Make the PR changes more obvious Bump rollup from 1.29.0 to 1.29.1 (#7405) 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> 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> 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> Upgrade Node.js version and drop mkdirp (#7302) GraphQL: improve detection of separator between interfaces (#7305) fix object literal checks in isSimpleCallArgument (#7403) website: remove `eslint-disable` in landing.js (#7329) 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> 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> 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> 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> 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> Merge branch 'master' into next 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> 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> Simplify `getLast` (#7267) fix tests on Windows: drive letter case returned by process.cwd() depends on environment (#7409) Enable ESLint `prefer-rest-params` rule (#7400) Use BOM string instead of BOM charCode (#7420) * Use BOM string instead of BOM charCode * Trigger CI 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> 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> Enable `unicorn/prefer-string-slice` (#7251) website: add Tidelift enterprise language (#7424) [docs] Add Tidelift to cspell.json Fix typo (#7425) 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> 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> Setup github actions (#7321) 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> 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> 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> 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> 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> Minor tweak (#7440) * Simplify `isExportDeclaration` * move `isExportDeclaration` and `getParentExportDeclaration` to `language-js/utils.js` Simplify `createUsage` (#7439) * Simplify `createUsage` * restore some change 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 Update `mem` to v6 (#7260) * Style: use async for `editorconfigAsyncNoCache` * Update `mem` to v6 * Fix usage of `mem` * Fix: add `await` * Use JSON.stringify 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> 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> 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 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> Update babel target (#7418) 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> 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> 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> Always set parser bundle target to `universal` (#7455) * Always set parser bundle target to `universal` * Allow override 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> Remove useless argument in `editorconfig` load function (#7459) Change `arrowParens` to `always` by default for 2.0 (#7430) 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 str…
Ref #1565 & #3107.