Skip to content

Commit

Permalink
feat: update library for prettier@2 (#2)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `prettier@2` is now supported.
  • Loading branch information
tegain committed Apr 26, 2020
1 parent 0ad00ae commit 64b7b7e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
.DS_Store
node_modules
dist
coverage
coverage
.idea
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"minimist": ">=1.2.2"
},
"dependencies": {
"@types/prettier": "^1.19.0",
"@types/prettier": "^2.0.0",
"import-sort": "^6.0.0",
"import-sort-config": "^6.0.0",
"import-sort-parser-typescript": "^6.0.0",
Expand All @@ -66,15 +66,15 @@
"conventional-changelog-conventionalcommits": "^4.2.3",
"husky": "^4.2.3",
"lint-staged": "^10.0.8",
"prettier": "^1.19.1",
"prettier": "^2.0.0",
"prettier-plugin-packagejson": "^2.0.10",
"semantic-release": "^17.0.4",
"tsdx": "^0.12.3",
"tslib": "^1.11.1",
"typescript": "^3.8.3"
},
"peerDependencies": {
"prettier": "^1.19.1"
"prettier": "^2.0.0"
},
"importSort": {
".js,.ts,.tsx": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from 'path';
import sortImports from 'import-sort';
import { IConfigByGlobs, getConfig } from 'import-sort-config';
import { Plugin } from 'prettier';
import { parsers as javascriptParsers } from 'prettier/parser-babylon';
import { parsers as javascriptParsers } from 'prettier/parser-babel';
import { parsers as typescriptParsers } from 'prettier/parser-typescript';
import invariant from 'tiny-invariant';

Expand Down
13 changes: 9 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1341,10 +1341,10 @@
resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0"
integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==

"@types/prettier@^1.19.0":
version "1.19.0"
resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-1.19.0.tgz#a2502fb7ce9b6626fdbfc2e2a496f472de1bdd05"
integrity sha512-gDE8JJEygpay7IjA/u3JiIURvwZW08f0cZSZLAzFoX/ZmeqvS0Sqv+97aKuHpNsalAMMhwPe+iAS6fQbfmbt7A==
"@types/prettier@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.0.0.tgz#dc85454b953178cc6043df5208b9e949b54a3bc4"
integrity sha512-/rM+sWiuOZ5dvuVzV37sUuklsbg+JPOP8d+nNFlo2ZtfpzPiPvh1/gc8liWOLBqe+sR+ZM7guPaIcTt6UZTo7Q==

"@types/resolve@0.0.8":
version "0.0.8"
Expand Down Expand Up @@ -7237,6 +7237,11 @@ prettier@^1.19.1:
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==

prettier@^2.0.0:
version "2.0.5"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.5.tgz#d6d56282455243f2f92cc1716692c08aa31522d4"
integrity sha512-7PtVymN48hGcO4fGjybyBSIWDsLU4H4XlvOHfq91pz9kkGlonzwTfYkaIEwiRg/dAJF9YlbsduBAgtYLi+8cFg==

pretty-format@^24.9.0:
version "24.9.0"
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-24.9.0.tgz#12fac31b37019a4eea3c11aa9a959eb7628aa7c9"
Expand Down

0 comments on commit 64b7b7e

Please sign in to comment.