Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

Commit

Permalink
chore: lint (#63)
Browse files Browse the repository at this point in the history
* chore(tools): add linting
* chore(lint): result of first format/lint
  • Loading branch information
Bouncey authored and raisedadead committed Apr 24, 2018
1 parent 220f9ec commit 00621ad
Show file tree
Hide file tree
Showing 9 changed files with 1,107 additions and 35 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
@@ -0,0 +1,2 @@
node_modules
.webpack
3 changes: 3 additions & 0 deletions .eslintrc
@@ -0,0 +1,3 @@
{
"extends": "freecodecamp"
}
2 changes: 1 addition & 1 deletion config/secrets.js
@@ -1,4 +1,4 @@
require("dotenv").config();
require('dotenv').config();

const { MONGODB_URL, GRAPHQL_ENDPOINT_URL } = process.env;

Expand Down
1 change: 1 addition & 0 deletions dataLayer/index.js
@@ -1,5 +1,6 @@
const mongoose = require('mongoose');
const bluebird = require('bluebird');

mongoose.Promise = bluebird;
mongoose.Promise = global.Promise;

Expand Down
4 changes: 2 additions & 2 deletions graphql/resolvers/index.js
@@ -1,4 +1,4 @@
import { mergeResolvers } from "merge-graphql-schemas";
import { userResolvers } from "./user";
import { mergeResolvers } from 'merge-graphql-schemas';
import { userResolvers } from './user';

export default mergeResolvers([userResolvers]);
6 changes: 3 additions & 3 deletions graphql/typeDefs/User/index.js
@@ -1,6 +1,6 @@
import UserType from "./type";
import Query from "./query";
import Mutation from "./mutation";
import UserType from './type';
import Query from './query';
import Mutation from './mutation';

export default `
${UserType}
Expand Down
4 changes: 2 additions & 2 deletions graphql/typeDefs/index.js
@@ -1,4 +1,4 @@
import { mergeTypes } from "merge-graphql-schemas";
import User from "./User";
import { mergeTypes } from 'merge-graphql-schemas';
import User from './User';

export default mergeTypes([User]);

0 comments on commit 00621ad

Please sign in to comment.