Merge pull request #3942 from overleaf/prettier-trailing-comma

Set Prettier's "trailingComma" setting to "es5"

GitOrigin-RevId: 9f14150511929a855b27467ad17be6ab262fe5d5
This commit is contained in:
Alf Eaton
2021-04-28 02:10:01 +00:00
committed by Copybot
parent 15011a9982
commit 1be43911b4
877 changed files with 20093 additions and 20064 deletions
@@ -30,7 +30,7 @@ function AccessibleModal({ show, ...otherProps }) {
}
AccessibleModal.propTypes = {
show: PropTypes.bool
show: PropTypes.bool,
}
export default AccessibleModal
@@ -24,6 +24,6 @@ export default function BetaBadge({ tooltip }) {
BetaBadge.propTypes = {
tooltip: PropTypes.exact({
id: PropTypes.string.isRequired,
text: PropTypes.string.isRequired
})
text: PropTypes.string.isRequired,
}),
}
@@ -45,5 +45,5 @@ export default function CopyLink({ link, tooltipId }) {
}
CopyLink.propTypes = {
link: PropTypes.string.isRequired,
tooltipId: PropTypes.string.isRequired
tooltipId: PropTypes.string.isRequired,
}
@@ -8,14 +8,14 @@ function Icon({
modifier,
classes = {},
accessibilityLabel,
children
children,
}) {
const iconClassName = classNames(
'fa',
`fa-${type}`,
{
'fa-spin': spin,
[`fa-${modifier}`]: modifier
[`fa-${modifier}`]: modifier,
},
classes.icon
)
@@ -37,13 +37,13 @@ Icon.propTypes = {
spin: PropTypes.bool,
modifier: PropTypes.string,
classes: PropTypes.exact({
icon: PropTypes.string
icon: PropTypes.string,
}),
accessibilityLabel: PropTypes.string,
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node
])
PropTypes.node,
]),
}
export default Icon
@@ -18,8 +18,8 @@ TooltipButton.propTypes = {
onClick: PropTypes.func,
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node
])
PropTypes.node,
]),
}
export default TooltipButton