Skip to content

Commit 7719096

Browse files
authored
chore(deps): upgrade prettier and parser (#1255)
* chore(deps): upgrade prettier * upgrade php-parser
1 parent b881276 commit 7719096

3 files changed

Lines changed: 12 additions & 10 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"dependencies": {
1414
"linguist-languages": "^7.5.1",
1515
"mem": "^6.0.1",
16-
"php-parser": "glayzzle/php-parser#prettier"
16+
"php-parser": "glayzzle/php-parser#8ddd319ff32fe56afc3fdb0bd82a65ad0943c747"
1717
},
1818
"devDependencies": {
1919
"@babel/preset-env": "^7.7.5",
@@ -26,7 +26,7 @@
2626
"jest": "24.9.0",
2727
"jest-runner-eslint": "0.7.5",
2828
"jest-snapshot-serializer-raw": "^1.1.0",
29-
"prettier": "^1.15.3",
29+
"prettier": "^1.19.1",
3030
"rollup": "^1.1.2",
3131
"rollup-plugin-alias": "^2.0.0",
3232
"rollup-plugin-babel": "^4.3.2",

src/printer.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,8 @@ function printNode(path, options, print) {
21732173
["identifier", "variable", "encapsedpart"].includes(
21742174
node.offset.kind
21752175
) &&
2176-
(parent && !isLookupNode(parent)));
2176+
parent &&
2177+
!isLookupNode(parent));
21772178

21782179
return concat([
21792180
path.call(print, "what"),
@@ -2615,7 +2616,8 @@ function printNode(path, options, print) {
26152616
const shouldNotIndent =
26162617
(node !== parent.body && parent.kind === "for") ||
26172618
(parent.kind === "retif" &&
2618-
(parentParent && parentParent.kind !== "return"));
2619+
parentParent &&
2620+
parentParent.kind !== "return");
26192621

26202622
const shouldIndentIfInlining = [
26212623
"assign",

yarn.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4068,9 +4068,9 @@ performance-now@^2.1.0:
40684068
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
40694069
integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=
40704070

4071-
php-parser@glayzzle/php-parser#prettier:
4071+
php-parser@glayzzle/php-parser#8ddd319ff32fe56afc3fdb0bd82a65ad0943c747:
40724072
version "3.0.0-prerelease.9"
4073-
resolved "https://codeload.github.com/glayzzle/php-parser/tar.gz/7c09272132e0b00263fa038ed47ca353e8848ee2"
4073+
resolved "https://codeload.github.com/glayzzle/php-parser/tar.gz/8ddd319ff32fe56afc3fdb0bd82a65ad0943c747"
40744074

40754075
pify@^2.0.0:
40764076
version "2.3.0"
@@ -4125,10 +4125,10 @@ prettier-linter-helpers@^1.0.0:
41254125
dependencies:
41264126
fast-diff "^1.1.2"
41274127

4128-
prettier@^1.15.3:
4129-
version "1.18.2"
4130-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.18.2.tgz#6823e7c5900017b4bd3acf46fe9ac4b4d7bda9ea"
4131-
integrity sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw==
4128+
prettier@^1.19.1:
4129+
version "1.19.1"
4130+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
4131+
integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==
41324132

41334133
pretty-format@^24.9.0:
41344134
version "24.9.0"

0 commit comments

Comments
 (0)