Upgrade Prettier to v1.12.1 on fbsource

Summary:
Updates Prettier to v1.12.1, using `xplat/js/scripts/prettier-bump.js` based on the playbook by https://our.intern.facebook.com/intern/wiki/Prettier/upgrade-guide/

All changes related to upgrading or running Prettier

allow-many-files
allow-large-files
bypass-lint
drop-conflicts
ignore-conflict-markers
ignore-signed-source
ignore-nocommit

Reviewed By: benjaffe, ryanmce, yungsters

Differential Revision: D7652946

fbshipit-source-id: 396d45c675e93f2298cd2920d927630c81867447
This commit is contained in:
Peter van der Zee
2018-04-19 02:30:39 -07:00
committed by Facebook Github Bot
parent 8e4f3a3084
commit e1c19cecad
5 changed files with 17 additions and 13 deletions

View File

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

View File

@@ -49,7 +49,7 @@ export default class URLShortener extends Component<{}, State> {
window.ga('send', {
hitType: 'event',
eventCategory: 'URLShortener',
eventAction: 'created'
eventAction: 'created',
});
}