Upgrade Prettier in Xplat to version 1.19.1: format files

Summary:
Part two of D20879147 where we update the versions of Prettier used in Xplat. I will stack land the diffs.
Here, we format all the files, and use the drop conflicts flag. After this lands, I will go and format the files which had conflicts again.

Changelog: [Internal]

drop-conflicts
bypass-lint
allow-large-files

Reviewed By: gkz

Differential Revision: D20929844

fbshipit-source-id: 2c1df8966a48b5db4f890e2cc494cb1c69422b7d
This commit is contained in:
George Zahariev
2020-04-09 10:55:48 -07:00
committed by Facebook GitHub Bot
parent 8c53c2dcca
commit f7bc0ad248
3 changed files with 13 additions and 16 deletions

View File

@@ -47,8 +47,8 @@ function dipOrPercent(value) {
return value === 'auto'
? 'Auto'
: typeof value === 'string' && /%$/.test(value)
? 'Percent'
: 'Dip';
? 'Percent'
: 'Dip';
}
function getValue(value) {

View File

@@ -52,9 +52,7 @@ export default class URLShortener extends Component<{}, State> {
}
fetch(
`https://cors-anywhere.herokuapp.com/tinyurl.com/api-create.php?url=${
window.location.href
}`,
`https://cors-anywhere.herokuapp.com/tinyurl.com/api-create.php?url=${window.location.href}`,
)
.then(res => res.text())
.then(shortURL => this.setState({shortURL, loading: false}))

View File

@@ -49,17 +49,16 @@ export default ({data}) => (
({node}) =>
node.fileAbsolutePath.indexOf(`/${category}/`) > -1,
)
.map(
({node}) =>
node.frontmatter.redirect ? (
<a key={node.id} href={node.frontmatter.path}>
{node.frontmatter.title}
</a>
) : (
<Link key={node.id} to={node.frontmatter.path}>
{node.frontmatter.title}
</Link>
),
.map(({node}) =>
node.frontmatter.redirect ? (
<a key={node.id} href={node.frontmatter.path}>
{node.frontmatter.title}
</a>
) : (
<Link key={node.id} to={node.frontmatter.path}>
{node.frontmatter.title}
</Link>
),
)}
</Col>
),