File tree 4 files changed +10
-29
lines changed
4 files changed +10
-29
lines changed Original file line number Diff line number Diff line change 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
-
26
1
{
27
2
"extends": "eslint-config-airbnb",
28
3
"env": {
47
22
"no-multi-spaces": 0
48
23
},
49
24
"plugins": [
50
- "react", " import"
25
+ "import"
51
26
],
52
27
"settings": {
53
28
"import/parser": "babel-eslint",
54
29
"import/resolve": {
55
- moduleDirectory: ["node_modules", "src"]
30
+ " moduleDirectory" : ["node_modules", "src"]
56
31
}
57
32
},
58
33
"globals": {
Original file line number Diff line number Diff line change 1
1
node_modules /
2
2
build /
3
3
src /config /
4
+ .idea /
Original file line number Diff line number Diff line change 35
35
"babel-preset-stage-0" : " ^6.5.0" ,
36
36
"del" : " ^2.2.1" ,
37
37
"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" ,
38
42
"gaze" : " ^1.1.0" ,
39
43
"json-loader" : " ^0.5.4" ,
44
+ "lodash.merge" : " ^4.5.1" ,
40
45
"mkdirp" : " ^0.5.1" ,
41
46
"ncp" : " ^2.0.0" ,
42
47
"path" : " ^0.12.7" ,
Original file line number Diff line number Diff line change 1
- import { Schema } from './schema' ;
2
1
import graphqlHTTP from 'express-graphql' ;
3
2
import express from 'express' ;
4
3
import 'babel-polyfill' ;
5
4
import path from 'path' ;
6
5
import mongoose from 'mongoose' ;
6
+ import { Schema } from './schema' ;
7
7
8
8
9
9
const config = require ( './config/main.json' ) ;
@@ -22,5 +22,5 @@ server.use('/graphql', graphqlHTTP(request => ({
22
22
} ) ) ) ;
23
23
24
24
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' ) ) ;
26
26
} ) ;
You can’t perform that action at this time.
0 commit comments