Skip to content

Commit

Permalink
chore(deps): update dependency prettier to v1.15.3 (#273)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency prettier to v1.15.3

* chore(deps): update code formatting
  • Loading branch information
renovate[bot] authored and armandabric committed Jan 5, 2019
1 parent 4a6e229 commit 1272be4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -65,7 +65,7 @@
"json": "9.0.6",
"lint-staged": "7.3.0",
"mversion": "1.12.0",
"prettier": "1.8.2",
"prettier": "1.15.3",
"react": "16.5.2",
"react-dom": "16.5.2",
"react-test-renderer": "16.5.2",
Expand Down
4 changes: 1 addition & 3 deletions src/formatter/formatReactElementNode.js
Expand Up @@ -106,9 +106,7 @@ export default (

if (type !== 'ReactElement') {
throw new Error(
`The "formatReactElementNode" function could only format node of type "ReactElement". Given: ${
type
}`
`The "formatReactElementNode" function could only format node of type "ReactElement". Given: ${type}`
);
}

Expand Down
4 changes: 1 addition & 3 deletions src/formatter/formatReactFragmentNode.js
Expand Up @@ -45,9 +45,7 @@ export default (

if (type !== 'ReactFragment') {
throw new Error(
`The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: ${
type
}`
`The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: ${type}`
);
}

Expand Down
3 changes: 2 additions & 1 deletion src/index.spec.js
Expand Up @@ -547,7 +547,8 @@ describe('reactElementToJSXString(ReactElement)', () => {
expect(
reactElementToJSXString(
<div>
foo<div />
foo
<div />
</div>
)
).toEqual(
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Expand Up @@ -5790,9 +5790,9 @@ preserve@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"

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

pretty-format@^22.1.0:
version "22.1.0"
Expand Down

0 comments on commit 1272be4

Please sign in to comment.