diff --git a/example/.eslintrc b/example/.eslintrc new file mode 100644 index 0000000..7753f32 --- /dev/null +++ b/example/.eslintrc @@ -0,0 +1,5 @@ +{ + "rules": { + "no-console": 0 + } +} diff --git a/example/hapi.js b/example/hapi.js index 4dd7f27..adcdda4 100644 --- a/example/hapi.js +++ b/example/hapi.js @@ -1,9 +1,9 @@ -import {Server} from 'hapi'; +import { Server } from 'hapi'; import graffiti from '../'; import schema from './schema'; const server = new Server(); -server.connection({port: 3002}); +server.connection({ port: 3002 }); server.register({ register: graffiti.hapi, options: { diff --git a/example/schema/index.js b/example/schema/index.js index bf6c5eb..3972e45 100644 --- a/example/schema/index.js +++ b/example/schema/index.js @@ -1,7 +1,7 @@ import mongoose from 'mongoose'; import User from './user'; import Pet from './pet'; -import {getSchema} from '@risingstack/graffiti-mongoose'; +import { getSchema } from '@risingstack/graffiti-mongoose'; mongoose.connect(process.env.MONGO_URI || 'mongodb://localhost/graphql');