Run Prettier JS (#6795)

This commit is contained in:
Diamond Lewis
2020-07-13 13:06:52 -05:00
committed by GitHub
parent ebb0727793
commit e6a6354b29
47 changed files with 313 additions and 329 deletions

View File

@@ -137,7 +137,7 @@ class ParseGraphQLController {
}
if (classConfigs !== null) {
if (Array.isArray(classConfigs)) {
classConfigs.forEach(classConfig => {
classConfigs.forEach((classConfig) => {
const errorMessage = this._validateClassConfig(classConfig);
if (errorMessage) {
errorMessages.push(
@@ -332,9 +332,9 @@ class ParseGraphQLController {
}
}
const isValidStringArray = function(array): boolean {
const isValidStringArray = function (array): boolean {
return Array.isArray(array)
? !array.some(s => typeof s !== 'string' || s.trim().length < 1)
? !array.some((s) => typeof s !== 'string' || s.trim().length < 1)
: false;
};
/**
@@ -342,7 +342,7 @@ const isValidStringArray = function(array): boolean {
* object, i.e. not an array, null, date
* etc.
*/
const isValidSimpleObject = function(obj): boolean {
const isValidSimpleObject = function (obj): boolean {
return (
typeof obj === 'object' &&
!Array.isArray(obj) &&