replaced eslint:recommended with prettier

This commit is contained in:
Wyatt Johnson
2018-01-11 20:00:34 -07:00
parent d56c19016a
commit 0abc2ca243
649 changed files with 16235 additions and 13008 deletions
+3 -4
View File
@@ -4,7 +4,7 @@
const fs = require('fs');
const path = require('path');
const {mergeStrings} = require('gql-merge');
const { mergeStrings } = require('gql-merge');
const debug = require('debug')('talk:graph:typeDefs');
const plugins = require('../services/plugins');
@@ -14,16 +14,15 @@ const plugins = require('../services/plugins');
* available graph.
*/
const typeDefs = mergeStrings([
// Load the core graph definitions from the filesystem.
fs.readFileSync(path.join(__dirname, 'typeDefs.graphql'), 'utf8'),
// Load the plugin definitions from the manager.
...plugins.get('server', 'typeDefs').map(({plugin, typeDefs}) => {
...plugins.get('server', 'typeDefs').map(({ plugin, typeDefs }) => {
debug(`added plugin '${plugin.name}'`);
return typeDefs;
})
}),
]);
module.exports = typeDefs;