fix(prettier): Properly handle lint-stage files (#6970)

Now handles top level files and recursive files in folders.

Set max line length to be 100
This commit is contained in:
Diamond Lewis
2020-10-25 15:06:58 -05:00
committed by GitHub
parent c2f2281e6d
commit e6ac3b6932
178 changed files with 5585 additions and 10688 deletions

View File

@@ -57,12 +57,10 @@ function restStatusHandler(className, config) {
const auth = Auth.master(config);
function create(object) {
lastPromise = lastPromise.then(() => {
return rest
.create(config, auth, className, object)
.then(({ response }) => {
// merge the objects
return Promise.resolve(Object.assign({}, object, response));
});
return rest.create(config, auth, className, object).then(({ response }) => {
// merge the objects
return Promise.resolve(Object.assign({}, object, response));
});
});
return lastPromise;
}
@@ -156,9 +154,7 @@ export function pushStatusHandler(config, existingObjectId) {
pushTime = body.push_time;
status = 'scheduled';
} else {
logger.warn(
'Trying to schedule a push while server is not configured.'
);
logger.warn('Trying to schedule a push while server is not configured.');
logger.warn('Push will be sent immediately');
}
}
@@ -216,8 +212,7 @@ export function pushStatusHandler(config, existingObjectId) {
const trackSent = function (
results,
UTCOffset,
cleanupInstallations = process.env
.PARSE_SERVER_CLEANUP_INVALID_INSTALLATIONS
cleanupInstallations = process.env.PARSE_SERVER_CLEANUP_INVALID_INSTALLATIONS
) {
const update = {
numSent: 0,
@@ -289,9 +284,7 @@ export function pushStatusHandler(config, existingObjectId) {
});
if (devicesToRemove.length > 0 && cleanupInstallations) {
logger.info(
`Removing device tokens on ${devicesToRemove.length} _Installations`
);
logger.info(`Removing device tokens on ${devicesToRemove.length} _Installations`);
database.update(
'_Installation',
{ deviceToken: { $in: devicesToRemove } },