Skip to content

Commit 1272be4

Browse files
renovate[bot]armandabric
authored andcommitted
chore(deps): update dependency prettier to v1.15.3 (#273)
* chore(deps): update dependency prettier to v1.15.3 * chore(deps): update code formatting
1 parent 4a6e229 commit 1272be4

File tree

5 files changed

+8
-11
lines changed

5 files changed

+8
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"json": "9.0.6",
6666
"lint-staged": "7.3.0",
6767
"mversion": "1.12.0",
68-
"prettier": "1.8.2",
68+
"prettier": "1.15.3",
6969
"react": "16.5.2",
7070
"react-dom": "16.5.2",
7171
"react-test-renderer": "16.5.2",

src/formatter/formatReactElementNode.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,7 @@ export default (
106106

107107
if (type !== 'ReactElement') {
108108
throw new Error(
109-
`The "formatReactElementNode" function could only format node of type "ReactElement". Given: ${
110-
type
111-
}`
109+
`The "formatReactElementNode" function could only format node of type "ReactElement". Given: ${type}`
112110
);
113111
}
114112

src/formatter/formatReactFragmentNode.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ export default (
4545

4646
if (type !== 'ReactFragment') {
4747
throw new Error(
48-
`The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: ${
49-
type
50-
}`
48+
`The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: ${type}`
5149
);
5250
}
5351

src/index.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,8 @@ describe('reactElementToJSXString(ReactElement)', () => {
547547
expect(
548548
reactElementToJSXString(
549549
<div>
550-
foo<div />
550+
foo
551+
<div />
551552
</div>
552553
)
553554
).toEqual(

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5790,9 +5790,9 @@ preserve@^0.2.0:
57905790
version "0.2.0"
57915791
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
57925792

5793-
prettier@1.8.2:
5794-
version "1.8.2"
5795-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.8.2.tgz#bff83e7fd573933c607875e5ba3abbdffb96aeb8"
5793+
prettier@1.15.3:
5794+
version "1.15.3"
5795+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.15.3.tgz#1feaac5bdd181237b54dbe65d874e02a1472786a"
57965796

57975797
pretty-format@^22.1.0:
57985798
version "22.1.0"

0 commit comments

Comments
 (0)