From e6cb79a8bc1297536f057c857d8a728a57202f3b Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Fri, 7 May 2021 14:09:36 +0200 Subject: [PATCH] Update dependents count MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Build(deps-dev): Bump @typescript-eslint/types from 3.10.0 to 3.10.1 (#9066) Bumps [@typescript-eslint/types](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/visitor-keys) from 3.10.0 to 3.10.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/visitor-keys/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v3.10.1/packages/visitor-keys) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump @typescript-eslint/typescript-estree from 3.10.0 to 3.10.1 (#9064) Bumps [@typescript-eslint/typescript-estree](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-estree) from 3.10.0 to 3.10.1. - [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/v3.10.1/packages/typescript-estree) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Fix yarn.lock Build(deps): Bump editorconfig-to-prettier from 0.1.1 to 0.2.0 (#9067) * Build(deps): Bump editorconfig-to-prettier from 0.1.1 to 0.2.0 Bumps [editorconfig-to-prettier](https://github.com/josephfrazier/editorconfig-to-prettier) from 0.1.1 to 0.2.0. - [Release notes](https://github.com/josephfrazier/editorconfig-to-prettier/releases) - [Commits](https://github.com/josephfrazier/editorconfig-to-prettier/compare/v0.1.1...v0.2.0) Signed-off-by: dependabot[bot] * Remove `insertFinalNewline` Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: fisker Build(deps): Bump @angular/compiler from 10.0.12 to 10.0.14 (#9077) Support `.wxs` & `.wxss` (#9081) * Support `.wxs` & `.wxss` * Spell check * Add comments * Spellcheck Turn test setup file to lazy load (#9080) Update js `languages` (#9073) Rename native shims to `.mjs` (#9079) Respect spacing between template values in embedded css (#9078) * Respect no space for embedded css * Fix by lint * Add changelog CI: remove `fetch-depth` (#9086) Add pure css parser (#7933) Build(deps-dev): Bump @types/node from 14.6.0 to 14.6.1 (#9090) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.6.0 to 14.6.1. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump rollup from 2.26.5 to 2.26.6 (#9089) Bumps [rollup](https://github.com/rollup/rollup) from 2.26.5 to 2.26.6. - [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/v2.26.5...v2.26.6) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump @glimmer/syntax from 0.59.0 to 0.60.0 (#9088) Bumps [@glimmer/syntax](https://github.com/glimmerjs/glimmer-vm) from 0.59.0 to 0.60.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.59.0...v0.60.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump @glimmer/reference from 0.59.0 to 0.60.0 (#9091) cleanup: remove extra parent.object conditions (#8878) from src/language-js/needs-parens.js Updated plugin documentation (#8407) * Updated plugin documentation * Spellcheck * Wording change: attributes -> properties * Corrected explanation * Wording fixes * Proofreading/nitpicking * Reformat * Reformat with --prose-wrap always * Revert "Reformat with --prose-wrap always" This reverts commit 2518a08a32818caa640303aede1c54a7ee1e5ab9. * Reformat with --prose-wrap always * Reformat with --prose-wrap never Co-authored-by: Georgii Dolzhykov update stable docs (plugins.md) Build(deps-dev): Bump @types/node from 14.6.1 to 14.6.2 (#9108) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump rollup-plugin-terser from 7.0.0 to 7.0.1 (#9110) Bumps [rollup-plugin-terser](https://github.com/TrySound/rollup-plugin-terser) from 7.0.0 to 7.0.1. - [Release notes](https://github.com/TrySound/rollup-plugin-terser/releases) - [Commits](https://github.com/TrySound/rollup-plugin-terser/commits) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump mem from 6.1.0 to 6.1.1 (#9111) Bumps [mem](https://github.com/sindresorhus/mem) from 6.1.0 to 6.1.1. - [Release notes](https://github.com/sindresorhus/mem/releases) - [Commits](https://github.com/sindresorhus/mem/compare/v6.1.0...v6.1.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump postcss from 7.0.30 to 7.0.32 (#9107) Bumps [postcss](https://github.com/postcss/postcss) from 7.0.30 to 7.0.32. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/master/CHANGELOG.md) - [Commits](https://github.com/postcss/postcss/compare/7.0.30...7.0.32) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump rollup from 2.26.6 to 2.26.8 (#9109) Bumps [rollup](https://github.com/rollup/rollup) from 2.26.6 to 2.26.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/v2.26.6...v2.26.8) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Remove the need to add full GitHub links in changelog entry titles (#9104) Redirect `babel` parser to `babel-flow` (#9071) Co-authored-by: Georgii Dolzhykov Glimmer: Use common `locationToOffset` (#9106) Remove a unnecessary check in css printer (#9094) Build(deps-dev): Bump @babel/preset-env from 7.11.0 to 7.11.5 (#9118) Remove `css` parser from `isLessParser` check (#9092) Build(deps-dev): Bump @babel/types from 7.11.0 to 7.11.5 (#9122) Make `isSCSS*` function stricter (#9093) Build(deps-dev): Bump @babel/core from 7.11.4 to 7.11.5 (#9117) Refactor `RecoveredErrors` rethrow (#9075) Build(deps-dev): Bump eslint from 7.7.0 to 7.8.0 (#9120) Bumps [eslint](https://github.com/eslint/eslint) from 7.7.0 to 7.8.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.7.0...v7.8.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Update cspell.json (#9105) Build(deps): Bump @babel/parser from 7.11.2 to 7.11.5 (#8947) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: fisker Add Yarn 2 files to .gitignore (#9124) Build(deps-dev): Bump eslint from 7.8.0 to 7.8.1 (#9126) Bumps [eslint](https://github.com/eslint/eslint) from 7.8.0 to 7.8.1. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.8.0...v7.8.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump rollup from 2.26.8 to 2.26.9 (#9127) Bumps [rollup](https://github.com/rollup/rollup) from 2.26.8 to 2.26.9. - [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/v2.26.8...v2.26.9) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> GraphQL: Fix formatting for directives in fields (#9116) * Fix formatting for directives in FragmentDefinition * Add changelog * Update src/language-graphql/printer-graphql.js Co-authored-by: Georgii Dolzhykov * Fix by Prettier * Refactor Co-authored-by: Georgii Dolzhykov Build(deps-dev): Bump @types/node from 14.6.2 to 14.6.3 (#9133) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.6.2 to 14.6.3. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump @glimmer/syntax from 0.60.0 to 0.61.2 (#9131) Bumps [@glimmer/syntax](https://github.com/glimmerjs/glimmer-vm) from 0.60.0 to 0.61.2. - [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.60.0...v0.61.2) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump @glimmer/reference from 0.60.0 to 0.61.2 (#9134) Fix line breaks for CSS in JS (#9136) * Fix 2.1 regression for css-in-js * Add changelog Build(deps): Bump decompress from 4.2.0 to 4.2.1 in /website (#9140) Bumps [decompress](https://github.com/kevva/decompress) from 4.2.0 to 4.2.1. - [Release notes](https://github.com/kevva/decompress/releases) - [Commits](https://github.com/kevva/decompress/compare/v4.2.0...v4.2.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump @babel/core from 7.11.5 to 7.11.6 (#9142) Build(deps-dev): Bump @types/node from 14.6.3 to 14.6.4 (#9141) Build(deps): Bump flow-parser from 0.132.0 to 0.133.0 (#9135) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: fisker Run full test on every parser (#9070) * Refactor test * Fix * Improve `hasPragma` & `insertPragma` on files has BOM * Fix `coreFormat` cursorOffset * Code style * Update snapshots * Refactor * Restore BOM test * Add export * Empty file * return after SyntaxError * EOL test * Fix eol tests * Named export * Tweak matrix * Disable on `requirePragma` * Disable `cr` test * Simplify logic * Update `verbose` * Remove `test:full-test` * Typo Build(deps-dev): Bump eslint-plugin-jest from 23.20.0 to 24.0.0 (#9159) Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 23.20.0 to 24.0.0. - [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases) - [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/master/CHANGELOG.md) - [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v23.20.0...v24.0.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump jest-watch-typeahead from 0.6.0 to 0.6.1 (#9157) Bumps [jest-watch-typeahead](https://github.com/jest-community/jest-watch-typeahead) from 0.6.0 to 0.6.1. - [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.6.0...v0.6.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump rollup-plugin-terser from 7.0.1 to 7.0.2 (#9160) Build(deps-dev): Bump rollup from 2.26.9 to 2.26.10 (#9158) YAML: Fix printing doubles a blank line before a comment (#9143) * Print hardline for endComments only when under mappingValue * Add changelog * Fix from linter * Update tests * Use shouldPrintEndCommentsWithAlign * Add tests * Add test * Fix format * Update test * Test map too * Update tests * `shouldPrintEndCommentsWithAlign` -> `shouldPrintEndComments` Co-authored-by: fisker Test: add test for issue 5961 (#9153) community plugins: add prettier-plugin-go-template (#9163) Build(deps): Bump linguist-languages from 7.10.0 to 7.11.0 (#9166) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: fisker Build(deps-dev): Bump rollup from 2.26.10 to 2.26.11 (#9170) Bumps [rollup](https://github.com/rollup/rollup) from 2.26.10 to 2.26.11. - [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/v2.26.10...v2.26.11) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump @rollup/plugin-babel from 5.2.0 to 5.2.1 (#9177) Build(deps): Bump angular-estree-parser from 2.2.0 to 2.2.1 (#9176) Build(deps): Bump @angular/compiler from 10.0.14 to 10.1.1 (#9178) Bumps [@angular/compiler](https://github.com/angular/angular/tree/HEAD/packages/compiler) from 10.0.14 to 10.1.1. - [Release notes](https://github.com/angular/angular/releases) - [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md) - [Commits](https://github.com/angular/angular/commits/10.1.1/packages/compiler) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump yaml-unist-parser from 1.3.0 to 1.3.1 (#9169) * Build(deps): Bump yaml-unist-parser from 1.3.0 to 1.3.1 Bumps [yaml-unist-parser](https://github.com/ikatyang/yaml-unist-parser) from 1.3.0 to 1.3.1. - [Release notes](https://github.com/ikatyang/yaml-unist-parser/releases) - [Changelog](https://github.com/ikatyang/yaml-unist-parser/blob/master/CHANGELOG.md) - [Commits](https://github.com/ikatyang/yaml-unist-parser/compare/v1.3.0...v1.3.1) Signed-off-by: dependabot[bot] * Update snapshot * Update changelog * spellcheck Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: fisker Build(deps-dev): Bump @types/node from 14.6.4 to 14.10.0 (#9185) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.6.4 to 14.10.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump node-fetch from 2.1.2 to 2.6.1 in /scripts/release (#9186) Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.1.2 to 2.6.1. - [Release notes](https://github.com/bitinn/node-fetch/releases) - [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md) - [Commits](https://github.com/bitinn/node-fetch/compare/v2.1.2...v2.6.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Refactor: Use set instead of array (#9164) * Use set instead of array * With WeakMap cache * Refactor * Fix typo Added `Icons8` to user list (#9156) Co-authored-by: fisker Cheung [website] add Aircall in Users list (#9182) Co-authored-by: fisker Cheung Release script: Commit and push after updating dependents count (#9183) * Modify to commit and push to remote after updating dependendts count * Fix typo Build(deps-dev): Bump @types/node from 14.10.0 to 14.10.1 (#9198) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.10.0 to 14.10.1. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Website: Remove `add users` link (#9187) Co-authored-by: Alexander Kachkaev Build(deps-dev): Bump eslint-plugin-jest from 24.0.0 to 24.0.1 (#9200) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump eslint from 7.8.1 to 7.9.0 (#9201) Bumps [eslint](https://github.com/eslint/eslint) from 7.8.1 to 7.9.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.8.1...v7.9.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump tempy from 0.6.0 to 0.7.0 (#9199) Bumps [tempy](https://github.com/sindresorhus/tempy) from 0.6.0 to 0.7.0. - [Release notes](https://github.com/sindresorhus/tempy/releases) - [Commits](https://github.com/sindresorhus/tempy/compare/v0.6.0...v0.7.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Typescript tagged template literal test (#9195) Build(deps-dev): Bump terser-webpack-plugin from 4.1.0 to 4.2.0 (#9197) Bumps [terser-webpack-plugin](https://github.com/webpack-contrib/terser-webpack-plugin) from 4.1.0 to 4.2.0. - [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/v4.1.0...v4.2.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Bump Prettier dependency to 2.1.2 Update dependents count Merge branch 'patch-release' Build(deps-dev): Bump terser-webpack-plugin from 4.2.0 to 4.2.1 (#9213) Bumps [terser-webpack-plugin](https://github.com/webpack-contrib/terser-webpack-plugin) from 4.2.0 to 4.2.1. - [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/v4.2.0...v4.2.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump @types/node from 14.10.1 to 14.10.2 (#9212) Add ESM distributions for browser (#8983) Co-authored-by: fisker Test: Fix indexes calculation (#9152) * Test: Fix indexes calculation * Simplify logic * Update snapshots Switch `get-stream` to `get-stdin` (#9149) Enable `CR` test (#9148) * Enable `CR` test * Fix tests * Ignore `standalone.js` Build(deps-dev): Bump rollup from 2.26.11 to 2.27.0 (#9221) Bumps [rollup](https://github.com/rollup/rollup) from 2.26.11 to 2.27.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/v2.26.11...v2.27.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump @angular/compiler from 10.1.1 to 10.1.2 (#9222) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump @types/node from 14.10.2 to 14.10.3 (#9219) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Use better fonts in Playground (#9193) Build(deps-dev): Bump webpack from 4.44.1 to 4.44.2 in /website (#9227) Build(deps-dev): Bump @types/node from 14.10.3 to 14.11.1 (#9228) Build(deps-dev): Bump rollup from 2.27.0 to 2.27.1 (#9231) Change test package name (#8848) Build(deps): Bump flow-parser from 0.133.0 to 0.134.0 (#9230) Build(deps-dev): Bump webpack from 4.44.1 to 4.44.2 (#9229) Build(deps-dev): Bump eslint-plugin-unicorn from 21.0.0 to 22.0.0 (#9244) Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 21.0.0 to 22.0.0. - [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases) - [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v21.0.0...v22.0.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump terser-webpack-plugin from 4.2.1 to 4.2.2 (#9242) Build(deps-dev): Bump eslint-plugin-jest from 24.0.1 to 24.0.2 (#9239) Build(deps): Bump codemirror-graphql from 0.12.1 to 0.12.2 in /website (#9243) Bumps [codemirror-graphql](https://github.com/graphql/graphiql) from 0.12.1 to 0.12.2. - [Release notes](https://github.com/graphql/graphiql/releases) - [Changelog](https://github.com/graphql/graphiql/blob/main/CHANGELOG.md) - [Commits](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.12.1...codemirror-graphql@0.12.2) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump typescript from 4.0.2 to 4.0.3 (#9238) Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.0.2 to 4.0.3. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v4.0.2...v4.0.3) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump @glimmer/reference from 0.61.2 to 0.62.0 (#9249) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump rollup from 2.27.1 to 2.28.1 (#9250) Bumps [rollup](https://github.com/rollup/rollup) from 2.27.1 to 2.28.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/v2.27.1...v2.28.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump @rollup/plugin-commonjs from 14.0.0 to 15.1.0 (#9253) * Build(deps-dev): Bump @rollup/plugin-commonjs from 14.0.0 to 15.1.0 Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins) from 14.0.0 to 15.1.0. - [Release notes](https://github.com/rollup/plugins/releases) - [Commits](https://github.com/rollup/plugins/compare/commonjs-v14.0.0...commonjs-v15.1.0) Signed-off-by: dependabot[bot] * Try `requireReturnsDefault: "preferred"` * Size check `.mjs` Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: fisker Build(deps-dev): Bump @types/node from 14.11.1 to 14.11.2 (#9259) Vue: Improve `v-for` format (#9225) * Vue: break `v-for` around `in` or `of` * Update changelog * Minor refactor Co-authored-by: fisker Build(deps): Bump actions/checkout from v2.3.2 to v2.3.3 (#9265) Bumps [actions/checkout](https://github.com/actions/checkout) from v2.3.2 to v2.3.3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2.3.2...a81bbbf8298c0fa03ea29cdc473d45769f953675) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump eslint-plugin-react from 7.20.6 to 7.21.1 (#9262) Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.20.6 to 7.21.1. - [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.20.6...v7.21.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump @angular/compiler from 10.1.2 to 10.1.3 (#9264) Bumps [@angular/compiler](https://github.com/angular/angular/tree/HEAD/packages/compiler) from 10.1.2 to 10.1.3. - [Release notes](https://github.com/angular/angular/releases) - [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md) - [Commits](https://github.com/angular/angular/commits/10.1.3/packages/compiler) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Update `postcss` to v8 (#9209) * Update `postcss` v8 * Parser custom properties * Improve logic * Update lint script * Fix node location * Fix comments inside * Add a test * Test on `less` and `scss` too * Fix empty prop print * Clean * Update `postcss` * Exclude `regenerator` * Test `no-semi` * Add changelog * Typo * Apply review suggestion * Style * Simplify logic * Remove error test, we don't throw on this anymore * Style * Update postcss * Update postcss Build(deps-dev): Bump eslint-plugin-react from 7.21.1 to 7.21.2 (#9270) Build(deps-dev): Bump rollup from 2.28.1 to 2.28.2 (#9268) Build(deps): Bump postcss from 8.0.7 to 8.0.9 (#9263) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> MDX: fix JSX format (#9267) Update `postcss-scss` to v3 (#9210) Build(deps): Bump @glimmer/syntax from 0.61.2 to 0.62.0 (#9240) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: fisker Build(deps-dev): Bump @glimmer/reference from 0.62.0 to 0.62.1 (#9269) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump eslint-config-prettier from 6.11.0 to 6.12.0 (#9283) Build(deps-dev): Bump tempy from 0.7.0 to 0.7.1 (#9280) Disable Jest verbose, remove pattern for size check job (#9284) Build(deps): Bump postcss from 8.0.9 to 8.1.0 (#9281) Build(deps-dev): Bump eslint-plugin-import from 2.22.0 to 2.22.1 (#9279) Build(deps): Bump postcss-scss from 3.0.1 to 3.0.2 (#9282) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Remove `.flowconfig` (#9286) Update postcss@7 to latest (#9289) Build(deps): Bump @glimmer/syntax from 0.62.0 to 0.62.1 (#9293) Bumps [@glimmer/syntax](https://github.com/glimmerjs/glimmer-vm) from 0.62.0 to 0.62.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.62.0...v0.62.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump postcss from 8.1.0 to 8.1.1 (#9292) Bumps [postcss](https://github.com/postcss/postcss) from 8.1.0 to 8.1.1. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/master/CHANGELOG.md) - [Commits](https://github.com/postcss/postcss/compare/8.1.0...8.1.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump eslint from 7.9.0 to 7.10.0 (#9291) Bumps [eslint](https://github.com/eslint/eslint) from 7.9.0 to 7.10.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.9.0...v7.10.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Markdown: Fix missing blank lines in fenced code block (#8786) Build(deps): Bump flow-parser from 0.134.0 to 0.135.0 (#9307) Bumps [flow-parser](https://github.com/facebook/flow) from 0.134.0 to 0.135.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.134.0...v0.135.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Website: Add Nova text editor (#9301) * Add Nova app to editors.yml Adding a link to the Prettier extension for Panic's new Nova editor. * Add images for Nova editor * Fix sort order on editor list. * Delete nova-128px.png Build(deps): Bump actions/setup-node from v2.1.1 to v2.1.2 (#9309) Bumps [actions/setup-node](https://github.com/actions/setup-node) from v2.1.1 to v2.1.2. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v2.1.1...c6fd00ceb9747fb23ffdf72987450a2664414867) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump @angular/compiler from 10.1.3 to 10.1.4 (#9306) Bumps [@angular/compiler](https://github.com/angular/angular/tree/HEAD/packages/compiler) from 10.1.3 to 10.1.4. - [Release notes](https://github.com/angular/angular/releases) - [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md) - [Commits](https://github.com/angular/angular/commits/10.1.4/packages/compiler) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> JS: Fix comments inside template (#9278) Co-authored-by: Georgii Dolzhykov Build(deps): Bump linguist-languages from 7.11.0 to 7.11.1 (#9320) * Build(deps): Bump linguist-languages from 7.11.0 to 7.11.1 Bumps [linguist-languages](https://github.com/ikatyang/linguist-languages) from 7.11.0 to 7.11.1. - [Release notes](https://github.com/ikatyang/linguist-languages/releases) - [Commits](https://github.com/ikatyang/linguist-languages/compare/v7.11.0...v7.11.1) Signed-off-by: dependabot[bot] * Update snapshot for linguist-languages Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: sosukesuzuki Build(deps-dev): Bump eslint-plugin-react from 7.21.2 to 7.21.3 (#9321) Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.21.2 to 7.21.3. - [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases) - [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md) - [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.21.2...v7.21.3) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Cleanup changelog_unreleased (#9325) These were released in 2.1.2 Remvoe duplicated condition (#9319) TypeScript: Preserve a last separator for ignored object and interface types (#9318) * Preserve ignored TypeScript signature * Add Changelog Build(deps-dev): Bump eslint-plugin-jest from 24.0.2 to 24.1.0 (#9334) Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 24.0.2 to 24.1.0. - [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases) - [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/master/CHANGELOG.md) - [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v24.0.2...v24.1.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump @types/node from 14.11.2 to 14.11.4 (#9333) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.11.2 to 14.11.4. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump jest from 26.4.2 to 26.5.0 (#9332) Bumps [jest](https://github.com/facebook/jest) from 26.4.2 to 26.5.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/v26.4.2...v26.5.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump synchronous-promise from 2.0.13 to 2.0.14 (#9330) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump @types/node from 14.11.4 to 14.11.5 (#9343) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.11.4 to 14.11.5. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump jest from 26.5.0 to 26.5.2 (#9344) Bumps [jest](https://github.com/facebook/jest) from 26.5.0 to 26.5.2. - [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/v26.5.0...v26.5.2) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Add missing prettier-ignore comment in changelog (#9346) Fix placing leading comments for a body of while statement (#9345) * Add leading comments for while * Add tests * Add changelog Build(deps-dev): Bump rollup from 2.28.2 to 2.29.0 (#9352) Bumps [rollup](https://github.com/rollup/rollup) from 2.28.2 to 2.29.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/v2.28.2...v2.29.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump terser-webpack-plugin from 4.2.2 to 4.2.3 (#9349) Bumps [terser-webpack-plugin](https://github.com/webpack-contrib/terser-webpack-plugin) from 4.2.2 to 4.2.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/v4.2.2...v4.2.3) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump @angular/compiler from 10.1.4 to 10.1.5 (#9351) Bumps [@angular/compiler](https://github.com/angular/angular/tree/HEAD/packages/compiler) from 10.1.4 to 10.1.5. - [Release notes](https://github.com/angular/angular/releases) - [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md) - [Commits](https://github.com/angular/angular/commits/10.1.5/packages/compiler) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Improve formatting for AssignmentExpression with ClassExpression that has long superClass (#9341) * Improve formatting for AssignmentExpression with ClassExpression that has long superClass Fix by prettier * Add changelog * Remove unnecesary concat call * Mention abount Google Closure Library in changelog Add support for [[wiki-style]] links in markdown (#9275) * Add support for [[wiki-style]] links in markdown 1. Support for [[wiki-style]] links ensures that they do not get broken by the prettier formatting by being wrapped over multiple lines. 2. The contents of the link (between the `[[]]` brackets) are treated as raw text. This is because the various tools that rely on the `[[]]` syntax do not agree on what is allowable between them. * Add a changelog document * Update pr-9275.md * Add additional tests as requested * Add a fix for AST tests * Fix issues with prose-wrap: "preserve" * Lint * Add a clean action for wikiLinks Co-authored-by: fisker Cheung Use `Jest@26` (#9337) CLI: Fix error on dir or file that name is a number (#9298) Build(deps-dev): Bump synchronous-promise from 2.0.14 to 2.0.15 (#9359) Bumps [synchronous-promise](https://github.com/fluffynuts/synchronous-promise) from 2.0.14 to 2.0.15. - [Release notes](https://github.com/fluffynuts/synchronous-promise/releases) - [Commits](https://github.com/fluffynuts/synchronous-promise/compare/v2.0.14...v2.0.15) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump @types/node from 14.11.5 to 14.11.7 (#9360) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.11.5 to 14.11.7. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Playground: Removed "user-scalable=no" (#9366) Markdown: Align code block language detection with other tools (#9365) LESS: fix comments in value lists (#9356) Build(deps): Bump mem from 6.1.1 to 8.0.0 (#9374) Bumps [mem](https://github.com/sindresorhus/mem) from 6.1.1 to 8.0.0. - [Release notes](https://github.com/sindresorhus/mem/releases) - [Commits](https://github.com/sindresorhus/mem/compare/v6.1.1...v8.0.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump camelcase from 6.0.0 to 6.1.0 (#9376) Bumps [camelcase](https://github.com/sindresorhus/camelcase) from 6.0.0 to 6.1.0. - [Release notes](https://github.com/sindresorhus/camelcase/releases) - [Commits](https://github.com/sindresorhus/camelcase/compare/v6.0.0...v6.1.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump eslint from 7.10.0 to 7.11.0 (#9377) Bumps [eslint](https://github.com/eslint/eslint) from 7.10.0 to 7.11.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.10.0...v7.11.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> community plugins: add prettier-plugin-tailwind (#9378) Add `espree` parser (#9000) Co-authored-by: Chris Brody Stop inferring the parser to be `json` for `.jsonl` files (#9371) Co-authored-by: Georgii Dolzhykov HTML: Fix crash on reading `Node.sourceSpan` (#9372) Build(deps-dev): Bump tempy from 0.7.1 to 1.0.0 (#9386) Bumps [tempy](https://github.com/sindresorhus/tempy) from 0.7.1 to 1.0.0. - [Release notes](https://github.com/sindresorhus/tempy/releases) - [Commits](https://github.com/sindresorhus/tempy/compare/v0.7.1...v1.0.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump eslint-plugin-react from 7.21.3 to 7.21.4 (#9383) Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.21.3 to 7.21.4. - [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.21.3...v7.21.4) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump @types/node from 14.11.7 to 14.11.8 (#9385) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.11.7 to 14.11.8. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Test: use `errors` options instead of `disableBabelTS` (#9387) Build(deps-dev): Bump rollup from 2.29.0 to 2.30.0 (#9394) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump jest from 26.5.2 to 26.5.3 (#9396) Bumps [jest](https://github.com/facebook/jest) from 26.5.2 to 26.5.3. - [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/v26.5.2...v26.5.3) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump html-element-attributes from 2.2.1 to 2.3.0 (#9395) Bumps [html-element-attributes](https://github.com/wooorm/html-element-attributes) from 2.2.1 to 2.3.0. - [Release notes](https://github.com/wooorm/html-element-attributes/releases) - [Commits](https://github.com/wooorm/html-element-attributes/compare/2.2.1...2.3.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Moved hack plugins to experimental section (#9392) Build(deps-dev): Bump webpack-cli from 3.3.12 to 4.0.0 in /website (#9375) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: fisker Build(deps): Bump @angular/compiler from 10.1.5 to 10.1.6 (#9404) Add `prettier-plugin-jsdoc` to plugins list (#9393) Minor tweak (#9407) Build(deps-dev): Bump @babel/types from 7.11.5 to 7.12.0 (#9411) Bumps [@babel/types](https://github.com/babel/babel/tree/HEAD/packages/babel-types) from 7.11.5 to 7.12.0. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.12.0/packages/babel-types) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump @babel/preset-env from 7.11.5 to 7.12.0 (#9413) Build(deps): Bump react from 16.13.1 to 16.14.0 in /website (#9402) Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react) from 16.13.1 to 16.14.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.14.0/packages/react) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump @glimmer/syntax from 0.62.1 to 0.62.3 (#9403) Co-authored-by: Cyrille David Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: fisker Build(deps-dev): Bump @babel/core from 7.11.6 to 7.12.0 (#9409) Build(deps-dev): Bump @glimmer/reference from 0.62.1 to 0.62.3 (#9412) Update website deps (#9416) Consistent parser errors (#9406) Build(deps-dev): Bump webpack from 4.44.2 to 5.1.0 in /website (#9414) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump rollup from 2.30.0 to 2.31.0 (#9424) Bumps [rollup](https://github.com/rollup/rollup) from 2.30.0 to 2.31.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/v2.30.0...v2.31.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump react-dom from 16.13.1 to 16.14.0 in /website (#9419) Bumps [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom) from 16.13.1 to 16.14.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.14.0/packages/react-dom) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump @babel/preset-env from 7.12.0 to 7.12.1 (#9427) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.12.0 to 7.12.1. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.12.1/packages/babel-preset-env) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump webpack from 5.1.0 to 5.1.2 in /website (#9421) Bumps [webpack](https://github.com/webpack/webpack) from 5.1.0 to 5.1.2. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](https://github.com/webpack/webpack/compare/v5.1.0...v5.1.2) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump @babel/preset-react from 7.10.4 to 7.12.1 in /website (#9420) Bumps [@babel/preset-react](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-react) from 7.10.4 to 7.12.1. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.12.1/packages/babel-preset-react) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump @babel/core from 7.12.0 to 7.12.1 (#9422) Build(deps-dev): Bump @babel/types from 7.12.0 to 7.12.1 (#9423) Build(deps): Bump flow-parser from 0.135.0 to 0.136.0 (#9425) Bumps [flow-parser](https://github.com/facebook/flow) from 0.135.0 to 0.136.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.135.0...v0.136.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Consistent format on invalid template literals (#9431) Add `.git-blame-ignore-revs` (#9415) Build(deps-dev): Bump eslint-plugin-unicorn from 22.0.0 to 23.0.0 (#9440) Build(deps-dev): Bump webpack from 5.1.2 to 5.1.3 in /website (#9439) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump cspell from 4.1.0 to 4.1.2 (#9445) Build(deps-dev): Bump @types/node from 14.11.8 to 14.11.10 (#9438) Build(deps): Bump codecov/codecov-action from v1.0.13 to v1.0.14 (#9446) Build(deps-dev): Bump @babel/core from 7.12.1 to 7.12.3 (#9437) Build(deps-dev): Bump eslint-config-prettier from 6.12.0 to 6.13.0 (#9442) Build(deps-dev): Bump rollup from 2.31.0 to 2.32.0 (#9444) Build(deps-dev): Bump eslint-plugin-react from 7.21.4 to 7.21.5 (#9454) JS: Fix `import {a as a}` and `export {a as a}` format (#9435) Support Flow Enums with unknown members (#9432) Build(deps-dev): Bump webpack-cli from 4.0.0 to 4.1.0 in /website (#9450) Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 4.0.0 to 4.1.0. - [Release notes](https://github.com/webpack/webpack-cli/releases) - [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md) - [Commits](https://github.com/webpack/webpack-cli/compare/webpack-cli@4.0.0...webpack-cli@4.1.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump babel-jest from 26.5.2 to 26.6.0 (#9451) Bumps [babel-jest](https://github.com/facebook/jest/tree/HEAD/packages/babel-jest) from 26.5.2 to 26.6.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/v26.6.0/packages/babel-jest) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump jest from 26.5.3 to 26.6.0 (#9455) Update @babel/parser to 7.12 (#9408) * Install babel/parser 7.12 * Add tests for babel/babel#12161 * Add test for babel/babel#12076 * Add test for babel/babel#12085 * Add test for babel/babel#12108 * Add test for babel/babel#12120 * Add test for babel/babel#12054 * Add test for babel/babel#12061 * Add test babel/babel#12093 * Add test for babel/babel#12065 * Add test for babel/babel#12111 * Add test for babel/babel#12072 * Switch syntax-module-attributes to syntax-import-assertion * Support "String import/export specifier" * Remove tests for module-attributes * Add changelog * Update to 7.12.3 * Fix by linter * Fix by spellchecker * Add tests for module attributes to errors * Add error test for module string name with import * Remove TSTypeCastExpression * Add tests for funny import-assertions * Update snapshots| * Add more tests Build(deps): Bump resolve from 1.17.0 to 1.18.1 (#9452) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump @types/node from 14.11.10 to 14.14.0 (#9461) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.11.10 to 14.14.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump codemirror-graphql from 0.12.2 to 0.12.3 in /website (#9462) Bumps [codemirror-graphql](https://github.com/graphql/graphiql) from 0.12.2 to 0.12.3. - [Release notes](https://github.com/graphql/graphiql/releases) - [Changelog](https://github.com/graphql/graphiql/blob/main/CHANGELOG.md) - [Commits](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.12.2...codemirror-graphql@0.12.3) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Refactor JS embed (#9433) Build(deps-dev): Bump webpack from 4.44.2 to 5.1.0 (#9373) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: fisker Build(deps): Bump @angular/compiler from 10.1.6 to 10.2.0 (#9472) Build(deps-dev): Bump eslint-config-prettier from 6.13.0 to 6.14.0 (#9468) Build(deps-dev): Bump rollup from 2.32.0 to 2.32.1 (#9469) Support TypeScript 4.1 via Babel (#9473) * Support Key Remapping In Mapped Types * Fix by Prettier * Add changelog * Fix jsfmt.spec.js * Update cspell.json Build(deps-dev): Bump webpack from 5.1.3 to 5.2.0 in /website (#9477) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump react and react-dom in /website (#9479) Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react) and [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom). These dependencies needed to be updated together. Updates `react` from 16.14.0 to 17.0.1 - [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/v17.0.1/packages/react) Updates `react-dom` from 16.14.0 to 17.0.1 - [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/v17.0.1/packages/react-dom) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump webpack from 5.1.3 to 5.2.0 (#9478) Support class-static-block proposal (#9476) * Support class-static-block proposal * Update changelog Support Flow this parameter annotations (#9457) Co-authored-by: fisker Add parens to object value that it's an assignment (#9484) Build(deps): Bump postcss from 8.1.1 to 8.1.2 (#9443) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: fisker Test "import assertions" on other parsers (#9475) Build(deps): Bump react and react-dom in /website (#9463) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: fisker Build(deps): Bump postcss from 8.1.2 to 8.1.3 (#9486) Build(deps-dev): Bump jest from 26.6.0 to 26.6.1 (#9487) Bumps [jest](https://github.com/facebook/jest) from 26.6.0 to 26.6.1. - [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/v26.6.0...v26.6.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Simplify cursor and range logic (#9389) Build(deps-dev): Bump babel-jest from 26.6.0 to 26.6.1 (#9488) Refactor `needs-parens.js` (#9485) Fix missing `esm` files in `dist/package.json` (#9491) Refactor function parameters print (#9489) Co-authored-by: Sosuke Suzuki Playground: only build needed files (#9480) Build(deps): Bump postcss-less from 3.1.4 to 4.0.0 (#9471) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: fisker Build(deps-dev): Bump eslint from 7.11.0 to 7.12.0 (#9497) Bumps [eslint](https://github.com/eslint/eslint) from 7.11.0 to 7.12.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.11.0...v7.12.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump terser-webpack-plugin from 5.0.0 to 5.0.1 (#9495) Bumps [terser-webpack-plugin](https://github.com/webpack-contrib/terser-webpack-plugin) from 5.0.0 to 5.0.1. - [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/v5.0.0...v5.0.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump postcss from 8.1.3 to 8.1.4 (#9496) Bumps [postcss](https://github.com/postcss/postcss) from 8.1.3 to 8.1.4. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/master/CHANGELOG.md) - [Commits](https://github.com/postcss/postcss/compare/8.1.3...8.1.4) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump @rollup/plugin-commonjs from 15.1.0 to 16.0.0 (#9512) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump eslint from 7.12.0 to 7.12.1 (#9505) Bumps [eslint](https://github.com/eslint/eslint) from 7.12.0 to 7.12.1. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.12.0...v7.12.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump @glimmer/syntax from 0.62.3 to 0.62.4 (#9508) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump @rollup/plugin-node-resolve from 9.0.0 to 10.0.0 (#9509) Build(deps-dev): Bump @rollup/plugin-replace from 2.3.3 to 2.3.4 (#9504) Build(deps-dev): Bump @glimmer/reference from 0.62.3 to 0.62.4 (#9511) Build(deps): Bump typescript from 4.0.3 to 4.0.5 (#9510) Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.0.3 to 4.0.5. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v4.0.3...v4.0.5) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Run tests on `Node.js` 15 (#9494) * Run tests on `Node.js` 15 * Switch `exclude` to `include` Build(deps-dev): Bump webpack from 5.2.0 to 5.3.0 in /website (#9517) Bumps [webpack](https://github.com/webpack/webpack) from 5.2.0 to 5.3.0. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](https://github.com/webpack/webpack/compare/v5.2.0...v5.3.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump webpack from 5.2.0 to 5.3.0 (#9518) Bumps [webpack](https://github.com/webpack/webpack) from 5.2.0 to 5.3.0. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](https://github.com/webpack/webpack/compare/v5.2.0...v5.3.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump eslint-config-prettier from 6.14.0 to 6.15.0 (#9516) Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.14.0 to 6.15.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.14.0...v6.15.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump terser-webpack-plugin from 5.0.1 to 5.0.2 (#9515) Build(deps): Bump camelcase from 6.1.0 to 6.2.0 (#9529) Build(deps-dev): Bump execa from 4.0.3 to 4.1.0 (#9527) Build(deps): Bump @angular/compiler from 10.2.0 to 10.2.1 (#9532) Build(deps-dev): Bump terser-webpack-plugin from 5.0.2 to 5.0.3 (#9530) Build(deps-dev): Bump webpack from 5.3.0 to 5.3.1 in /website (#9526) Build(deps-dev): Bump webpack from 5.3.0 to 5.3.1 (#9531) Improve `massageAST` (#9519) Build(deps): Bump flow-parser from 0.136.0 to 0.137.0 (#9528) Bumps [flow-parser](https://github.com/facebook/flow) from 0.136.0 to 0.137.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.136.0...v0.137.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Consistent type print (#9521) Flow: support `BigIntLiteralTypeAnnotation` and `BigIntTypeAnnotation` (#9523) Add `index` to `FastPath#each()` callback (#9499) Co-authored-by: Georgii Dolzhykov Build(deps-dev): Bump webpack from 5.3.1 to 5.3.2 in /website (#9542) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump graphql from 15.3.0 to 15.4.0 (#9506) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: fisker Build(deps-dev): Bump webpack from 5.3.1 to 5.3.2 (#9541) Refactor: Improve readability (#9539) Refactor `needs-parens.js` (part 2) (#9498) Treat more types as simple type (#9543) Revert breaking changes related to adding pure css parser for minor releasing (#9500) * revert without tests * Downgrade postcss-scss and postcss-less * Fix tests * Revert "Make `isSCSS*` function stricter (#9093)" This reverts commit 01f986bea959927375e1d551844ca7f50ec6fcff. * Revert "Remove `css` parser from `isLessParser` check (#9092)" This reverts commit c0bca1805de45d5f1aab9628cf45af64e4ef00fc. * Revert "Add pure css parser (#7933)" This reverts commit 589ebf670b8db4b21661fb551ff0b4822f8b63d6. * Disable `parser-postcss.js` minify * Try to fix build script * Update fs.mjs * Update fs.mjs * Style Co-authored-by: fisker Playground: serialize ast contains BigInt (#9525) Remove dead code (#9557) Refactor: `getParserName` -> `inferParserByLanguage` (#9556) Flow: Fix missing parentheses around prettier-ignored arguments (#9553) Co-authored-by: Georgii Dolzhykov Build(deps-dev): Bump cspell from 4.1.2 to 4.1.3 (#9567) Build(deps-dev): Bump rollup from 2.32.1 to 2.33.0 (#9566) Add HIGHTLIGHT mark to CHANGELOG (#9562) Build(deps-dev): Bump rollup from 2.33.0 to 2.33.1 (#9579) Bumps [rollup](https://github.com/rollup/rollup) from 2.33.0 to 2.33.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/v2.33.0...v2.33.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump jest from 26.6.1 to 26.6.2 (#9581) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump babel-jest from 26.6.1 to 26.6.2 (#9580) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Refactor: Use `locStart` and `locEnd` directly from `language-js/loc.js` (#9576) Remove `for-each-in` syntax (#9585) Flow: Improve comment types detection (#9563) Build(deps): Bump actions/checkout from v2.3.3 to v2.3.4 (#9598) Build(deps-dev): Bump @babel/types from 7.12.1 to 7.12.5 (#9595) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump webpack from 5.3.2 to 5.4.0 in /website (#9594) Bumps [webpack](https://github.com/webpack/webpack) from 5.3.2 to 5.4.0. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](https://github.com/webpack/webpack/compare/v5.3.2...v5.4.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump @babel/preset-react in /website (#9596) Bumps [@babel/preset-react](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-react) from 7.12.1 to 7.12.5. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.12.5/packages/babel-preset-react) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump webpack from 5.3.2 to 5.4.0 (#9593) Bumps [webpack](https://github.com/webpack/webpack) from 5.3.2 to 5.4.0. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](https://github.com/webpack/webpack/compare/v5.3.2...v5.4.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump babel-jest from 26.6.2 to 26.6.3 (#9600) Bumps [babel-jest](https://github.com/facebook/jest/tree/HEAD/packages/babel-jest) from 26.6.2 to 26.6.3. - [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/v26.6.3/packages/babel-jest) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump jest from 26.6.2 to 26.6.3 (#9599) Fix more `locStart`/`locEnd` from `options` (#9590) JS: Use `isBlockComment`/`isLineComment` (#9575) Changelog edits for 2.2 (#9603) Build(deps-dev): Bump webpack-cli from 4.1.0 to 4.2.0 in /website (#9606) Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 4.1.0 to 4.2.0. - [Release notes](https://github.com/webpack/webpack-cli/releases) - [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md) - [Commits](https://github.com/webpack/webpack-cli/compare/webpack-cli@4.1.0...webpack-cli@4.2.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Add `meriyah` parser (#9514) Refactor: Use `ignoredProperties` for all languages (#9586) Build(deps): Bump @angular/compiler from 10.2.1 to 10.2.2 (#9605) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Fix a condition (#9560) Build(deps-dev): Bump @babel/types from 7.12.5 to 7.12.6 (#9607) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Enable `directly-loc-start-end` in `language-css` (#9591) Refactor: Extract `printFunctionParameters` (#9604) Simplify flow `Variance` node print (#9571) Exclude inline comments from flow annotation comments (#9572) Add parser check to flow-comment related checks (#9592) Build(deps): Bump dot-prop from 4.2.0 to 4.2.1 in /website (#9614) Bumps [dot-prop](https://github.com/sindresorhus/dot-prop) from 4.2.0 to 4.2.1. - [Release notes](https://github.com/sindresorhus/dot-prop/releases) - [Commits](https://github.com/sindresorhus/dot-prop/compare/v4.2.0...v4.2.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Test: snapshot parse errors (#9467) Build(deps): Bump @babel/parser from 7.12.3 to 7.12.5 (#9597) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: sosukesuzuki Co-authored-by: fisker Build(deps-dev): Bump eslint from 7.12.1 to 7.13.0 (#9622) Bumps [eslint](https://github.com/eslint/eslint) from 7.12.1 to 7.13.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.12.1...v7.13.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump meriyah from 3.1.2 to 3.1.6 (#9624) * Build(deps): Bump meriyah from 3.1.2 to 3.1.6 Bumps [meriyah](https://github.com/meriyah/meriyah) from 3.1.2 to 3.1.6. - [Release notes](https://github.com/meriyah/meriyah/releases) - [Changelog](https://github.com/meriyah/meriyah/blob/master/CHANGELOG.md) - [Commits](https://github.com/meriyah/meriyah/compare/v3.1.2...v3.1.6) Signed-off-by: dependabot[bot] * Fix typing Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: fisker Build(deps): Bump diff from 4.0.2 to 5.0.0 (#9623) Bumps [diff](https://github.com/kpdecker/jsdiff) from 4.0.2 to 5.0.0. - [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/compare/v4.0.2...v5.0.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Enable `directly-loc-start-end` for all languages (#9610) Move prettier-ignore related functions into `language-js/` (#9555) Build(deps): Bump @glimmer/syntax from 0.62.4 to 0.63.4 (#9635) Bumps [@glimmer/syntax](https://github.com/glimmerjs/glimmer-vm) from 0.62.4 to 0.63.4. - [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.62.4...v0.63.4) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump cspell from 4.1.3 to 4.1.5 (#9633) Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 4.1.3 to 4.1.5. - [Release notes](https://github.com/streetsidesoftware/cspell/releases) - [Commits](https://github.com/streetsidesoftware/cspell/compare/cspell@4.1.3...cspell@4.1.5) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump @angular/compiler from 10.2.2 to 10.2.3 (#9631) Bumps [@angular/compiler](https://github.com/angular/angular/tree/HEAD/packages/compiler) from 10.2.2 to 10.2.3. - [Release notes](https://github.com/angular/angular/releases) - [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md) - [Commits](https://github.com/angular/angular/commits/10.2.3/packages/compiler) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump @glimmer/reference from 0.62.4 to 0.63.4 (#9634) Refactor: Add `getCallArguments` and `iterateCallArgumentsPath` (#9608) DRY `FastPath` (#9617) Build(deps-dev): Bump babel-loader from 8.1.0 to 8.2.1 in /website (#9637) Build(deps): Bump @glimmer/syntax from 0.63.4 to 0.63.5 (#9640) Build(deps-dev): Bump @glimmer/reference from 0.63.4 to 0.63.5 (#9639) Build(deps-dev): Bump babel-loader from 8.1.0 to 8.2.1 (#9638) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Extract `printTemplateLiteral` (#9646) Revert #9011, don’t add parens when yielding simple JSX expressions (#9650) Vue: Consistent slot, support Vue3 (#9609) Typescript: Fix `prettier-ignore`d mapped types (#9551) Co-authored-by: Georgii Dolzhykov Fix glimmer `locStart` and `locEnd` (#9626) Fix renamed function `isNodeIgnoreComment` -> `isPrettierIgnoreComment` Markdown: Fix extra empty line added after empty table (#9654) Lint: Report duplicated changelog (#9666) Rename `preprocess` and `postprocess` file (#9651) Refactor: Reduce comment related functions parameters (#9621) Build(deps-dev): Bump eslint-plugin-jest from 24.1.0 to 24.1.3 (#9657) Build(deps): Bump @glimmer/syntax from 0.63.5 to 0.64.0 (#9656) Build(deps): Bump n-readlines from 1.0.0 to 1.0.1 (#9647) Flatten function expression parameters in hugged last argument (#9662) Fixes #3376 This was done for arrow functions in #1305 ("Avoid breaking arguments for last arg expansion"). This PR enables the same for function expressions unless the function expression is the only argument. Build(deps): Bump resolve from 1.18.1 to 1.19.0 (#9641) Build(deps-dev): Bump @glimmer/reference from 0.63.5 to 0.65.0 (#9675) Update `remark-math` to v3 (#7938) * bump remark-math to 3.0.1 * escape $ only it was escaped in the input * remove unsupported syntax from tests remark-math@3 doesn't support text after the closing fence ($$). Such $$ aren't parsed as a closing fence anymore. * refactor * add a test Co-authored-by: Georgii Dolzhykov Fix comments in `require()` with no argument (#9670) JS: Refactor embed (#9653) Refactor: Simplify markdown table print (#9660) Reuse dirPath variable (#9683) Build(deps): Bump flow-parser from 0.137.0 to 0.138.0 (#9688) Bumps [flow-parser](https://github.com/facebook/flow) from 0.137.0 to 0.138.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.137.0...v0.138.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump cspell from 4.1.5 to 4.2.0 (#9684) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump rollup from 2.33.1 to 2.33.2 (#9686) Bumps [rollup](https://github.com/rollup/rollup) from 2.33.1 to 2.33.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/v2.33.1...v2.33.2) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump @glimmer/syntax from 0.64.0 to 0.65.0 (#9685) Bumps [@glimmer/syntax](https://github.com/glimmerjs/glimmer-vm) from 0.64.0 to 0.65.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.64.0...v0.65.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump linguist-languages from 7.11.1 to 7.12.1 (#9687) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: fisker Test: Allow multiple parsers in error test (#9648) Moved pre-commit support to github.com/pre-commit/mirrors-prettier (#8937) Co-authored-by: fisker Cheung Co-authored-by: sosukesuzuki Build(deps): Bump @glimmer/syntax from 0.65.0 to 0.66.0 (#9693) Build(deps-dev): Bump @glimmer/reference from 0.65.0 to 0.66.0 (#9695) Bumps @glimmer/reference from 0.65.0 to 0.66.0. Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps): Bump codecov/codecov-action from v1.0.14 to v1.0.15 (#9692) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> YAML: Fix comments in `flowMapping` and `flowSequence` (#9669) YAML: Apply `trailingComma` option (#9665) Support TypeScript 4.1 via typescript-estree (#9636) * Update typescript and typescript-estree * Add AST transformation for TSTemplateLiteralType * Update tests for template-literal-types * Fix transformChainExpression * Update tests for key-remapping-in-mapped-types * Implement recoverInvalidDecorators * Update changelog * Avoid typecheck error * Add os.platform() shim * Update config.js * Update config.js * Shim os.cpus * Update `process.versions.node` * Attempt to fix build * Update ts parserOptions * Fix code style * Remove `errorOnUnknownASTType`, fix code style * Use `[] ||` instead of `[] //` * Fix hack * Add invalid tests * checkMissingDecorators * Update tests * Fix tests * Add comment * Revert "Implement recoverInvalidDecorators" This reverts commit 27e7b46ed41df36fb585791117c85e1b2dab932c. * Add ref pr link * Simplify logic * Don't transform `TSTemplateLiteralType` * Add `TSTemplateLiteralType` as simple type * Fix tests * Update comments * Add comment * Fix logic * Minor tweak * use multiple parsers * Update @typescript-eslint/typescript-estree to v4.8.0 * Switch to `parseWithNodeMaps` * Rename `esNode` -> `esTreeNode` * Update @typescript-eslint/typescript-estree to 4.8.1-alpha.1 * Use @typescript-eslint/typescript-estree 4.8.1 Co-authored-by: fisker Cheung Add clean-changelog-unreleased step to release script (#9682) Build(deps-dev): Bump webpack from 5.4.0 to 5.5.0 (#9706) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump webpack from 5.4.0 to 5.5.0 in /website (#9705) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump cspell from 4.2.0 to 4.2.2 (#9708) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump @typescript-eslint/types from 3.10.1 to 4.8.1 (#9707) Fix #9702 - Flush line suffix contents at the end of document (#9703) * Failing test case for flushing line-suffix contents * Flush remaining line-suffix contents at the end of document Refactor: Improve location compare (#9709) Fix link to GitHub profile (#9712) Remove unused parenStart (#9699) Refactor: Module releated format (#9691) Extract array and object print (#9698) Build(deps-dev): Bump webpack from 5.5.0 to 5.5.1 (#9718) Bumps [webpack](https://github.com/webpack/webpack) from 5.5.0 to 5.5.1. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](https://github.com/webpack/webpack/compare/v5.5.0...v5.5.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump webpack from 5.5.0 to 5.5.1 in /website (#9716) Bumps [webpack](https://github.com/webpack/webpack) from 5.5.0 to 5.5.1. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](https://github.com/webpack/webpack/compare/v5.5.0...v5.5.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Build(deps-dev): Bump rollup from 2.33.2 to 2.33.3 (#9717) Bumps [rollup](https://github.com/rollup/rollup) from 2.33.2 to 2.33.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/v2.33.2...v2.33.3) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Extract JSX related print functions (#9714) Extract printClass and printTypeParameters (#9713) Extract function related functions (#9721) Extract printInterface and printCallExpression (#9715) Extract `printAssignment`, `printBinaryishExpression`, and `printComment` (#9722) Extract `printStatementSequence`, `printMemberExpression`, and `printBlock` (#9723) Update to typescript 4.1.2 (#9725) Release 2.2.0 Merge tag '2.2.0' into elastic Release 2.2.0 --- .eslintrc.yml | 12 +- .flowconfig | 4 - .git-blame-ignore-revs | 31 + .github/ISSUE_TEMPLATE/formatting.md | 2 +- .github/ISSUE_TEMPLATE/integration.md | 2 +- .github/workflows/dev-package-test.yml | 6 +- .github/workflows/dev-test.yml | 22 +- .github/workflows/lint.yml | 6 +- .github/workflows/prod-test.yml | 28 +- .gitignore | 6 + .pre-commit-hooks.yaml | 7 +- CHANGELOG.md | 6 + CONTRIBUTING.md | 9 +- ...t-intro.md => BLOG_POST_INTRO_TEMPLATE.md} | 0 changelog_unreleased/TEMPLATE.md | 2 +- changelog_unreleased/api/pr-8983.md | 13 + changelog_unreleased/api/pr-9371.md | 19 + changelog_unreleased/cli/pr-9298.md | 15 + changelog_unreleased/css/pr-9209.md | 42 + changelog_unreleased/flow/pr-9071.md | 18 + changelog_unreleased/flow/pr-9432.md | 22 + changelog_unreleased/flow/pr-9457.md | 21 + changelog_unreleased/flow/pr-9523.md | 18 + changelog_unreleased/flow/pr-9543.md | 25 + changelog_unreleased/flow/pr-9553.md | 22 + changelog_unreleased/flow/pr-9563.md | 22 + changelog_unreleased/handlebars/pr-9403.md | 29 + changelog_unreleased/html/pr-9368.md | 14 + changelog_unreleased/javascript/pr-9000.md | 9 + changelog_unreleased/javascript/pr-9078.md | 20 + changelog_unreleased/javascript/pr-9278.md | 61 + changelog_unreleased/javascript/pr-9341.md | 33 + changelog_unreleased/javascript/pr-9345.md | 20 + changelog_unreleased/javascript/pr-9408.md | 34 + changelog_unreleased/javascript/pr-9431.md | 21 + changelog_unreleased/javascript/pr-9435.md | 16 + changelog_unreleased/javascript/pr-9650.md | 17 + changelog_unreleased/javascript/pr-9662.md | 29 + changelog_unreleased/javascript/pr-9670.md | 13 + changelog_unreleased/less/pr-9356.md | 19 + changelog_unreleased/markdown/pr-7938.md | 19 + changelog_unreleased/markdown/pr-8786.md | 12 + changelog_unreleased/markdown/pr-9275.md | 21 + changelog_unreleased/markdown/pr-9365.md | 38 + changelog_unreleased/markdown/pr-9654.md | 29 + changelog_unreleased/mdx/pr-9267.md | 35 + changelog_unreleased/typescript/pr-9318.md | 22 + changelog_unreleased/typescript/pr-9473.md | 38 + changelog_unreleased/typescript/pr-9484.md | 13 + changelog_unreleased/typescript/pr-9521.md | 25 + changelog_unreleased/typescript/pr-9551.md | 22 + changelog_unreleased/vue/pr-9225.md | 57 + changelog_unreleased/vue/pr-9609.md | 73 + changelog_unreleased/yaml/pr-9665.md | 46 + changelog_unreleased/yaml/pr-9669.md | 60 + cspell.json | 21 +- docs/browser.md | 25 +- docs/options.md | 1 + docs/plugins.md | 171 +- docs/precommit.md | 4 +- jest.config.js | 57 +- netlify.toml | 2 +- package.json | 102 +- scripts/build-docs.js | 2 +- scripts/build/build.js | 67 +- scripts/build/bundler.js | 150 +- scripts/build/config.js | 19 +- scripts/build/rollup-plugins/native-shims.js | 2 +- scripts/build/shims/{assert.js => assert.mjs} | 0 scripts/build/shims/{events.js => events.mjs} | 0 scripts/build/shims/fs.mjs | 3 + scripts/build/shims/os.js | 3 - scripts/build/shims/os.mjs | 5 + scripts/build/shims/path.js | 18 - scripts/build/shims/path.mjs | 2 + scripts/build/shims/{tty.js => tty.mjs} | 0 scripts/clean-changelog-unreleased.js | 17 + scripts/draft-blog-post.js | 29 +- scripts/lint-changelog.js | 30 +- scripts/release/package.json | 2 +- scripts/release/steps/bump-prettier.js | 11 + .../release/steps/update-dependents-count.js | 19 + scripts/release/yarn.lock | 7 +- ...r-parent-property-check-in-needs-parens.js | 95 + .../directly-loc-start-end.js | 38 + .../index.js | 3 + .../package.json | 2 +- .../prefer-fast-path-each.js | 42 + src/_customizations/has-line-comment.js | 2 +- src/cli/util.js | 6 +- src/common/fast-path.js | 37 +- src/common/third-party.js | 2 +- src/common/util.js | 68 +- src/config/resolve-config.js | 2 + src/document/doc-printer.js | 7 + src/language-css/clean.js | 24 +- src/language-css/index.js | 8 +- src/language-css/loc.js | 38 +- src/language-css/parser-postcss.js | 37 +- src/language-css/printer-postcss.js | 61 +- src/language-css/utils.js | 9 + src/language-graphql/loc.js | 17 + src/language-graphql/parser-graphql.js | 32 +- src/language-graphql/printer-graphql.js | 41 +- src/language-handlebars/clean.js | 10 +- src/language-handlebars/loc.js | 11 + src/language-handlebars/parser-glimmer.js | 71 +- src/language-handlebars/printer-glimmer.js | 64 +- src/language-handlebars/utils.js | 3 +- src/language-html/clean.js | 20 +- src/language-html/conditional-comment.js | 5 +- src/language-html/loc.js | 11 + src/language-html/parser-html.js | 45 +- .../{preprocess.js => print-preprocess.js} | 10 +- src/language-html/printer-html.js | 27 +- src/language-html/syntax-vue.js | 6 +- src/language-html/utils.js | 33 +- src/language-js/clean.js | 48 +- src/language-js/comments.js | 495 +- src/language-js/embed.js | 489 +- src/language-js/embed/css.js | 103 + src/language-js/embed/graphql.js | 114 + src/language-js/embed/html.js | 109 + src/language-js/embed/markdown.js | 42 + src/language-js/html-binding.js | 23 +- src/language-js/index.js | 42 +- src/language-js/loc.js | 38 + src/language-js/needs-parens.js | 331 +- .../{postprocess.js => parse-postprocess.js} | 100 +- src/language-js/parser-babel.js | 107 +- src/language-js/parser-espree.js | 58 + src/language-js/parser-flow.js | 17 +- src/language-js/parser-meriyah.js | 90 + src/language-js/parser-typescript.js | 31 +- .../{preprocess.js => print-preprocess.js} | 0 src/language-js/print/array.js | 134 + src/language-js/print/assignment.js | 95 + src/language-js/print/binaryish.js | 308 ++ src/language-js/print/block.js | 119 + src/language-js/print/call-arguments.js | 43 +- src/language-js/print/call-expression.js | 103 + src/language-js/print/class.js | 167 + src/language-js/print/comment.js | 74 + src/language-js/print/function-parameters.js | 197 + src/language-js/print/function.js | 354 ++ src/language-js/print/interface.js | 83 + src/language-js/print/jsx.js | 721 +++ src/language-js/print/member-chain.js | 7 +- src/language-js/print/member.js | 67 + src/language-js/print/misc.js | 67 +- src/language-js/print/module.js | 245 +- src/language-js/print/object.js | 242 + src/language-js/print/property.js | 100 + src/language-js/print/statement.js | 151 + src/language-js/print/template-literal.js | 232 + src/language-js/print/ternary.js | 11 +- src/language-js/print/type-annotation.js | 68 + src/language-js/print/type-parameters.js | 100 + src/language-js/printer-estree-json.js | 31 +- src/language-js/printer-estree.js | 3541 ++------------ src/language-js/types/estree.d.ts | 19 +- src/language-js/utils.js | 315 +- src/language-markdown/clean.js | 77 + src/language-markdown/embed.js | 10 +- src/language-markdown/loc.js | 11 + src/language-markdown/parser-markdown.js | 33 +- .../{preprocess.js => print-preprocess.js} | 28 +- src/language-markdown/printer-markdown.js | 259 +- src/language-markdown/utils.js | 50 +- src/language-yaml/loc.js | 11 + src/language-yaml/parser-yaml.js | 10 +- src/language-yaml/printer-yaml.js | 49 +- src/main/comments.js | 35 +- src/main/core-options.js | 2 + src/main/core.js | 181 +- src/main/massage-ast.js | 14 +- src/main/parser.js | 6 +- src/main/range-util.js | 2 + .../cursor/__snapshots__/jsfmt.spec.js.snap | 1 + .../range/__snapshots__/jsfmt.spec.js.snap | 1 + .../__snapshots__/jsfmt.spec.js.snap | 2 +- .../flow-repo/def_site_variance/jsfmt.spec.js | 2 +- .../comments/__snapshots__/jsfmt.spec.js.snap | 19 + .../__snapshots__/jsfmt.spec.js.snap | 30 + tests/flow/comments/babel-only/jsfmt.spec.js | 1 + .../comments/babel-only/type_annotations-3.js | 9 + tests/flow/comments/type_annotations-2.js | 4 + .../__snapshots__/jsfmt.spec.js.snap | 50 + .../enum-unknown-members-empty.js | 5 + .../enum-unknown-members.js | 7 + .../flow/enums-unknown-members/jsfmt.spec.js | 1 + .../ignore/__snapshots__/jsfmt.spec.js.snap | 38 + tests/flow/ignore/type-cast-expression.js | 13 + .../__snapshots__/jsfmt.spec.js.snap | 246 + .../flow/this-annotation/declare_function.js | 7 + .../this-annotation/function_declaration.js | 7 + tests/flow/this-annotation/function_type.js | 7 + tests/flow/this-annotation/jsfmt.spec.js | 6 + tests/flow/this-annotation/line_break.js | 25 + tests/flow/this-annotation/method.js | 7 + .../__snapshots__/jsfmt.spec.js.snap | 39 + .../this-annotation/parentheses/jsfmt.spec.js | 2 + .../parentheses/only-parameter.js | 3 + tests/flow/this-annotation/union_type.js | 11 + .../__snapshots__/jsfmt.spec.js.snap | 22 +- tests/flow/type-parameters/jsfmt.spec.js | 2 +- tests/flow/type-parameters/simple-types.js | 4 + .../variance/__snapshots__/jsfmt.spec.js.snap | 2 +- tests/flow/variance/jsfmt.spec.js | 2 +- .../__snapshots__/jsfmt.spec.js.snap | 154 + tests/graphql/deprecation/directives.graphql | 71 + tests/graphql/deprecation/jsfmt.spec.js | 1 + .../__snapshots__/jsfmt.spec.js.snap | 27 + tests/graphql/prettier-ignore/jsfmt.spec.js | 1 + .../prettier-ignore-comment.graphql | 7 + .../range/__snapshots__/jsfmt.spec.js.snap | 1 + .../__snapshots__/jsfmt.spec.js.snap | 46 + tests/handlebars/whitespace/textarea.hbs | 19 + .../basics/__snapshots__/jsfmt.spec.js.snap | 42 + tests/html/basics/issue-9368-2.html | 1 + tests/html/basics/issue-9368-3.html | 1 + tests/html/basics/issue-9368.html | 1 + .../__snapshots__/jsfmt.spec.js.snap | 122 +- tests/js/arrow-call/arrow_call.js | 5 - tests/js/arrow-call/class-property.js | 4 + tests/js/arrow-call/jsfmt.spec.js | 10 +- .../__snapshots__/jsfmt.spec.js.snap | 18 + tests/js/arrows-bind/jsfmt.spec.js | 2 +- .../__snapshots__/jsfmt.spec.js.snap | 16 + .../arrows/newline-before-arrow/jsfmt.spec.js | 7 +- .../__snapshots__/jsfmt.spec.js.snap | 531 +- tests/js/babel-plugins/class-static-block.js | 11 + .../import-assertions-dynamic.js | 1 + .../babel-plugins/import-assertions-static.js | 1 + tests/js/babel-plugins/jsfmt.spec.js | 56 +- .../module-attributes-dynamic.js | 1 - .../babel-plugins/module-attributes-static.js | 1 - tests/js/babel-plugins/module-string-names.js | 2 + .../__snapshots__/jsfmt.spec.js.snap | 21 + tests/js/binary-expressions/jsfmt.spec.js | 4 +- tests/js/binary-expressions/like-regexp.js | 1 + .../__snapshots__/jsfmt.spec.js.snap | 244 + tests/js/bind-expressions/jsfmt.spec.js | 7 +- tests/js/bom/__snapshots__/jsfmt.spec.js.snap | 9 + .../__snapshots__/jsfmt.spec.js.snap | 73 + tests/js/call/no-argument/import.js | 2 + tests/js/call/no-argument/jsfmt.spec.js | 8 + tests/js/call/no-argument/special-cases.js | 6 + .../__snapshots__/jsfmt.spec.js.snap | 10 + tests/js/class-comment/jsfmt.spec.js | 6 +- .../__snapshots__/jsfmt.spec.js.snap | 87 + .../class-static-block/class-static-block.js | 29 + tests/js/class-static-block/jsfmt.spec.js | 1 + .../__snapshots__/jsfmt.spec.js.snap | 82 +- tests/js/classes-private-fields/jsfmt.spec.js | 9 +- .../classes/__snapshots__/jsfmt.spec.js.snap | 70 + tests/js/classes/assignment.js | 25 + tests/js/classes/jsfmt.spec.js | 4 +- .../__snapshots__/jsfmt.spec.js.snap | 14 + .../js/classes/top-level-super/jsfmt.spec.js | 4 +- .../__snapshots__/jsfmt.spec.js.snap | 22 + .../comments-pipeline-own-line/jsfmt.spec.js | 2 +- .../comments/__snapshots__/jsfmt.spec.js.snap | 26 +- .../__snapshots__/jsfmt.spec.js.snap | 31 + tests/js/comments/flow-types/inline.js | 9 + tests/js/comments/flow-types/jsfmt.spec.js | 1 + .../__snapshots__/jsfmt.spec.js.snap | 19 +- tests/js/comments/html-like/comment.js | 3 + tests/js/comments/html-like/jsfmt.spec.js | 1 + tests/js/comments/while.js | 3 + .../cursor/__snapshots__/jsfmt.spec.js.snap | 39 +- tests/js/cursor/jsfmt.spec.js | 2 +- tests/js/cursor/range-3.js | 4 +- .../__snapshots__/jsfmt.spec.js.snap | 1 + .../__snapshots__/jsfmt.spec.js.snap | 20 + tests/js/decorator-comments/jsfmt.spec.js | 4 +- .../__snapshots__/jsfmt.spec.js.snap | 27 + tests/js/decorators-export/jsfmt.spec.js | 4 +- .../__snapshots__/jsfmt.spec.js.snap | 113 + tests/js/decorators/jsfmt.spec.js | 4 +- tests/js/do/__snapshots__/jsfmt.spec.js.snap | 22 + tests/js/do/jsfmt.spec.js | 2 +- .../__snapshots__/jsfmt.spec.js.snap | 42 + tests/js/dynamic-import/assertions.js | 1 + tests/js/dynamic-import/jsfmt.spec.js | 9 +- .../__snapshots__/jsfmt.spec.js.snap | 11 + tests/js/empty-paren-comment/jsfmt.spec.js | 4 +- tests/js/eol/__snapshots__/jsfmt.spec.js.snap | 40 +- .../escaped/__snapshots__/jsfmt.spec.js.snap | 14 + tests/js/export-default/escaped/jsfmt.spec.js | 4 +- .../__snapshots__/jsfmt.spec.js.snap | 20 + tests/js/export-extension/jsfmt.spec.js | 2 +- .../__snapshots__/jsfmt.spec.js.snap | 18 +- tests/js/export-star/export-star-as.js | 2 + tests/js/export-star/export-star.js | 2 + tests/js/export-star/jsfmt.spec.js | 1 + .../export/__snapshots__/jsfmt.spec.js.snap | 37 + tests/js/export/same-local-and-exported.js | 3 + .../exports/__snapshots__/jsfmt.spec.js.snap | 22 + tests/js/exports/jsfmt.spec.js | 2 +- tests/js/functional-composition/jsfmt.spec.js | 6 +- .../__snapshots__/jsfmt.spec.js.snap | 210 + .../__snapshots__/jsfmt.spec.js.snap | 114 + .../bracket-spacing/dynamic-import.js | 1 + .../bracket-spacing/empty.js | 1 + .../bracket-spacing/jsfmt.spec.js | 17 + .../bracket-spacing/re-export.js | 1 + .../bracket-spacing/static-import.js | 1 + tests/js/import-assertions/dynamic-import.js | 1 + tests/js/import-assertions/empty.js | 7 + tests/js/import-assertions/jsfmt.spec.js | 20 + tests/js/import-assertions/multi-types.js | 1 + .../not-import-assertions.js | 2 + tests/js/import-assertions/re-export.js | 3 + tests/js/import-assertions/static-import.js | 1 + tests/js/import-assertions/without-from.js | 1 + .../import/__snapshots__/jsfmt.spec.js.snap | 37 + tests/js/import/same-local-and-imported.js | 3 + .../__snapshots__/jsfmt.spec.js.snap | 7 + tests/js/invalid-code/jsfmt.spec.js | 2 +- .../js/label/__snapshots__/jsfmt.spec.js.snap | 17 + tests/js/label/block-statement-and-regexp.js | 1 + .../__snapshots__/jsfmt.spec.js.snap | 128 +- .../function-expression.js | 20 + .../literal/__snapshots__/jsfmt.spec.js.snap | 55 + tests/js/literal/invalid-exponent.js | 1 + tests/js/literal/jsfmt.spec.js | 4 +- .../__snapshots__/jsfmt.spec.js.snap | 39 +- tests/js/logical-assignment/invalid.js | 1 + tests/js/logical-assignment/jsfmt.spec.js | 4 +- .../logical-assignment/logical-assignment.js | 1 - .../module-attributes-dynamic.js | 1 - .../module-attributes-static.js | 1 - .../__snapshots__/jsfmt.spec.js.snap | 86 + tests/js/module-string-names/jsfmt.spec.js | 1 + .../module-string-names-export.js | 8 + .../module-string-names-import.js | 3 + .../__snapshots__/jsfmt.spec.js.snap | 140 + .../js/multiparser-comments/comment-inside.js | 61 + .../__snapshots__/jsfmt.spec.js.snap | 121 + tests/js/multiparser-css/issue-5961.js | 35 + tests/js/multiparser-css/issue-9072.js | 13 + .../__snapshots__/jsfmt.spec.js.snap | 117 + tests/js/multiparser-invalid/jsfmt.spec.js | 3 + tests/js/multiparser-invalid/text.js | 31 + .../__snapshots__/jsfmt.spec.js.snap | 40 + .../no-semi-babylon-extensions/jsfmt.spec.js | 7 +- .../no-semi/__snapshots__/jsfmt.spec.js.snap | 38 +- tests/js/no-semi/class.js | 4 +- tests/js/no-semi/jsfmt.spec.js | 6 +- .../js/object-property-comment/jsfmt.spec.js | 4 +- .../objects/__snapshots__/jsfmt.spec.js.snap | 104 +- .../__snapshots__/jsfmt.spec.js.snap | 39 + .../assignment-expression/jsfmt.spec.js | 1 + .../assignment-expression/object-property.js | 3 + .../assignment-expression/object-value.js | 7 + .../js/objects/invalid-accessor-generator.js | 9 + tests/js/objects/invalid-setter.js | 1 + tests/js/objects/jsfmt.spec.js | 15 +- .../{right_break.js => right-break.js} | 0 .../__snapshots__/jsfmt.spec.js.snap | 18 + tests/js/partial-application/jsfmt.spec.js | 2 +- .../__snapshots__/jsfmt.spec.js.snap | 76 + tests/js/pipeline-operator/jsfmt.spec.js | 2 +- .../__snapshots__/jsfmt.spec.js.snap | 9 + tests/js/private-in/jsfmt.spec.js | 2 +- .../__snapshots__/jsfmt.spec.js.snap | 40 + tests/js/quote-props/jsfmt.spec.js | 8 + .../js/range/__snapshots__/jsfmt.spec.js.snap | 62 + .../record/__snapshots__/jsfmt.spec.js.snap | 132 + tests/js/record/jsfmt.spec.js | 2 +- .../__snapshots__/jsfmt.spec.js.snap | 59 + tests/js/reserved-word/interfaces.js | 14 + tests/js/reserved-word/jsfmt.spec.js | 1 + .../js/rest/__snapshots__/jsfmt.spec.js.snap | 18 + tests/js/rest/jsfmt.spec.js | 5 +- tests/js/test-declarations/jsfmt.spec.js | 4 +- .../__snapshots__/jsfmt.spec.js.snap | 18 + tests/js/throw_expressions/jsfmt.spec.js | 2 +- .../__snapshots__/jsfmt.spec.js.snap | 14 + tests/js/top-level-await/jsfmt.spec.js | 4 +- .../__snapshots__/jsfmt.spec.js.snap | 18 + tests/js/trailing-whitespace/jsfmt.spec.js | 4 +- .../js/tuple/__snapshots__/jsfmt.spec.js.snap | 82 + tests/js/tuple/jsfmt.spec.js | 2 +- .../__snapshots__/jsfmt.spec.js.snap | 20 + tests/js/v8_intrinsic/jsfmt.spec.js | 2 +- .../__snapshots__/jsfmt.spec.js.snap | 35 + tests/js/variable_declarator/invalid-const.js | 1 + tests/js/variable_declarator/jsfmt.spec.js | 8 +- .../js/yield/__snapshots__/jsfmt.spec.js.snap | 15 +- tests/js/yield/jsfmt.spec.js | 4 +- .../range/__snapshots__/jsfmt.spec.js.snap | 4 + .../comments/__snapshots__/jsfmt.spec.js.snap | 36 + tests/less/comments/value-lists.less | 11 + .../__snapshots__/jsfmt.spec.js.snap | 88 + .../markdown/fenced-code-block/jsfmt.spec.js | 7 + .../math/__snapshots__/jsfmt.spec.js.snap | 17 +- tests/markdown/math/math-like.md | 2 + tests/markdown/math/remark-math.md | 2 +- .../__snapshots__/jsfmt.spec.js.snap | 30 +- .../markdown-preview-enhanced.md | 17 - .../multiparser-js/meta-in-code-block.md | 23 + .../spec/__snapshots__/jsfmt.spec.js.snap | 2 +- .../__snapshots__/jsfmt.spec.js.snap | 140 + .../markdown/table/empty-table/empty-table.md | 11 + .../markdown/table/empty-table/jsfmt.spec.js | 4 + .../__snapshots__/jsfmt.spec.js.snap | 776 +++ .../markdown/wiki-link/additional-spacing.md | 1 + tests/markdown/wiki-link/end-of-line.md | 2 + .../exceeds-line-length-in-prose-broken.md | 2 + .../wiki-link/exceeds-line-length-in-prose.md | 1 + .../markdown/wiki-link/exceeds-line-length.md | 1 + .../wiki-link/extra-brackets-leading.md | 2 + .../wiki-link/extra-brackets-trailing.md | 2 + tests/markdown/wiki-link/extra-brackets.md | 2 + tests/markdown/wiki-link/jsfmt.spec.js | 4 + tests/markdown/wiki-link/multi-line.md | 2 + tests/markdown/wiki-link/nested-link.md | 1 + tests/markdown/wiki-link/simple.md | 1 + tests/markdown/wiki-link/with-whitespace.md | 1 + .../__snapshots__/jsfmt.spec.js.snap | 30 + .../issue-9260.mdx | 8 + .../jsfmt.spec.js | 1 + .../__snapshots__/jsfmt.spec.js.snap | 333 ++ .../block-comment-2.js | 3 + .../block-comment.js | 3 + .../filename.js.flow | 1 + .../inline-comment-2.js | 3 + .../inline-comment-3.js | 4 + .../inline-comment.js | 3 + .../jsfmt.spec.js | 0 .../like-a-pragma.js | 3 + .../not-flow-2.js | 3 + .../not-flow-3.js | 2 + .../not-flow-4.js | 2 + .../not-flow-5.js | 2 + .../babel-redirect-to-babel-flow/not-flow.js | 1 + .../babel-redirect-to-babel-flow/pragma-2.js | 5 + .../pragma-react.js | 12 + .../babel-redirect-to-babel-flow/pragma.js | 5 + .../shebang-inline-comment.js | 5 + .../shebang-pragma.js | 7 + .../mdx/__snapshots__/jsfmt.spec.js.snap | 5 - tests/misc/empty/jsfmt.spec.js | 2 +- .../__snapshots__/jsfmt.spec.js.snap | 19 + .../errors/babel-flow/async-arrow-invalid.js | 3 + tests/misc/errors/babel-flow/jsfmt.spec.js | 1 + .../babel-ts/__snapshots__/jsfmt.spec.js.snap | 26 +- tests/misc/errors/babel-ts/issue-8041.ts | 1 - .../type-annotation-expr-statement.ts | 1 + .../errors/babel-ts/type-annotation-func.ts | 1 + .../babel-ts/type-annotation-in-jsx.tsx | 5 + .../__snapshots__/jsfmt.spec.js.snap | 2 +- .../flow/__snapshots__/jsfmt.spec.js.snap | 22 +- tests/misc/errors/flow/async-arrow-invalid.js | 3 + .../graphql/__snapshots__/jsfmt.spec.js.snap | 2 +- .../__snapshots__/jsfmt.spec.js.snap | 32 +- tests/misc/errors/handlebars/invalid-2.hbs | 3 + tests/misc/errors/handlebars/invalid-3.hbs | 3 + .../__snapshots__/jsfmt.spec.js.snap | 96 + .../decorator.ts | 0 .../invalid-typescript-decorators/enums.ts | 9 + .../invalid-typescript-decorators/function.ts | 4 + .../interface.ts | 4 +- .../jsfmt.spec.js | 1 + .../invalid/__snapshots__/jsfmt.spec.js.snap | 37 + tests/misc/errors/invalid/jsfmt.spec.js | 7 + .../js/__snapshots__/jsfmt.spec.js.snap | 63 +- ...port-assertions-for-export-without-from.js | 1 + .../js/import-assertions-with-parens.js | 1 + tests/misc/errors/js/module-attributes.js | 2 +- .../js/no-for-in-init-concise-binary-in.js | 3 + .../json/__snapshots__/jsfmt.spec.js.snap | 12 +- .../less/__snapshots__/jsfmt.spec.js.snap | 12 +- .../__snapshots__/jsfmt.spec.js.snap | 26 +- .../vue/__snapshots__/jsfmt.spec.js.snap | 8 +- .../yaml/__snapshots__/jsfmt.spec.js.snap | 2 +- .../__snapshots__/jsfmt.spec.js.snap | 36 + tests/misc/parser-inference/test.wxs | 4 + tests/misc/parser-inference/test.wxss | 2 + .../js/__snapshots__/jsfmt.spec.js.snap | 4 + .../__snapshots__/jsfmt.spec.js.snap | 20 + .../declare-index-signature.ts | 4 + .../class/__snapshots__/jsfmt.spec.js.snap | 38 + tests/typescript/class/constructor.ts | 4 + tests/typescript/class/jsfmt.spec.js | 2 +- .../comments/__snapshots__/jsfmt.spec.js.snap | 4 +- .../compiler/__snapshots__/jsfmt.spec.js.snap | 23 + tests/typescript/compiler/jsfmt.spec.js | 12 +- .../__snapshots__/jsfmt.spec.js.snap | 11 + .../classAbstractKeyword/jsfmt.spec.js | 4 +- .../__snapshots__/jsfmt.spec.js.snap | 20 + .../constructorParameters/jsfmt.spec.js | 4 +- .../__snapshots__/jsfmt.spec.js.snap | 25 + .../ecmascript5/Statements/jsfmt.spec.js | 2 +- .../__snapshots__/jsfmt.spec.js.snap | 7 + .../types/abstractKeyword/jsfmt.spec.js | 2 +- .../conformance/types/decorator/jsfmt.spec.js | 1 - .../__snapshots__/jsfmt.spec.js.snap | 10 + .../conformance/types/functions/jsfmt.spec.js | 2 +- .../__snapshots__/jsfmt.spec.js.snap | 3 + .../parameterProperty/parameterProperty.ts | 2 + .../abstract/__snapshots__/jsfmt.spec.js.snap | 20 + .../typescript/custom/abstract/jsfmt.spec.js | 4 +- .../declare/__snapshots__/jsfmt.spec.js.snap | 94 + .../declare/declare_class_fields.ts | 6 + tests/typescript/declare/declare_function.ts | 2 + .../declare/declare_function_with_body.ts | 5 + tests/typescript/declare/declare_interface.ts | 6 + tests/typescript/declare/declare_module.ts | 5 + tests/typescript/declare/declare_namespace.ts | 5 + .../__snapshots__/jsfmt.spec.js.snap | 27 +- tests/typescript/decorators/jsfmt.spec.js | 2 +- .../__snapshots__/jsfmt.spec.js.snap | 60 + tests/typescript/error-recovery/jsfmt.spec.js | 15 +- .../generic/__snapshots__/jsfmt.spec.js.snap | 4 +- .../__snapshots__/jsfmt.spec.js.snap | 375 ++ tests/typescript/interface/ignore.ts | 78 + tests/typescript/interface/jsfmt.spec.js | 6 +- .../interface/pattern-parameters.ts | 5 + .../__snapshots__/jsfmt.spec.js.snap | 35 + .../jsfmt.spec.js | 1 + .../key-remapping.ts | 11 + .../keywords/__snapshots__/jsfmt.spec.js.snap | 11 + tests/typescript/keywords/jsfmt.spec.js | 2 +- .../__snapshots__/jsfmt.spec.js.snap | 140 + .../typescript/prettier-ignore/jsfmt.spec.js | 1 + .../prettier-ignore/mapped-types.ts | 68 + .../range/__snapshots__/jsfmt.spec.js.snap | 6 + .../__snapshots__/jsfmt.spec.js.snap | 39 + .../template-literal-types/jsfmt.spec.js | 1 + .../template-literal-types.ts | 11 + .../__snapshots__/jsfmt.spec.js.snap | 15 + .../template-literals/expressions.ts | 1 + .../__snapshots__/jsfmt.spec.js.snap | 23 + tests/typescript/type-alias/jsfmt.spec.js | 1 + .../type-alias/pattern-parameter.ts | 5 + .../__snapshots__/jsfmt.spec.js.snap | 129 + .../typeparams/consistent/flow-only.ts | 3 + .../typeparams/consistent/issue-9501.ts | 3 + .../typeparams/consistent/jsfmt.spec.js | 7 + .../typeparams/consistent/simple-types.ts | 12 + .../consistent/template-literal-types.ts | 1 + .../typeparams/consistent/typescript-only.ts | 4 + .../range/__snapshots__/jsfmt.spec.js.snap | 2 + .../vue-3/__snapshots__/jsfmt.spec.js.snap | 97 + tests/vue/vue-3/jsfmt.spec.js | 1 + tests/vue/vue-3/script-setup.vue | 18 + tests/vue/vue-3/style-variables.vue | 18 + .../vue/vue/__snapshots__/jsfmt.spec.js.snap | 669 ++- tests/vue/vue/attributes.vue | 31 +- .../comment/__snapshots__/jsfmt.spec.js.snap | 78 + tests/yaml/comment/flow-sequence-mapping.yml | 33 + .../__snapshots__/jsfmt.spec.js.snap | 184 + .../trailing-comma/flow-mapping.yml | 19 + .../flow-mapping/trailing-comma/jsfmt.spec.js | 4 + .../__snapshots__/jsfmt.spec.js.snap | 192 + .../trailing-comma/flow-sequence.yml | 19 + .../trailing-comma/jsfmt.spec.js | 4 + .../__snapshots__/jsfmt.spec.js.snap | 252 + tests/yaml/json/trailing-comma/jsfmt.spec.js | 4 + tests/yaml/json/trailing-comma/json.yml | 26 + tests_config/run_spec.js | 473 +- tests_config/setup.js | 7 + tests_config/utils/check-parsers.js | 12 +- .../utils/compose-options-for-snapshot.js | 5 +- .../utils/stringify-options-for-title.js | 2 +- .../__snapshots__/arg-parsing.js.snap | 28 + .../__snapshots__/early-exit.js.snap | 8 +- .../__snapshots__/help-options.js.snap | 4 +- .../__snapshots__/infer-parser.js.snap | 5 + .../plugin-options-string.js.snap | 4 +- .../__snapshots__/plugin-options.js.snap | 8 +- .../__tests__/__snapshots__/schema.js.snap | 12 + .../__snapshots__/support-info.js.snap | 53 +- .../__snapshots__/third-party.js.snap | 6 +- tests_integration/__tests__/arg-parsing.js | 25 + tests_integration/__tests__/bundle.js | 46 + .../__tests__/config-resolution.js | 2 +- tests_integration/__tests__/debug-api.js | 2 +- .../__tests__/doc-mark-as-root.js | 2 +- tests_integration/__tests__/doc-trim.js | 2 +- tests_integration/__tests__/early-exit.js | 2 +- tests_integration/__tests__/file-info.js | 2 +- tests_integration/__tests__/format.js | 2 +- tests_integration/__tests__/help-options.js | 2 +- tests_integration/__tests__/infer-parser.js | 15 +- tests_integration/__tests__/invalid-ignore.js | 2 +- tests_integration/__tests__/normalize-doc.js | 2 +- tests_integration/__tests__/parser-api.js | 2 +- .../__tests__/plugin-flush-line-suffix.js | 14 + .../__tests__/resolve-config-file.js | 2 +- tests_integration/__tests__/schema.js | 2 +- tests_integration/__tests__/support-info.js | 2 +- .../__tests__/with-parser-inference.js | 2 +- .../number/1/file-in-dir-named-1.js | 2 + .../number/2.2/file-in-dir-named-2.2.js | 2 + tests_integration/cli/arg-parsing/number/3 | 2 + tests_integration/cli/arg-parsing/number/4.44 | 2 + .../cli/infer-parser/known-unknown/known.js | 2 + .../infer-parser/known-unknown/unknown.jsonl | 4 + tests_integration/env.js | 1 + .../@prettier/plugin-foo/index.js | 2 +- .../@user/prettier-plugin-foobar/index.js | 2 +- .../node_modules/prettier-plugin-bar/index.js | 2 +- .../plugins/automatic/prettier-plugin-bar.js | 2 +- .../@company/prettier-plugin-bespoke/main.js | 2 +- .../plugins/extensions/plugin.js | 2 +- .../plugins/flushLineSuffix/file.foo | 1 + .../plugins/flushLineSuffix/plugin.js | 25 + tests_integration/runPrettier.js | 2 +- website/.eslintrc.yml | 2 +- website/blog/2020-08-24-2.1.0.md | 2 +- website/data/editors.yml | 4 + website/data/users.yml | 6 + website/package.json | 16 +- website/pages/en/index.js | 12 +- website/pages/en/users/index.js | 9 - website/pages/playground/index.html | 49 +- website/playground/codeSamples.js | 2 + website/playground/markdown.js | 1 + website/playground/util.js | 1 + website/static/images/editors/editor_nova.svg | 3 + website/static/images/users/aircall.svg | 26 + website/static/images/users/icons8.svg | 6 + website/static/separate-css/playground.css | 1 + website/static/service-worker.js | 46 +- website/static/worker.js | 13 +- .../versioned_docs/version-stable/browser.md | 25 +- .../versioned_docs/version-stable/options.md | 3 +- .../versioned_docs/version-stable/plugins.md | 171 +- .../version-stable/precommit.md | 4 +- website/yarn.lock | 1902 +++----- yarn.lock | 4255 +++++++---------- 635 files changed, 21565 insertions(+), 9822 deletions(-) delete mode 100644 .flowconfig create mode 100644 .git-blame-ignore-revs rename changelog_unreleased/{blog-post-intro.md => BLOG_POST_INTRO_TEMPLATE.md} (100%) create mode 100644 changelog_unreleased/api/pr-8983.md create mode 100644 changelog_unreleased/api/pr-9371.md create mode 100644 changelog_unreleased/cli/pr-9298.md create mode 100644 changelog_unreleased/css/pr-9209.md create mode 100644 changelog_unreleased/flow/pr-9071.md create mode 100644 changelog_unreleased/flow/pr-9432.md create mode 100644 changelog_unreleased/flow/pr-9457.md create mode 100644 changelog_unreleased/flow/pr-9523.md create mode 100644 changelog_unreleased/flow/pr-9543.md create mode 100644 changelog_unreleased/flow/pr-9553.md create mode 100644 changelog_unreleased/flow/pr-9563.md create mode 100644 changelog_unreleased/handlebars/pr-9403.md create mode 100644 changelog_unreleased/html/pr-9368.md create mode 100644 changelog_unreleased/javascript/pr-9000.md create mode 100644 changelog_unreleased/javascript/pr-9078.md create mode 100644 changelog_unreleased/javascript/pr-9278.md create mode 100644 changelog_unreleased/javascript/pr-9341.md create mode 100644 changelog_unreleased/javascript/pr-9345.md create mode 100644 changelog_unreleased/javascript/pr-9408.md create mode 100644 changelog_unreleased/javascript/pr-9431.md create mode 100644 changelog_unreleased/javascript/pr-9435.md create mode 100644 changelog_unreleased/javascript/pr-9650.md create mode 100644 changelog_unreleased/javascript/pr-9662.md create mode 100644 changelog_unreleased/javascript/pr-9670.md create mode 100644 changelog_unreleased/less/pr-9356.md create mode 100644 changelog_unreleased/markdown/pr-7938.md create mode 100644 changelog_unreleased/markdown/pr-8786.md create mode 100644 changelog_unreleased/markdown/pr-9275.md create mode 100644 changelog_unreleased/markdown/pr-9365.md create mode 100644 changelog_unreleased/markdown/pr-9654.md create mode 100644 changelog_unreleased/mdx/pr-9267.md create mode 100644 changelog_unreleased/typescript/pr-9318.md create mode 100644 changelog_unreleased/typescript/pr-9473.md create mode 100644 changelog_unreleased/typescript/pr-9484.md create mode 100644 changelog_unreleased/typescript/pr-9521.md create mode 100644 changelog_unreleased/typescript/pr-9551.md create mode 100644 changelog_unreleased/vue/pr-9225.md create mode 100644 changelog_unreleased/vue/pr-9609.md create mode 100644 changelog_unreleased/yaml/pr-9665.md create mode 100644 changelog_unreleased/yaml/pr-9669.md rename scripts/build/shims/{assert.js => assert.mjs} (100%) rename scripts/build/shims/{events.js => events.mjs} (100%) create mode 100644 scripts/build/shims/fs.mjs delete mode 100644 scripts/build/shims/os.js create mode 100644 scripts/build/shims/os.mjs delete mode 100644 scripts/build/shims/path.js create mode 100644 scripts/build/shims/path.mjs rename scripts/build/shims/{tty.js => tty.mjs} (100%) create mode 100644 scripts/clean-changelog-unreleased.js create mode 100644 scripts/tools/eslint-plugin-prettier-internal-rules/better-parent-property-check-in-needs-parens.js create mode 100644 scripts/tools/eslint-plugin-prettier-internal-rules/directly-loc-start-end.js create mode 100644 scripts/tools/eslint-plugin-prettier-internal-rules/prefer-fast-path-each.js create mode 100644 src/language-graphql/loc.js create mode 100644 src/language-handlebars/loc.js create mode 100644 src/language-html/loc.js rename src/language-html/{preprocess.js => print-preprocess.js} (97%) create mode 100644 src/language-js/embed/css.js create mode 100644 src/language-js/embed/graphql.js create mode 100644 src/language-js/embed/html.js create mode 100644 src/language-js/embed/markdown.js rename src/language-js/{postprocess.js => parse-postprocess.js} (61%) create mode 100644 src/language-js/parser-espree.js create mode 100644 src/language-js/parser-meriyah.js rename src/language-js/{preprocess.js => print-preprocess.js} (100%) create mode 100644 src/language-js/print/array.js create mode 100644 src/language-js/print/assignment.js create mode 100644 src/language-js/print/binaryish.js create mode 100644 src/language-js/print/block.js create mode 100644 src/language-js/print/call-expression.js create mode 100644 src/language-js/print/class.js create mode 100644 src/language-js/print/comment.js create mode 100644 src/language-js/print/function-parameters.js create mode 100644 src/language-js/print/function.js create mode 100644 src/language-js/print/interface.js create mode 100644 src/language-js/print/jsx.js create mode 100644 src/language-js/print/member.js create mode 100644 src/language-js/print/object.js create mode 100644 src/language-js/print/property.js create mode 100644 src/language-js/print/statement.js create mode 100644 src/language-js/print/template-literal.js create mode 100644 src/language-js/print/type-annotation.js create mode 100644 src/language-js/print/type-parameters.js create mode 100644 src/language-markdown/clean.js create mode 100644 src/language-markdown/loc.js rename src/language-markdown/{preprocess.js => print-preprocess.js} (91%) create mode 100644 src/language-yaml/loc.js create mode 100644 tests/flow/comments/babel-only/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/flow/comments/babel-only/jsfmt.spec.js create mode 100644 tests/flow/comments/babel-only/type_annotations-3.js create mode 100644 tests/flow/comments/type_annotations-2.js create mode 100644 tests/flow/enums-unknown-members/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/flow/enums-unknown-members/enum-unknown-members-empty.js create mode 100644 tests/flow/enums-unknown-members/enum-unknown-members.js create mode 100644 tests/flow/enums-unknown-members/jsfmt.spec.js create mode 100644 tests/flow/ignore/type-cast-expression.js create mode 100644 tests/flow/this-annotation/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/flow/this-annotation/declare_function.js create mode 100644 tests/flow/this-annotation/function_declaration.js create mode 100644 tests/flow/this-annotation/function_type.js create mode 100644 tests/flow/this-annotation/jsfmt.spec.js create mode 100644 tests/flow/this-annotation/line_break.js create mode 100644 tests/flow/this-annotation/method.js create mode 100644 tests/flow/this-annotation/parentheses/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/flow/this-annotation/parentheses/jsfmt.spec.js create mode 100644 tests/flow/this-annotation/parentheses/only-parameter.js create mode 100644 tests/flow/this-annotation/union_type.js create mode 100644 tests/flow/type-parameters/simple-types.js create mode 100644 tests/graphql/deprecation/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/graphql/deprecation/directives.graphql create mode 100644 tests/graphql/deprecation/jsfmt.spec.js create mode 100644 tests/graphql/prettier-ignore/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/graphql/prettier-ignore/jsfmt.spec.js create mode 100644 tests/graphql/prettier-ignore/prettier-ignore-comment.graphql create mode 100644 tests/handlebars/whitespace/textarea.hbs create mode 100644 tests/html/basics/issue-9368-2.html create mode 100644 tests/html/basics/issue-9368-3.html create mode 100644 tests/html/basics/issue-9368.html create mode 100644 tests/js/arrow-call/class-property.js create mode 100644 tests/js/babel-plugins/class-static-block.js create mode 100644 tests/js/babel-plugins/import-assertions-dynamic.js create mode 100644 tests/js/babel-plugins/import-assertions-static.js delete mode 100644 tests/js/babel-plugins/module-attributes-dynamic.js delete mode 100644 tests/js/babel-plugins/module-attributes-static.js create mode 100644 tests/js/babel-plugins/module-string-names.js create mode 100644 tests/js/binary-expressions/like-regexp.js create mode 100644 tests/js/call/no-argument/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/js/call/no-argument/import.js create mode 100644 tests/js/call/no-argument/jsfmt.spec.js create mode 100644 tests/js/call/no-argument/special-cases.js create mode 100644 tests/js/class-static-block/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/js/class-static-block/class-static-block.js create mode 100644 tests/js/class-static-block/jsfmt.spec.js create mode 100644 tests/js/classes/assignment.js create mode 100644 tests/js/comments/flow-types/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/js/comments/flow-types/inline.js create mode 100644 tests/js/comments/flow-types/jsfmt.spec.js rename tests/{typescript/conformance/types/decorator => js/comments/html-like}/__snapshots__/jsfmt.spec.js.snap (73%) create mode 100644 tests/js/comments/html-like/comment.js create mode 100644 tests/js/comments/html-like/jsfmt.spec.js create mode 100644 tests/js/dynamic-import/assertions.js rename tests/js/{module-attributes => export-star}/__snapshots__/jsfmt.spec.js.snap (73%) create mode 100644 tests/js/export-star/export-star-as.js create mode 100644 tests/js/export-star/export-star.js create mode 100644 tests/js/export-star/jsfmt.spec.js create mode 100644 tests/js/export/same-local-and-exported.js create mode 100644 tests/js/import-assertions/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/js/import-assertions/bracket-spacing/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/js/import-assertions/bracket-spacing/dynamic-import.js create mode 100644 tests/js/import-assertions/bracket-spacing/empty.js create mode 100644 tests/js/import-assertions/bracket-spacing/jsfmt.spec.js create mode 100644 tests/js/import-assertions/bracket-spacing/re-export.js create mode 100644 tests/js/import-assertions/bracket-spacing/static-import.js create mode 100644 tests/js/import-assertions/dynamic-import.js create mode 100644 tests/js/import-assertions/empty.js create mode 100644 tests/js/import-assertions/jsfmt.spec.js create mode 100644 tests/js/import-assertions/multi-types.js create mode 100644 tests/js/import-assertions/not-import-assertions.js create mode 100644 tests/js/import-assertions/re-export.js create mode 100644 tests/js/import-assertions/static-import.js create mode 100644 tests/js/import-assertions/without-from.js create mode 100644 tests/js/import/same-local-and-imported.js create mode 100644 tests/js/label/block-statement-and-regexp.js create mode 100644 tests/js/last-argument-expansion/function-expression.js create mode 100644 tests/js/literal/invalid-exponent.js create mode 100644 tests/js/logical-assignment/invalid.js delete mode 100644 tests/js/module-attributes/module-attributes-dynamic.js delete mode 100644 tests/js/module-attributes/module-attributes-static.js create mode 100644 tests/js/module-string-names/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/js/module-string-names/jsfmt.spec.js create mode 100644 tests/js/module-string-names/module-string-names-export.js create mode 100644 tests/js/module-string-names/module-string-names-import.js create mode 100644 tests/js/multiparser-comments/comment-inside.js create mode 100644 tests/js/multiparser-css/issue-5961.js create mode 100644 tests/js/multiparser-css/issue-9072.js create mode 100644 tests/js/multiparser-invalid/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/js/multiparser-invalid/jsfmt.spec.js create mode 100644 tests/js/multiparser-invalid/text.js create mode 100644 tests/js/objects/assignment-expression/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/js/objects/assignment-expression/jsfmt.spec.js create mode 100644 tests/js/objects/assignment-expression/object-property.js create mode 100644 tests/js/objects/assignment-expression/object-value.js create mode 100644 tests/js/objects/invalid-accessor-generator.js create mode 100644 tests/js/objects/invalid-setter.js rename tests/js/objects/{right_break.js => right-break.js} (100%) create mode 100644 tests/js/reserved-word/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/js/reserved-word/interfaces.js create mode 100644 tests/js/reserved-word/jsfmt.spec.js create mode 100644 tests/js/variable_declarator/invalid-const.js create mode 100644 tests/less/comments/value-lists.less create mode 100644 tests/markdown/fenced-code-block/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/markdown/fenced-code-block/jsfmt.spec.js delete mode 100644 tests/markdown/multiparser-js/markdown-preview-enhanced.md create mode 100644 tests/markdown/multiparser-js/meta-in-code-block.md create mode 100644 tests/markdown/table/empty-table/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/markdown/table/empty-table/empty-table.md create mode 100644 tests/markdown/table/empty-table/jsfmt.spec.js create mode 100644 tests/markdown/wiki-link/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/markdown/wiki-link/additional-spacing.md create mode 100644 tests/markdown/wiki-link/end-of-line.md create mode 100644 tests/markdown/wiki-link/exceeds-line-length-in-prose-broken.md create mode 100644 tests/markdown/wiki-link/exceeds-line-length-in-prose.md create mode 100644 tests/markdown/wiki-link/exceeds-line-length.md create mode 100644 tests/markdown/wiki-link/extra-brackets-leading.md create mode 100644 tests/markdown/wiki-link/extra-brackets-trailing.md create mode 100644 tests/markdown/wiki-link/extra-brackets.md create mode 100644 tests/markdown/wiki-link/jsfmt.spec.js create mode 100644 tests/markdown/wiki-link/multi-line.md create mode 100644 tests/markdown/wiki-link/nested-link.md create mode 100644 tests/markdown/wiki-link/simple.md create mode 100644 tests/markdown/wiki-link/with-whitespace.md create mode 100644 tests/mdx/embedded-language-formatting/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/mdx/embedded-language-formatting/issue-9260.mdx create mode 100644 tests/mdx/embedded-language-formatting/jsfmt.spec.js create mode 100644 tests/misc/babel-redirect-to-babel-flow/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/misc/babel-redirect-to-babel-flow/block-comment-2.js create mode 100644 tests/misc/babel-redirect-to-babel-flow/block-comment.js create mode 100644 tests/misc/babel-redirect-to-babel-flow/filename.js.flow create mode 100644 tests/misc/babel-redirect-to-babel-flow/inline-comment-2.js create mode 100644 tests/misc/babel-redirect-to-babel-flow/inline-comment-3.js create mode 100644 tests/misc/babel-redirect-to-babel-flow/inline-comment.js rename tests/{js/module-attributes => misc/babel-redirect-to-babel-flow}/jsfmt.spec.js (100%) create mode 100644 tests/misc/babel-redirect-to-babel-flow/like-a-pragma.js create mode 100644 tests/misc/babel-redirect-to-babel-flow/not-flow-2.js create mode 100644 tests/misc/babel-redirect-to-babel-flow/not-flow-3.js create mode 100644 tests/misc/babel-redirect-to-babel-flow/not-flow-4.js create mode 100644 tests/misc/babel-redirect-to-babel-flow/not-flow-5.js create mode 100644 tests/misc/babel-redirect-to-babel-flow/not-flow.js create mode 100644 tests/misc/babel-redirect-to-babel-flow/pragma-2.js create mode 100644 tests/misc/babel-redirect-to-babel-flow/pragma-react.js create mode 100644 tests/misc/babel-redirect-to-babel-flow/pragma.js create mode 100644 tests/misc/babel-redirect-to-babel-flow/shebang-inline-comment.js create mode 100644 tests/misc/babel-redirect-to-babel-flow/shebang-pragma.js create mode 100644 tests/misc/errors/babel-flow/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/misc/errors/babel-flow/async-arrow-invalid.js create mode 100644 tests/misc/errors/babel-flow/jsfmt.spec.js delete mode 100644 tests/misc/errors/babel-ts/issue-8041.ts create mode 100644 tests/misc/errors/babel-ts/type-annotation-expr-statement.ts create mode 100644 tests/misc/errors/babel-ts/type-annotation-func.ts create mode 100644 tests/misc/errors/babel-ts/type-annotation-in-jsx.tsx create mode 100644 tests/misc/errors/flow/async-arrow-invalid.js create mode 100644 tests/misc/errors/handlebars/invalid-2.hbs create mode 100644 tests/misc/errors/handlebars/invalid-3.hbs create mode 100644 tests/misc/errors/invalid-typescript-decorators/__snapshots__/jsfmt.spec.js.snap rename tests/{typescript/conformance/types/decorator => misc/errors/invalid-typescript-decorators}/decorator.ts (100%) create mode 100644 tests/misc/errors/invalid-typescript-decorators/enums.ts create mode 100644 tests/misc/errors/invalid-typescript-decorators/function.ts rename tests/{typescript/decorators => misc/errors/invalid-typescript-decorators}/interface.ts (55%) create mode 100644 tests/misc/errors/invalid-typescript-decorators/jsfmt.spec.js create mode 100644 tests/misc/errors/invalid/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/misc/errors/invalid/jsfmt.spec.js create mode 100644 tests/misc/errors/js/import-assertions-for-export-without-from.js create mode 100644 tests/misc/errors/js/import-assertions-with-parens.js create mode 100644 tests/misc/errors/js/no-for-in-init-concise-binary-in.js create mode 100644 tests/misc/parser-inference/test.wxs create mode 100644 tests/misc/parser-inference/test.wxss create mode 100644 tests/misc/typescript-babel-only/declare-index-signature.ts delete mode 100644 tests/typescript/conformance/types/decorator/jsfmt.spec.js create mode 100644 tests/typescript/declare/declare_function_with_body.ts create mode 100644 tests/typescript/declare/declare_module.ts create mode 100644 tests/typescript/declare/declare_namespace.ts create mode 100644 tests/typescript/interface/pattern-parameters.ts create mode 100644 tests/typescript/key-remapping-in-mapped-types/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/typescript/key-remapping-in-mapped-types/jsfmt.spec.js create mode 100644 tests/typescript/key-remapping-in-mapped-types/key-remapping.ts create mode 100644 tests/typescript/prettier-ignore/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/typescript/prettier-ignore/jsfmt.spec.js create mode 100644 tests/typescript/prettier-ignore/mapped-types.ts create mode 100644 tests/typescript/template-literal-types/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/typescript/template-literal-types/jsfmt.spec.js create mode 100644 tests/typescript/template-literal-types/template-literal-types.ts create mode 100644 tests/typescript/template-literals/expressions.ts create mode 100644 tests/typescript/type-alias/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/typescript/type-alias/jsfmt.spec.js create mode 100644 tests/typescript/type-alias/pattern-parameter.ts create mode 100644 tests/typescript/typeparams/consistent/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/typescript/typeparams/consistent/flow-only.ts create mode 100644 tests/typescript/typeparams/consistent/issue-9501.ts create mode 100644 tests/typescript/typeparams/consistent/jsfmt.spec.js create mode 100644 tests/typescript/typeparams/consistent/simple-types.ts create mode 100644 tests/typescript/typeparams/consistent/template-literal-types.ts create mode 100644 tests/typescript/typeparams/consistent/typescript-only.ts create mode 100644 tests/vue/vue-3/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/vue/vue-3/jsfmt.spec.js create mode 100644 tests/vue/vue-3/script-setup.vue create mode 100644 tests/vue/vue-3/style-variables.vue create mode 100644 tests/yaml/comment/flow-sequence-mapping.yml create mode 100644 tests/yaml/flow-mapping/trailing-comma/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/yaml/flow-mapping/trailing-comma/flow-mapping.yml create mode 100644 tests/yaml/flow-mapping/trailing-comma/jsfmt.spec.js create mode 100644 tests/yaml/flow-sequence/trailing-comma/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/yaml/flow-sequence/trailing-comma/flow-sequence.yml create mode 100644 tests/yaml/flow-sequence/trailing-comma/jsfmt.spec.js create mode 100644 tests/yaml/json/trailing-comma/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/yaml/json/trailing-comma/jsfmt.spec.js create mode 100644 tests/yaml/json/trailing-comma/json.yml create mode 100644 tests_config/setup.js create mode 100644 tests_integration/__tests__/bundle.js create mode 100644 tests_integration/__tests__/plugin-flush-line-suffix.js create mode 100644 tests_integration/cli/arg-parsing/number/1/file-in-dir-named-1.js create mode 100644 tests_integration/cli/arg-parsing/number/2.2/file-in-dir-named-2.2.js create mode 100644 tests_integration/cli/arg-parsing/number/3 create mode 100644 tests_integration/cli/arg-parsing/number/4.44 create mode 100644 tests_integration/cli/infer-parser/known-unknown/known.js create mode 100644 tests_integration/cli/infer-parser/known-unknown/unknown.jsonl create mode 100644 tests_integration/plugins/flushLineSuffix/file.foo create mode 100644 tests_integration/plugins/flushLineSuffix/plugin.js create mode 100644 website/static/images/editors/editor_nova.svg create mode 100755 website/static/images/users/aircall.svg create mode 100644 website/static/images/users/icons8.svg diff --git a/.eslintrc.yml b/.eslintrc.yml index 037d950ebd26..26bc7af25907 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -73,7 +73,7 @@ overrides: rules: no-console: off - files: - - scripts/build/shims/*.js + - "**/*.mjs" parserOptions: sourceType: module - files: @@ -99,3 +99,13 @@ overrides: - error - patterns: - ".." + - files: src/language-js/needs-parens.js + rules: + prettier-internal-rules/better-parent-property-check-in-needs-parens: error + - files: src/**/*.js + rules: + prettier-internal-rules/prefer-fast-path-each: error + - files: + - src/language-*/**/*.js + rules: + prettier-internal-rules/directly-loc-start-end: error diff --git a/.flowconfig b/.flowconfig deleted file mode 100644 index b2680ab2ad01..000000000000 --- a/.flowconfig +++ /dev/null @@ -1,4 +0,0 @@ -[ignore] -.*/tests/.* -.*/node_modules/.* -.*/dist/.* diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 000000000000..6dba275511ec --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,31 @@ +# git-blame ignored revisions +# To configure, run +# git config blame.ignoreRevsFile .git-blame-ignore-revs +# Requires Git > 2.23 +# See https://git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revs-fileltfilegt + +# Prettier bump after release +# 2.1.2 +c4d3014b95122f4ad19c319a9b3f5f9625d6003f +# 2.1.1 +a8363197118e530d948978da6e5c414a765ba9c0 +# 2.1.0 +cef4bcafc7867050582d3107632bde7e722575d1 +# 2.0.5 +d33f8a3e2c0a59cb9f383ddec5bbf8d296bb1a23 +# 2.0.4 +592149791e4fea656d8c5fa34c25d4d19076a07a +# 2.0.3 +64b3ac9e8e933a09f049b7cace540ee526f4d5a4 +# 2.0.2 +c1dd17cf383b78fd8fd43442bb5db59b51900410 +# 2.0.1 +f56d620be529b60c13032681446c1eb76e0fb088 +# 2.0.0 +9dad95b35f935edce4c3d6cfa45c79a0b9c82b9f + +# Categorize tests (#8239 #8248 #8249 #8251) +b585bd6fa4d750a98e277303c428edfc48fea3f4 +f8c5b1fd1da4d67bc09d12bc3411b70d0fa4f4a1 +b6225788966a4a6b49e652044337436642dcd627 +7ad515111e79a3f304d5480d6586314222052333 diff --git a/.github/ISSUE_TEMPLATE/formatting.md b/.github/ISSUE_TEMPLATE/formatting.md index ba91ba43fa59..af8efd889cf6 100644 --- a/.github/ISSUE_TEMPLATE/formatting.md +++ b/.github/ISSUE_TEMPLATE/formatting.md @@ -26,7 +26,7 @@ Tip! Don't write this stuff manually. --> -**Prettier 2.1.2** +**Prettier 2.2.0** [Playground link](https://prettier.io/playground/#.....) ```sh diff --git a/.github/ISSUE_TEMPLATE/integration.md b/.github/ISSUE_TEMPLATE/integration.md index 73e97d70327e..eea91394de59 100644 --- a/.github/ISSUE_TEMPLATE/integration.md +++ b/.github/ISSUE_TEMPLATE/integration.md @@ -20,7 +20,7 @@ BEFORE SUBMITTING AN ISSUE: **Environments:** -- Prettier Version: 2.1.2 +- Prettier Version: 2.2.0 - Running Prettier via: - Runtime: - Operating System: diff --git a/.github/workflows/dev-package-test.yml b/.github/workflows/dev-package-test.yml index 94ca53ae7459..12576bc08cfd 100644 --- a/.github/workflows/dev-package-test.yml +++ b/.github/workflows/dev-package-test.yml @@ -30,12 +30,10 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout - uses: actions/checkout@v2.3.2 - with: - fetch-depth: 1 + uses: actions/checkout@v2.3.4 - name: Setup Node.js - uses: actions/setup-node@v2.1.1 + uses: actions/setup-node@v2.1.2 with: node-version: ${{ matrix.node }} diff --git a/.github/workflows/dev-test.yml b/.github/workflows/dev-test.yml index 383034555d4a..343651405532 100644 --- a/.github/workflows/dev-test.yml +++ b/.github/workflows/dev-test.yml @@ -26,6 +26,10 @@ jobs: - os: "ubuntu-latest" node: "14" ENABLE_CODE_COVERAGE: true + FULL_TEST: true + CHECK_TEST_PARSERS: true + - os: "ubuntu-latest" + node: "15" exclude: - os: "macos-latest" node: "12" @@ -33,28 +37,22 @@ jobs: node: "12" env: ENABLE_CODE_COVERAGE: ${{ matrix.ENABLE_CODE_COVERAGE }} + FULL_TEST: ${{ matrix.FULL_TEST }} + CHECK_TEST_PARSERS: ${{ matrix.CHECK_TEST_PARSERS }} name: Node.js ${{ matrix.node }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} steps: - name: Checkout - uses: actions/checkout@v2.3.2 - with: - fetch-depth: 1 + uses: actions/checkout@v2.3.4 - name: Setup Node.js - uses: actions/setup-node@v2.1.1 + uses: actions/setup-node@v2.1.2 with: node-version: ${{ matrix.node }} - name: Install Dependencies run: yarn install --frozen-lockfile - # TODO: remove this task when/if this fixed - # https://github.com/facebook/jest/issues/9457 - - name: Install jest@24 - if: matrix.ENABLE_CODE_COVERAGE - run: yarn upgrade jest@24 - - name: Run Tests (macOS) if: matrix.os == 'macos-latest' run: yarn test --maxWorkers=4 @@ -64,7 +62,7 @@ jobs: run: yarn test --maxWorkers=2 - name: Upload Coverage - uses: codecov/codecov-action@v1.0.13 + uses: codecov/codecov-action@v1.0.15 if: matrix.ENABLE_CODE_COVERAGE with: token: ${{ secrets.CODECOV_TOKEN }} @@ -78,7 +76,7 @@ jobs: PRETTIER_FALLBACK_RESOLVE: true - name: Upload Coverage (PRETTIER_FALLBACK_RESOLVE) - uses: codecov/codecov-action@v1.0.13 + uses: codecov/codecov-action@v1.0.15 if: matrix.ENABLE_CODE_COVERAGE with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c718e7ba0c32..a377c3759377 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,12 +13,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2.3.2 - with: - fetch-depth: 1 + uses: actions/checkout@v2.3.4 - name: Setup Node.js - uses: actions/setup-node@v2.1.1 + uses: actions/setup-node@v2.1.2 - name: Install Dependencies run: yarn install --frozen-lockfile diff --git a/.github/workflows/prod-test.yml b/.github/workflows/prod-test.yml index f63cefe5b793..13bdb965a08c 100644 --- a/.github/workflows/prod-test.yml +++ b/.github/workflows/prod-test.yml @@ -13,12 +13,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2.3.2 - with: - fetch-depth: 1 + uses: actions/checkout@v2.3.4 - name: Setup Node.js - uses: actions/setup-node@v2.1.1 + uses: actions/setup-node@v2.1.2 - name: Install Dependencies run: yarn install --frozen-lockfile @@ -59,12 +57,10 @@ jobs: needs: [build] steps: - name: Checkout - uses: actions/checkout@v2.3.2 - with: - fetch-depth: 1 + uses: actions/checkout@v2.3.4 - name: Setup Node.js - uses: actions/setup-node@v2.1.1 + uses: actions/setup-node@v2.1.2 - name: Install Dependencies run: yarn install --frozen-lockfile @@ -79,7 +75,7 @@ jobs: run: yarn lint:dist test: - timeout-minutes: 60 + timeout-minutes: 90 strategy: fail-fast: false matrix: @@ -91,22 +87,28 @@ jobs: - "14" - "12" - "10" + include: + - os: "ubuntu-latest" + node: "14" + FULL_TEST: true + - os: "ubuntu-latest" + node: "15" exclude: - os: "macos-latest" node: "12" - os: "windows-latest" node: "12" + env: + FULL_TEST: ${{ matrix.FULL_TEST }} name: Node.js ${{ matrix.node }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} needs: [build] steps: - name: Checkout - uses: actions/checkout@v2.3.2 - with: - fetch-depth: 1 + uses: actions/checkout@v2.3.4 - name: Setup Node.js - uses: actions/setup-node@v2.1.1 + uses: actions/setup-node@v2.1.2 with: node-version: ${{ matrix.node }} diff --git a/.gitignore b/.gitignore index 73f676245040..1a0eb682a10a 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,9 @@ /coverage .idea package-lock.json +.yarn/* +!.yarn/releases +!.yarn/plugins +!.yarn/sdks +!.yarn/versions +.pnp.* diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index ac74494a227e..510d631cbd69 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -1,4 +1,7 @@ +# Remove this file after year 2020 + - id: prettier name: prettier - entry: prettier --write --list-different --ignore-unknown - language: node + entry: Prettier support for pre-commit has been moved to https://github.com/pre-commit/mirrors-prettier, please use the new repository. + language: fail + pass_filenames: false diff --git a/CHANGELOG.md b/CHANGELOG.md index 6270e1b7c7d4..b1d3f6130f75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# 2.2.0 + +[diff](https://github.com/prettier/prettier/compare/2.1.2...2.2.0) + +🔗 [Release Notes](https://prettier.io/blog/2020/11/20/2.2.0.html) + # 2.1.2 [diff](https://github.com/prettier/prettier/compare/2.1.1...2.1.2) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 34a84e200a39..f5c227dd7d0d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -12,9 +12,12 @@ Here's what you need to know about the tests: - The tests use [Jest snapshots](https://facebook.github.io/jest/docs/en/snapshot-testing.html). - You can make changes and run `jest -u` (or `yarn test -u`) to update the snapshots. Then run `git diff` to take a look at what changed. Always update the snapshots when opening a PR. -- You can run `AST_COMPARE=1 DEEP_COMPARE=1 jest` for a more robust test run. - - `AST_COMPARE` That formats each file, re-parses it, and compares the new AST with the original one and makes sure they are semantically equivalent. - - `DEEP_COMPARE` That formats each file, then formats the output again, and checks that the second output is the same as the first. +- You can run `FULL_TEST=1 jest` for a more robust test run. + - "compare AST" That re-parses the output, and compares the new AST with the original one and makes sure they are semantically equivalent. + - "second format" That formats the output again, and checks that the second output is the same as the first. + - "EOL "\r\n"" That replace end of line with `\r\n`, and checks that the output is the same as the first. + - "EOL "\r"" That replace end of line with `\r`, and checks that the output is the same as the first. + - "BOM" That add BOM(`U+FEFF`) to text, and checks that the output is the same as the first, and keeps the BOM. - Each test folder has a `jsfmt.spec.js` that runs the tests. For JavaScript files, generally you can just put `run_spec(__dirname, ["babel", "flow", "typescript"]);` there. This will verify that the output using each parser is the same. You can also pass options as the third argument, like this: `run_spec(__dirname, ["babel"], { trailingComma: "es5" });` - `tests/flow-repo/` contains the Flow test suite, and is not supposed to be edited by hand. To update it, clone the Flow repo next to the Prettier repo and run: `node scripts/sync-flow-tests.js ../flow/tests/`. - If you would like to debug prettier locally, you can either debug it in Node or the browser. The easiest way to debug it in Node, is to create a local test file with some example code you want formatted and either run it in an editor like VS Code or run it directly via `./bin/prettier.js `. The easiest way to debug it in the browser is to build Prettier's website locally (see `website/README.md`). diff --git a/changelog_unreleased/blog-post-intro.md b/changelog_unreleased/BLOG_POST_INTRO_TEMPLATE.md similarity index 100% rename from changelog_unreleased/blog-post-intro.md rename to changelog_unreleased/BLOG_POST_INTRO_TEMPLATE.md diff --git a/changelog_unreleased/TEMPLATE.md b/changelog_unreleased/TEMPLATE.md index 268377304b92..4700d04e13bb 100644 --- a/changelog_unreleased/TEMPLATE.md +++ b/changelog_unreleased/TEMPLATE.md @@ -22,7 +22,7 @@ --> -#### Title ([#XXXX](https://github.com/prettier/prettier/pull/XXXX) by [@user](https://github.com/user)) +#### Title (#XXXX by @user) diff --git a/changelog_unreleased/api/pr-8983.md b/changelog_unreleased/api/pr-8983.md new file mode 100644 index 000000000000..4282ea7a04d2 --- /dev/null +++ b/changelog_unreleased/api/pr-8983.md @@ -0,0 +1,13 @@ +#### [HIGHLIGHT]ESM standalone bundles ([#8983](https://github.com/prettier/prettier/pull/8983) by [@Monchi](https://github.com/Monchi), [@fisker](https://github.com/fisker)) + +Prettier now also comes as ES modules, which can be directly used in modern browsers: + +```js +import prettier from "https://unpkg.com/prettier/esm/standalone.mjs"; +import parserGraphql from "https://unpkg.com/prettier/esm/parser-graphql.mjs"; + +prettier.format("query { }", { + parser: "graphql", + plugins: [parserGraphql], +}); +``` diff --git a/changelog_unreleased/api/pr-9371.md b/changelog_unreleased/api/pr-9371.md new file mode 100644 index 000000000000..22af5459ed4a --- /dev/null +++ b/changelog_unreleased/api/pr-9371.md @@ -0,0 +1,19 @@ +#### Stop inferring the parser to be `json` for `.jsonl` files (#9371 by @fisker) + + +```console +// Prettier stable +$ prettier --check . +Checking formatting... +[error] bad.jsonl: SyntaxError: Unexpected token (2:1) +[error] 1 | '{"type": "t/f", "head": "England", "relation": "invaded", "tail": "United States"}' +[error] > 2 | '{"type": "t/f", "head": "England", "relation": "attacked", "tail": "Baltimore"}' +[error] | ^ +[error] 3 | +All matched files use Prettier code style! + +// Prettier master +$ prettier --check . +Checking formatting... +All matched files use Prettier code style! +``` diff --git a/changelog_unreleased/cli/pr-9298.md b/changelog_unreleased/cli/pr-9298.md new file mode 100644 index 000000000000..d402fa7d563b --- /dev/null +++ b/changelog_unreleased/cli/pr-9298.md @@ -0,0 +1,15 @@ +#### Fix: error on directories and files with numeric names (#9298 by @fisker) + + +```console +$ cat 1/index.js +hello('world') + +// Prettier stable +$ prettier 1 +[error] The "path" argument must be of type string. Received type number (1) + +// Prettier master +$ prettier 1 +hello("world"); +``` diff --git a/changelog_unreleased/css/pr-9209.md b/changelog_unreleased/css/pr-9209.md new file mode 100644 index 000000000000..2a3f7f2442fa --- /dev/null +++ b/changelog_unreleased/css/pr-9209.md @@ -0,0 +1,42 @@ +#### Improve formatting for custom properties (#9209 by @fisker) + +Thanks to [`PostCSS 8.0`](https://github.com/postcss/postcss/releases/tag/8.0.0), we can handle these edge cases on custom properties. + + +```css +/* Input */ +:root { + --empty: ; + --JSON: [1, "2", {"three": {"a":1}}, [4]]; + --javascript: function(rule) { console.log(rule) }; +} + +@supports (--element(".minwidth", { "minWidth": 300 })) { + [--self] { + background: greenyellow; + } +} + +/* Prettier stable */ +SyntaxError: (postcss) CssSyntaxError Missed semicolon (3:20) + 1 | :root { + 2 | --empty: ; +> 3 | --JSON: [1, "2", {"three": {"a":1}}, [4]]; + | ^ + 4 | --javascript: function(rule) { console.log(rule) }; + 5 | } + 6 | + +/* Prettier master */ +:root { + --empty: ; + --JSON: [1, "2", {"three": {"a": 1}}, [4]]; + --javascript: function(rule) {console.log(rule)}; +} + +@supports (--element(".minwidth", {"minWidth": 300})) { + [--self] { + background: greenyellow; + } +} +``` diff --git a/changelog_unreleased/flow/pr-9071.md b/changelog_unreleased/flow/pr-9071.md new file mode 100644 index 000000000000..7859461a55ce --- /dev/null +++ b/changelog_unreleased/flow/pr-9071.md @@ -0,0 +1,18 @@ +#### Switch the `babel` parser to `babel-flow` if the `@flow` pragma is found (#9071 by @fisker) + +In practice, this means that as long as your Flow files have the pragma, it's safe to use the `.js` extension for them. Prettier will correctly parse and print them without any additional configuration. Previously, the pragma was recognized by the parser, but there existed minor correctness issues with the printer. E.g. it's not safe to unquote number keys in Flow. + + +```jsx +// Input (with --parser babel) +// @flow +f({ "2": 2 }) + +// Prettier stable +// @flow +f({ 2: 2 }); + +// Prettier master +// @flow +f({ "2": 2 }); +``` diff --git a/changelog_unreleased/flow/pr-9432.md b/changelog_unreleased/flow/pr-9432.md new file mode 100644 index 000000000000..a677ea5044ae --- /dev/null +++ b/changelog_unreleased/flow/pr-9432.md @@ -0,0 +1,22 @@ +#### Enums with unknown members (#9432 by @gkz) + +Previously, was not supported. Now, the following is formatted: + + +```jsx +// Input +enum E { + A, + B, + ... +} + +// Prettier stable: parse error + +// Prettier master +enum E { + A, + B, + ... +} +``` diff --git a/changelog_unreleased/flow/pr-9457.md b/changelog_unreleased/flow/pr-9457.md new file mode 100644 index 000000000000..7899e4fa5323 --- /dev/null +++ b/changelog_unreleased/flow/pr-9457.md @@ -0,0 +1,21 @@ +#### `this` parameter annotations (#9457 by @dsainati1, #9489 by @fisker) + + +```jsx +// Input +function f(this: string, a: number) { +} + +type T = (this: boolean, a: number) => boolean; + +// Prettier stable +function f(this: string, a: number) {} + +type T = (a: number) => boolean; + +// Prettier master +function f(this: string, a: number) { +} + +type T = (this: boolean, a: number) => boolean; +``` diff --git a/changelog_unreleased/flow/pr-9523.md b/changelog_unreleased/flow/pr-9523.md new file mode 100644 index 000000000000..da75c9926d1f --- /dev/null +++ b/changelog_unreleased/flow/pr-9523.md @@ -0,0 +1,18 @@ +#### Support `BigIntLiteralTypeAnnotation` and `BigIntTypeAnnotation` (#9523 by @fisker) + +Add support for `BigIntLiteralTypeAnnotation` and `BigIntTypeAnnotation` in Flow. + + +```jsx +// Input +const foo: bigint = 1n; +const bar: baz<1n> = 1n; + +// Prettier stable +Error: unknown type: "BigIntTypeAnnotation" + at ... + +// Prettier master +const foo: bigint = 1n; +const bar: baz<1n> = 1n; +``` diff --git a/changelog_unreleased/flow/pr-9543.md b/changelog_unreleased/flow/pr-9543.md new file mode 100644 index 000000000000..bc6582b498fa --- /dev/null +++ b/changelog_unreleased/flow/pr-9543.md @@ -0,0 +1,25 @@ +#### Treat more simple types as non-breaking in generic type annotations (#9543 by @fisker) + + +```jsx +// Input +const foo1: Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo = a +const foo2: Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo<"STRING"> = a; +const foo3: Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo<0> = a; + +// Prettier master +const foo1: Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo< + symbol +> = a; +const foo2: Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo< + "STRING" +> = a; +const foo3: Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo< + 0 +> = a; + +// Prettier stable (typescript and flow parser) +const foo1: Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo = a +const foo2: Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo<"STRING"> = a; +const foo3: Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo<0> = a; +``` diff --git a/changelog_unreleased/flow/pr-9553.md b/changelog_unreleased/flow/pr-9553.md new file mode 100644 index 000000000000..a041ea4fb7f9 --- /dev/null +++ b/changelog_unreleased/flow/pr-9553.md @@ -0,0 +1,22 @@ +#### Fix missing parentheses around `prettier-ignore`d type assertions (#9553 by @fisker) + + +```jsx +// Input +transform( + // prettier-ignore + (pointTransformer: (Point => Point)) +); + +// Prettier stable +transform( + // prettier-ignore + pointTransformer: (Point => Point) +); + +// Prettier master +transform( + // prettier-ignore + (pointTransformer: (Point => Point)) +); +``` diff --git a/changelog_unreleased/flow/pr-9563.md b/changelog_unreleased/flow/pr-9563.md new file mode 100644 index 000000000000..8260bb391b9f --- /dev/null +++ b/changelog_unreleased/flow/pr-9563.md @@ -0,0 +1,22 @@ +#### Improve comment types detection (#9563 by @fisker) + + +```jsx +// Input +foo/*::*/(baz); +class Foo { + bar( data: Array) {} +} + +// Prettier master +foo/*:: */(baz); +class Foo { + bar(data: Array/*:: */) {} +} + +// Prettier stable +foo/*:: */(baz); +class Foo { + bar(data: Array) {} +} +``` diff --git a/changelog_unreleased/handlebars/pr-9403.md b/changelog_unreleased/handlebars/pr-9403.md new file mode 100644 index 000000000000..b8afd996bf8f --- /dev/null +++ b/changelog_unreleased/handlebars/pr-9403.md @@ -0,0 +1,29 @@ +#### Fix unstable newlines after `