Skip to content

Commit aaeb610

Browse files
authored
Merge pull request #1 from bryanchriswhite/master
devops tweaks
2 parents b3f8676 + 4d309e3 commit aaeb610

File tree

4 files changed

+10
-29
lines changed

4 files changed

+10
-29
lines changed

.eslintrc

+2-27
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,3 @@
1-
# {
2-
# "parser": "babel-eslint",
3-
# "plugins": [
4-
# ],
5-
# "env": {
6-
# "browser": true,
7-
# "node": true,
8-
# "es6": true,
9-
# },
10-
# "globals": {
11-
# "__DEV__": true,
12-
# "__SERVER__": true
13-
# },
14-
# "ecmaFeatures": {
15-
# },
16-
# "rules": {
17-
# // Strict mode
18-
# "strict": [2, "never"],
19-
#
20-
# // Code style
21-
# "indent": [2, 2],
22-
# "quotes": [2, "single"],
23-
# }
24-
# }
25-
261
{
272
"extends": "eslint-config-airbnb",
283
"env": {
@@ -47,12 +22,12 @@
4722
"no-multi-spaces": 0
4823
},
4924
"plugins": [
50-
"react", "import"
25+
"import"
5126
],
5227
"settings": {
5328
"import/parser": "babel-eslint",
5429
"import/resolve": {
55-
moduleDirectory: ["node_modules", "src"]
30+
"moduleDirectory": ["node_modules", "src"]
5631
}
5732
},
5833
"globals": {

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules/
22
build/
33
src/config/
4+
.idea/

package.json

+5
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,13 @@
3535
"babel-preset-stage-0": "^6.5.0",
3636
"del": "^2.2.1",
3737
"eslint": "^3.2.2",
38+
"eslint-config-airbnb": "^10.0.0",
39+
"eslint-plugin-import": "^1.12.0",
40+
"eslint-plugin-jsx-a11y": "^2.0.1",
41+
"eslint-plugin-react": "^6.0.0",
3842
"gaze": "^1.1.0",
3943
"json-loader": "^0.5.4",
44+
"lodash.merge": "^4.5.1",
4045
"mkdirp": "^0.5.1",
4146
"ncp": "^2.0.0",
4247
"path": "^0.12.7",

src/server.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { Schema } from './schema';
21
import graphqlHTTP from 'express-graphql';
32
import express from 'express';
43
import 'babel-polyfill';
54
import path from 'path';
65
import mongoose from 'mongoose';
6+
import { Schema } from './schema';
77

88

99
const config = require('./config/main.json');
@@ -22,5 +22,5 @@ server.use('/graphql', graphqlHTTP(request => ({
2222
})));
2323

2424
server.listen(server.get('port'), () => {
25-
console.log('The server is running at http://localhost:' + server.get('port'));
25+
console.log('The server is running at http://localhost: %s', server.get('port'));
2626
});

0 commit comments

Comments
 (0)