Bump Prettier dependency to 1.18.0

master
Lucas Duailibe 2019-06-06 18:48:11 -03:00
parent 3ac90b3e37
commit 4cc99242a8
8 changed files with 12 additions and 23 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "prettier", "name": "prettier",
"version": "1.18.0", "version": "1.19.0-dev",
"description": "Prettier is an opinionated code formatter", "description": "Prettier is an opinionated code formatter",
"bin": { "bin": {
"prettier": "./bin/prettier.js" "prettier": "./bin/prettier.js"
@ -96,7 +96,7 @@
"jest-snapshot-serializer-raw": "1.1.0", "jest-snapshot-serializer-raw": "1.1.0",
"jest-watch-typeahead": "0.1.0", "jest-watch-typeahead": "0.1.0",
"mkdirp": "0.5.1", "mkdirp": "0.5.1",
"prettier": "1.17.1", "prettier": "1.18.0",
"prettylint": "1.0.0", "prettylint": "1.0.0",
"rimraf": "2.6.2", "rimraf": "2.6.2",
"rollup": "0.47.6", "rollup": "0.47.6",

View File

@ -59,9 +59,7 @@ module.exports = async function({ version, previousVersion }) {
} }
console.warn( console.warn(
dedent(chalk` dedent(chalk`
{yellow warning} The file {bold ${ {yellow warning} The file {bold ${blogPost.file}} doesn't exist, but it will be referenced in {bold CHANGELOG.md}. Make sure to create it later.
blogPost.file
}} doesn't exist, but it will be referenced in {bold CHANGELOG.md}. Make sure to create it later.
Press ENTER to continue. Press ENTER to continue.
`) `)

View File

@ -45,9 +45,7 @@ function runExternalTests(patterns) {
} }
process.stderr.write( process.stderr.write(
`\r${results.good.length} good, ${results.skipped.length} skipped, ${ `\r${results.good.length} good, ${results.skipped.length} skipped, ${results.bad.length} bad`
results.bad.length
} bad`
); );
}); });

View File

@ -296,9 +296,7 @@ function printStringLiteral(stringLiteral, options) {
`\\${enclosingQuote.quote}` `\\${enclosingQuote.quote}`
); );
return `${enclosingQuote.quote}${escapedStringLiteral}${ return `${enclosingQuote.quote}${escapedStringLiteral}${enclosingQuote.quote}`;
enclosingQuote.quote
}`;
} }
function printPath(path, print) { function printPath(path, print) {

View File

@ -46,9 +46,7 @@ function resolveParser(opts, parsers) {
/* istanbul ignore next */ /* istanbul ignore next */
if (process.env.PRETTIER_TARGET === "universal") { if (process.env.PRETTIER_TARGET === "universal") {
throw new ConfigError( throw new ConfigError(
`Couldn't resolve parser "${ `Couldn't resolve parser "${opts.parser}". Parsers must be explicitly added to the standalone bundle.`
opts.parser
}". Parsers must be explicitly added to the standalone bundle.`
); );
} else { } else {
try { try {

View File

@ -40,9 +40,7 @@ class Users extends React.Component {
<p>Are you using this project?</p> <p>Are you using this project?</p>
</div> </div>
<a <a
href={`${ href={`${siteConfig.githubUrl}/edit/master/website/data/users.yml`}
siteConfig.githubUrl
}/edit/master/website/data/users.yml`}
className="button" className="button"
> >
Add your company Add your company

View File

@ -80,9 +80,7 @@ function Versions(props) {
</td> </td>
<td> <td>
<a <a
href={`${ href={`${siteConfig.baseUrl}docs/en/${pastDocsVersion}/index.html`}
siteConfig.baseUrl
}docs/en/${pastDocsVersion}/index.html`}
> >
{pastDocsVersion} {pastDocsVersion}
</a> </a>

View File

@ -4649,9 +4649,10 @@ preserve@^0.2.0:
version "0.2.0" version "0.2.0"
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
prettier@1.17.1: prettier@1.18.0:
version "1.17.1" version "1.18.0"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.17.1.tgz#ed64b4e93e370cb8a25b9ef7fef3e4fd1c0995db" resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.18.0.tgz#d1701ca9b2941864b52f3262b35946d2c9cd88f0"
integrity sha512-YsdAD29M0+WY2xXZk3i0PA16olY9qZss+AuODxglXcJ+2ZBwFv+6k5tE8GS8/HKAthaajlS/WqhdgcjumOrPlg==
pretty-format@^23.0.1, pretty-format@^23.2.0: pretty-format@^23.0.1, pretty-format@^23.2.0:
version "23.2.0" version "23.2.0"