Skip to content

Commit

Permalink
feat: upgrade Prettier (v1.13)
Browse files Browse the repository at this point in the history
Closes #108
  • Loading branch information
gregberge committed May 28, 2018
1 parent c61438b commit 2f50403
Show file tree
Hide file tree
Showing 3 changed files with 852 additions and 715 deletions.
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,30 @@
],
"license": "MIT",
"devDependencies": {
"@babel/cli": "^7.0.0-beta.46",
"@babel/plugin-proposal-class-properties": "^7.0.0-beta.46",
"@babel/cli": "^7.0.0-beta.49",
"@babel/plugin-proposal-class-properties": "^7.0.0-beta.49",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^8.2.3",
"babel-jest": "^22.4.3",
"babel-jest": "^23.0.1",
"babel-loader": "^7.1.4",
"codecov": "^3.0.2",
"conventional-github-releaser": "^2.0.2",
"eslint": "^4.19.1",
"eslint-config-airbnb-base": "^12.0.1",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-import": "^2.11.0",
"jest": "^22.4.3",
"eslint-plugin-import": "^2.12.0",
"jest": "^23.0.1",
"memory-fs": "^0.4.1",
"react": "^16.3.2",
"standard-version": "^4.3.0",
"webpack": "^4.8.3"
"react": "^16.4.0",
"standard-version": "^4.4.0",
"webpack": "^4.9.1"
},
"dependencies": {
"@babel/core": "^7.0.0-beta.46",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.46",
"@babel/plugin-transform-react-constant-elements": "^7.0.0-beta.46",
"@babel/preset-env": "^7.0.0-beta.46",
"@babel/preset-react": "^7.0.0-beta.46",
"@babel/core": "^7.0.0-beta.49",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.49",
"@babel/plugin-transform-react-constant-elements": "^7.0.0-beta.49",
"@babel/preset-env": "^7.0.0-beta.49",
"@babel/preset-react": "^7.0.0-beta.49",
"chalk": "^2.4.1",
"commander": "^2.15.1",
"glob": "^7.1.2",
Expand All @@ -48,7 +48,7 @@
"lodash": "^4.17.10",
"mz": "^2.6.0",
"output-file-sync": "^2.0.1",
"prettier": "^1.12.1",
"prettier": "^1.13.0",
"recursive-readdir": "^2.2.2",
"svgo": "^1.0.5"
},
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/prettier.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import prettier from 'prettier'

export default (code, opts) => prettier.format(code, opts)
export default (code, opts) =>
prettier.format(code, { ...opts, parser: 'babylon' })
Loading

3 comments on commit 2f50403

@Johannesklint
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it's almost a breaking change in prettier 1.13.0, how come you explicitly updated it?
Because you have it as a dependency and not a devDependency it breaks in my environment

@gregberge
Copy link
Owner Author

@gregberge gregberge commented on 2f50403 May 29, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does it break your environment?

@Johannesklint
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.