Eslint clean up

This commit is contained in:
SachaG 2018-05-10 09:39:35 +09:00
parent d80e76e616
commit 47f21e4740
3 changed files with 3 additions and 2 deletions

View file

@ -21,7 +21,7 @@
"Juice",
"Run",
"AppComposer",
"Query",
"Query"
]
}],
"babel/array-bracket-spacing": 0,

View file

@ -6,7 +6,7 @@ import { runCallbacks } from './callbacks.js';
import { getSetting, registerSetting } from './settings.js';
import { registerFragment, getDefaultFragmentText } from './fragments.js';
import escapeStringRegexp from 'escape-string-regexp';
wrapAsync = (Meteor.wrapAsync)? Meteor.wrapAsync : Meteor._wrapAsync;
const wrapAsync = (Meteor.wrapAsync)? Meteor.wrapAsync : Meteor._wrapAsync;
// import { debug } from './debug.js';
registerSetting('maxDocumentsPerRequest', 1000, 'Maximum documents per request');

View file

@ -26,6 +26,7 @@ export const runQuery = async (query, variables = {}, context = { currentUser: {
if (result.errors) {
// eslint-disable-next-line no-console
console.error(`runQuery error: ${result.errors[0].message}`);
// eslint-disable-next-line no-console
console.error(result.errors);
throw new Error(result.errors[0].message);
}