prettier 2.1.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/doc.js CHANGED
@@ -298,7 +298,7 @@
298
298
  var _default = isFullwidthCodePoint;
299
299
  isFullwidthCodePoint_1.default = _default;
300
300
 
301
- var emojiRegex = function emojiRegex() {
301
+ var emojiRegex = function () {
302
302
  // https://mths.be/emoji
303
303
  return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-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D83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u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BB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
304
304
  };
@@ -643,18 +643,14 @@
643
643
 
644
644
  function createCommonjsModule(fn, basedir, module) {
645
645
  return module = {
646
- path: basedir,
647
- exports: {},
648
- require: function (path, base) {
649
- return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
650
- }
646
+ path: basedir,
647
+ exports: {},
648
+ require: function (path, base) {
649
+ return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
650
+ }
651
651
  }, fn(module, module.exports), module.exports;
652
652
  }
653
653
 
654
- function getCjsExportFromNamespace (n) {
655
- return n && n['default'] || n;
656
- }
657
-
658
654
  function commonjsRequire () {
659
655
  throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
660
656
  }
@@ -1120,7 +1116,7 @@
1120
1116
  }, value));
1121
1117
 
1122
1118
  var name = "prettier";
1123
- var version$1 = "2.1.0";
1119
+ var version$1 = "2.2.1";
1124
1120
  var description = "Prettier is an opinionated code formatter";
1125
1121
  var bin = "./bin/prettier.js";
1126
1122
  var repository = "prettier/prettier";
@@ -1140,33 +1136,34 @@
1140
1136
  "bin"
1141
1137
  ];
1142
1138
  var dependencies = {
1143
- "@angular/compiler": "10.0.11",
1139
+ "@angular/compiler": "10.2.3",
1144
1140
  "@babel/code-frame": "7.10.4",
1145
- "@babel/parser": "7.11.2",
1146
- "@glimmer/syntax": "0.59.0",
1141
+ "@babel/parser": "7.12.5",
1142
+ "@glimmer/syntax": "0.66.0",
1147
1143
  "@iarna/toml": "2.2.5",
1148
- "@typescript-eslint/typescript-estree": "3.9.1",
1149
- "angular-estree-parser": "2.2.0",
1144
+ "@typescript-eslint/typescript-estree": "4.8.1",
1145
+ "angular-estree-parser": "2.2.1",
1150
1146
  "angular-html-parser": "1.7.1",
1151
- camelcase: "6.0.0",
1147
+ camelcase: "6.2.0",
1152
1148
  chalk: "4.1.0",
1153
1149
  "ci-info": "watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540",
1154
1150
  "cjk-regex": "2.0.0",
1155
1151
  cosmiconfig: "7.0.0",
1156
1152
  dashify: "2.0.0",
1157
- diff: "4.0.2",
1153
+ diff: "5.0.0",
1158
1154
  editorconfig: "0.15.3",
1159
- "editorconfig-to-prettier": "0.1.1",
1155
+ "editorconfig-to-prettier": "0.2.0",
1160
1156
  "escape-string-regexp": "4.0.0",
1157
+ espree: "7.3.0",
1161
1158
  esutils: "2.0.3",
1162
1159
  "fast-glob": "3.2.4",
1163
1160
  "fast-json-stable-stringify": "2.1.0",
1164
1161
  "find-parent-dir": "0.3.0",
1165
- "flow-parser": "0.132.0",
1166
- "get-stream": "6.0.0",
1162
+ "flow-parser": "0.138.0",
1163
+ "get-stdin": "8.0.0",
1167
1164
  globby: "11.0.1",
1168
- graphql: "15.3.0",
1169
- "html-element-attributes": "2.2.1",
1165
+ graphql: "15.4.0",
1166
+ "html-element-attributes": "2.3.0",
1170
1167
  "html-styles": "1.0.0",
1171
1168
  "html-tag-names": "1.1.5",
1172
1169
  "html-void-elements": "1.0.5",
@@ -1175,12 +1172,13 @@
1175
1172
  json5: "2.1.3",
1176
1173
  leven: "3.1.0",
1177
1174
  "lines-and-columns": "1.1.6",
1178
- "linguist-languages": "7.10.0",
1175
+ "linguist-languages": "7.12.1",
1179
1176
  lodash: "4.17.20",
1180
- mem: "6.1.0",
1177
+ mem: "8.0.0",
1178
+ meriyah: "3.1.6",
1181
1179
  minimatch: "3.0.4",
1182
1180
  minimist: "1.2.5",
1183
- "n-readlines": "1.0.0",
1181
+ "n-readlines": "1.0.1",
1184
1182
  outdent: "0.7.1",
1185
1183
  "parse-srcset": "ikatyang/parse-srcset#54eb9c1cb21db5c62b4d0e275d7249516df6f0ee",
1186
1184
  "please-upgrade-node": "3.2.0",
@@ -1191,62 +1189,64 @@
1191
1189
  "postcss-values-parser": "2.0.1",
1192
1190
  "regexp-util": "1.2.2",
1193
1191
  "remark-footnotes": "2.0.0",
1194
- "remark-math": "1.0.6",
1192
+ "remark-math": "3.0.1",
1195
1193
  "remark-parse": "8.0.3",
1196
- resolve: "1.17.0",
1194
+ resolve: "1.19.0",
1197
1195
  semver: "7.3.2",
1198
1196
  "string-width": "4.2.0",
1199
- typescript: "4.0.2",
1197
+ typescript: "4.1.2",
1200
1198
  "unicode-regex": "3.0.0",
1201
1199
  unified: "9.2.0",
1202
1200
  vnopts: "1.0.2",
1203
- "yaml-unist-parser": "1.3.0"
1201
+ "yaml-unist-parser": "1.3.1"
1204
1202
  };
1205
1203
  var devDependencies = {
1206
- "@babel/core": "7.11.4",
1207
- "@babel/preset-env": "7.11.0",
1208
- "@babel/types": "7.11.0",
1209
- "@glimmer/reference": "0.59.0",
1204
+ "@babel/core": "7.12.3",
1205
+ "@babel/preset-env": "7.12.1",
1206
+ "@babel/types": "7.12.6",
1207
+ "@glimmer/reference": "0.66.0",
1210
1208
  "@rollup/plugin-alias": "3.1.1",
1211
- "@rollup/plugin-babel": "5.2.0",
1212
- "@rollup/plugin-commonjs": "14.0.0",
1209
+ "@rollup/plugin-babel": "5.2.1",
1210
+ "@rollup/plugin-commonjs": "16.0.0",
1213
1211
  "@rollup/plugin-json": "4.1.0",
1214
- "@rollup/plugin-node-resolve": "9.0.0",
1215
- "@rollup/plugin-replace": "2.3.3",
1212
+ "@rollup/plugin-node-resolve": "10.0.0",
1213
+ "@rollup/plugin-replace": "2.3.4",
1216
1214
  "@types/estree": "0.0.45",
1217
- "@types/node": "14.6.0",
1218
- "@typescript-eslint/types": "3.9.1",
1219
- "babel-loader": "8.1.0",
1215
+ "@types/node": "14.14.0",
1216
+ "@typescript-eslint/types": "4.8.1",
1217
+ "babel-jest": "26.6.3",
1218
+ "babel-loader": "8.2.1",
1220
1219
  benchmark: "2.1.4",
1221
1220
  "builtin-modules": "3.1.0",
1222
1221
  "cross-env": "7.0.2",
1223
- cspell: "4.1.0",
1224
- eslint: "7.7.0",
1225
- "eslint-config-prettier": "6.11.0",
1222
+ cspell: "4.2.2",
1223
+ eslint: "7.13.0",
1224
+ "eslint-config-prettier": "6.15.0",
1226
1225
  "eslint-formatter-friendly": "7.0.0",
1227
- "eslint-plugin-import": "2.22.0",
1228
- "eslint-plugin-jest": "23.20.0",
1226
+ "eslint-plugin-import": "2.22.1",
1227
+ "eslint-plugin-jest": "24.1.3",
1229
1228
  "eslint-plugin-prettier-internal-rules": "file:scripts/tools/eslint-plugin-prettier-internal-rules",
1230
- "eslint-plugin-react": "7.20.6",
1231
- "eslint-plugin-unicorn": "21.0.0",
1232
- execa: "4.0.3",
1233
- jest: "26.4.2",
1229
+ "eslint-plugin-react": "7.21.5",
1230
+ "eslint-plugin-unicorn": "23.0.0",
1231
+ execa: "4.1.0",
1232
+ jest: "26.6.3",
1234
1233
  "jest-snapshot-serializer-ansi": "1.0.0",
1235
1234
  "jest-snapshot-serializer-raw": "1.1.0",
1236
- "jest-watch-typeahead": "0.6.0",
1235
+ "jest-watch-typeahead": "0.6.1",
1237
1236
  "npm-run-all": "4.1.5",
1238
- prettier: "2.0.5",
1237
+ "path-browserify": "1.0.1",
1238
+ prettier: "2.2.0",
1239
1239
  rimraf: "3.0.2",
1240
- rollup: "2.26.5",
1240
+ rollup: "2.33.3",
1241
1241
  "rollup-plugin-node-globals": "1.4.0",
1242
- "rollup-plugin-terser": "7.0.0",
1242
+ "rollup-plugin-terser": "7.0.2",
1243
1243
  shelljs: "0.8.4",
1244
1244
  "snapshot-diff": "0.8.1",
1245
1245
  "strip-ansi": "6.0.0",
1246
- "synchronous-promise": "2.0.13",
1247
- tempy: "0.6.0",
1248
- "terser-webpack-plugin": "4.1.0",
1249
- webpack: "4.44.1"
1246
+ "synchronous-promise": "2.0.15",
1247
+ tempy: "1.0.0",
1248
+ "terser-webpack-plugin": "5.0.3",
1249
+ webpack: "5.5.1"
1250
1250
  };
1251
1251
  var scripts = {
1252
1252
  prepublishOnly: "echo \"Error: must publish from dist/\" && exit 1",
@@ -1263,17 +1263,17 @@
1263
1263
  "lint:typecheck": "tsc",
1264
1264
  "lint:eslint": "cross-env EFF_NO_LINK_RULES=true eslint . --format friendly",
1265
1265
  "lint:changelog": "node ./scripts/lint-changelog.js",
1266
- "lint:prettier": "prettier \"**/*.{md,json,yml,html,css,js,d.ts}\" \"!test*\" --check",
1267
- "lint:dist": "eslint --no-eslintrc --no-ignore --env=es6,browser --parser-options=ecmaVersion:2016 \"dist/!(bin-prettier|index|third-party).js\"",
1266
+ "lint:prettier": "prettier . \"!test*\" --check",
1267
+ "lint:dist": "eslint --no-eslintrc --no-ignore --env=es6,browser --parser-options=ecmaVersion:2018 \"dist/!(bin-prettier|index|third-party).js\"",
1268
1268
  "lint:spellcheck": "cspell \"**/*\" \".github/**/*\"",
1269
1269
  "lint:deps": "node ./scripts/check-deps.js",
1270
1270
  fix: "run-s fix:eslint fix:prettier",
1271
1271
  "fix:eslint": "yarn lint:eslint --fix",
1272
1272
  "fix:prettier": "yarn lint:prettier --write",
1273
- build: "node ./scripts/build/build.js",
1273
+ build: "node --max-old-space-size=3072 ./scripts/build/build.js",
1274
1274
  "build-docs": "node ./scripts/build-docs.js"
1275
1275
  };
1276
- var _package = {
1276
+ var require$$3 = {
1277
1277
  name: name,
1278
1278
  version: version$1,
1279
1279
  description: description,
@@ -1292,27 +1292,6 @@
1292
1292
  scripts: scripts
1293
1293
  };
1294
1294
 
1295
- var _package$1 = /*#__PURE__*/Object.freeze({
1296
- __proto__: null,
1297
- name: name,
1298
- version: version$1,
1299
- description: description,
1300
- bin: bin,
1301
- repository: repository,
1302
- homepage: homepage,
1303
- author: author,
1304
- license: license,
1305
- main: main,
1306
- browser: browser$1,
1307
- unpkg: unpkg,
1308
- engines: engines,
1309
- files: files,
1310
- dependencies: dependencies,
1311
- devDependencies: devDependencies,
1312
- scripts: scripts,
1313
- 'default': _package
1314
- });
1315
-
1316
1295
  var lib = createCommonjsModule(function (module, exports) {
1317
1296
 
1318
1297
  Object.defineProperty(exports, "__esModule", {
@@ -1345,7 +1324,7 @@
1345
1324
  delete: noop,
1346
1325
  get: noop,
1347
1326
  set: noop,
1348
- has: function has(k) {
1327
+ has: function (k) {
1349
1328
  return false;
1350
1329
  }
1351
1330
  };
@@ -1354,7 +1333,7 @@
1354
1333
 
1355
1334
  var hop = Object.prototype.hasOwnProperty;
1356
1335
 
1357
- var has = function has(obj, prop) {
1336
+ var has = function (obj, prop) {
1358
1337
  return hop.call(obj, prop);
1359
1338
  }; // Copy all own enumerable properties from source to target
1360
1339
 
@@ -1496,7 +1475,7 @@
1496
1475
  }
1497
1476
 
1498
1477
  var fullOutdent = extend(outdent, {
1499
- string: function string(str) {
1478
+ string: function (str) {
1500
1479
  return _outdentArray([str], false, options)[0];
1501
1480
  }
1502
1481
  });
@@ -1529,7 +1508,7 @@
1529
1508
  function _templateObject6() {
1530
1509
  const data = _taggedTemplateLiteral(["\n Require either '@prettier' or '@format' to be present in the file's first docblock comment\n in order for it to be formatted.\n "]);
1531
1510
 
1532
- _templateObject6 = function _templateObject6() {
1511
+ _templateObject6 = function () {
1533
1512
  return data;
1534
1513
  };
1535
1514
 
@@ -1539,7 +1518,7 @@
1539
1518
  function _templateObject5() {
1540
1519
  const data = _taggedTemplateLiteral(["\n Format code starting at a given character offset.\n The range will extend backwards to the start of the first line containing the selected statement.\n This option cannot be used with --cursor-offset.\n "]);
1541
1520
 
1542
- _templateObject5 = function _templateObject5() {
1521
+ _templateObject5 = function () {
1543
1522
  return data;
1544
1523
  };
1545
1524
 
@@ -1549,7 +1528,7 @@
1549
1528
  function _templateObject4() {
1550
1529
  const data = _taggedTemplateLiteral(["\n Format code ending at a given character offset (exclusive).\n The range will extend forwards to the end of the selected statement.\n This option cannot be used with --cursor-offset.\n "]);
1551
1530
 
1552
- _templateObject4 = function _templateObject4() {
1531
+ _templateObject4 = function () {
1553
1532
  return data;
1554
1533
  };
1555
1534
 
@@ -1559,7 +1538,7 @@
1559
1538
  function _templateObject3() {
1560
1539
  const data = _taggedTemplateLiteral(["\n Custom directory that contains prettier plugins in node_modules subdirectory.\n Overrides default behavior when plugins are searched relatively to the location of Prettier.\n Multiple values are accepted.\n "]);
1561
1540
 
1562
- _templateObject3 = function _templateObject3() {
1541
+ _templateObject3 = function () {
1563
1542
  return data;
1564
1543
  };
1565
1544
 
@@ -1569,7 +1548,7 @@
1569
1548
  function _templateObject2() {
1570
1549
  const data = _taggedTemplateLiteral(["\n Maintain existing\n (mixed values within one file are normalised by looking at what's used after the first line)\n "]);
1571
1550
 
1572
- _templateObject2 = function _templateObject2() {
1551
+ _templateObject2 = function () {
1573
1552
  return data;
1574
1553
  };
1575
1554
 
@@ -1579,7 +1558,7 @@
1579
1558
  function _templateObject() {
1580
1559
  const data = _taggedTemplateLiteral(["\n Print (to stderr) where a cursor at the given position would move to after formatting.\n This option cannot be used with --range-start and --range-end.\n "]);
1581
1560
 
1582
- _templateObject = function _templateObject() {
1561
+ _templateObject = function () {
1583
1562
  return data;
1584
1563
  };
1585
1564
 
@@ -1724,6 +1703,14 @@
1724
1703
  value: "typescript",
1725
1704
  since: "1.4.0",
1726
1705
  description: "TypeScript"
1706
+ }, {
1707
+ value: "espree",
1708
+ since: "2.2.0",
1709
+ description: "JavaScript"
1710
+ }, {
1711
+ value: "meriyah",
1712
+ since: "2.2.0",
1713
+ description: "JavaScript"
1727
1714
  }, {
1728
1715
  value: "css",
1729
1716
  since: "1.7.1",
@@ -1905,8 +1892,6 @@
1905
1892
  options
1906
1893
  };
1907
1894
 
1908
- var require$$3 = getCjsExportFromNamespace(_package$1);
1909
-
1910
1895
  const semver$1 = {
1911
1896
  compare: compare_1,
1912
1897
  lt: lt_1,
@@ -2013,6 +1998,9 @@
2013
1998
  getSupportInfo
2014
1999
  };
2015
2000
 
2001
+ const {
2002
+ getSupportInfo: getSupportInfo$1
2003
+ } = support;
2016
2004
  const notAsciiRegex = /[^\x20-\x7F]/;
2017
2005
 
2018
2006
  const getPenultimate = arr => arr[arr.length - 2];
@@ -2560,15 +2548,6 @@
2560
2548
  return stringWidth_1(text);
2561
2549
  }
2562
2550
 
2563
- function hasIgnoreComment(path) {
2564
- const node = path.getValue();
2565
- return hasNodeIgnoreComment(node);
2566
- }
2567
-
2568
- function hasNodeIgnoreComment(node) {
2569
- return node && (node.comments && node.comments.length > 0 && node.comments.some(comment => isNodeIgnoreComment(comment) && !comment.unignore) || node.prettierIgnore);
2570
- }
2571
-
2572
2551
  function isNodeIgnoreComment(comment) {
2573
2552
  return comment.value.trim() === "prettier-ignore";
2574
2553
  }
@@ -2608,25 +2587,6 @@
2608
2587
  comment.leading = false;
2609
2588
  comment.trailing = true;
2610
2589
  addCommentHelper(node, comment);
2611
- } // Not using
2612
-
2613
- /* istanbul ignore next */
2614
-
2615
-
2616
- function isWithinParentArrayProperty(path, propertyName) {
2617
- const node = path.getValue();
2618
- const parent = path.getParentNode();
2619
-
2620
- if (parent == null) {
2621
- return false;
2622
- }
2623
-
2624
- if (!Array.isArray(parent[propertyName])) {
2625
- return false;
2626
- }
2627
-
2628
- const key = path.getName();
2629
- return parent[propertyName][key] === node;
2630
2590
  }
2631
2591
 
2632
2592
  function replaceEndOfLineWith(text, replacement) {
@@ -2643,17 +2603,20 @@
2643
2603
  return parts;
2644
2604
  }
2645
2605
 
2646
- function getParserName(lang, options) {
2647
- const supportInfo = support.getSupportInfo({
2606
+ function inferParserByLanguage(language, options) {
2607
+ const {
2608
+ languages
2609
+ } = getSupportInfo$1({
2648
2610
  plugins: options.plugins
2649
2611
  });
2650
- const language = supportInfo.languages.find(language => language.name.toLowerCase() === lang || language.aliases && language.aliases.includes(lang) || language.extensions && language.extensions.some(ext => ext === ".".concat(lang)));
2651
-
2652
- if (language) {
2653
- return language.parsers[0];
2654
- }
2655
-
2656
- return null;
2612
+ const matched = languages.find(({
2613
+ name
2614
+ }) => name.toLowerCase() === language) || languages.find(({
2615
+ aliases
2616
+ }) => Array.isArray(aliases) && aliases.includes(language)) || languages.find(({
2617
+ extensions
2618
+ }) => Array.isArray(extensions) && extensions.includes(".".concat(language)));
2619
+ return matched && matched.parsers[0];
2657
2620
  }
2658
2621
 
2659
2622
  function isFrontMatterNode(node) {
@@ -2675,11 +2638,11 @@
2675
2638
  }
2676
2639
 
2677
2640
  var util = {
2641
+ inferParserByLanguage,
2678
2642
  replaceEndOfLineWith,
2679
2643
  getStringWidth,
2680
2644
  getMaxContinuousCount,
2681
2645
  getMinNotPresentContinuousCount,
2682
- getParserName,
2683
2646
  getPenultimate,
2684
2647
  getLast,
2685
2648
  getNextNonSpaceNonCommentCharacterIndexWithStartIndex,
@@ -2704,14 +2667,11 @@
2704
2667
  getPreferredQuote,
2705
2668
  printString,
2706
2669
  printNumber,
2707
- hasIgnoreComment,
2708
- hasNodeIgnoreComment,
2709
2670
  isNodeIgnoreComment,
2710
2671
  makeString,
2711
2672
  addLeadingComment,
2712
2673
  addDanglingComment,
2713
2674
  addTrailingComment,
2714
- isWithinParentArrayProperty,
2715
2675
  isFrontMatterNode,
2716
2676
  getShebang
2717
2677
  };
@@ -3321,6 +3281,13 @@
3321
3281
 
3322
3282
  break;
3323
3283
  }
3284
+ } // Flush remaining line-suffix contents at the end of the document, in case
3285
+ // there is no new line after the line-suffix.
3286
+
3287
+
3288
+ if (cmds.length === 0 && lineSuffix.length) {
3289
+ cmds.push(...lineSuffix.reverse());
3290
+ lineSuffix = [];
3324
3291
  }
3325
3292
  }
3326
3293
 
@@ -3347,6 +3314,11 @@
3347
3314
  printDocToString
3348
3315
  };
3349
3316
 
3317
+ const {
3318
+ literalline: literalline$1,
3319
+ concat: concat$2
3320
+ } = docBuilders; // Using a unique object to compare by reference.
3321
+
3350
3322
  const traverseDocOnExitStackMarker = {};
3351
3323
 
3352
3324
  function traverseDoc(doc, onEnter, onExit, shouldTraverseConditionalGroups) {
@@ -3623,6 +3595,10 @@
3623
3595
  });
3624
3596
  }
3625
3597
 
3598
+ function replaceNewlinesWithLiterallines(doc) {
3599
+ return mapDoc(doc, currentDoc => typeof currentDoc === "string" && currentDoc.includes("\n") ? concat$2(currentDoc.split(/(\n)/g).map((v, i) => i % 2 === 0 ? v : literalline$1)) : currentDoc);
3600
+ }
3601
+
3626
3602
  var docUtils = {
3627
3603
  isEmpty,
3628
3604
  willBreak,
@@ -3634,7 +3610,8 @@
3634
3610
  removeLines,
3635
3611
  stripTrailingHardline,
3636
3612
  normalizeParts,
3637
- normalizeDoc
3613
+ normalizeDoc,
3614
+ replaceNewlinesWithLiterallines
3638
3615
  };
3639
3616
 
3640
3617
  function flattenDoc(doc) {