Skip to content

Commit 3f551af

Browse files
committed
added cf-resource.json, package-lock.json files
1 parent 44028ba commit 3f551af

12 files changed

+4043
-44
lines changed

.eslintrc.json

+24-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
11
{
2-
"extends": "airbnb-base"
3-
}
2+
"extends": "airbnb-base",
3+
"env": {
4+
"node": true
5+
},
6+
"plugins": [
7+
"import"
8+
],
9+
"parser": "babel-eslint",
10+
"rules": {
11+
"indent": [
12+
2,
13+
"tab"
14+
],
15+
"no-tabs": 0,
16+
"semi": [
17+
0,
18+
"never"
19+
],
20+
"func-names": [
21+
0,
22+
"never"
23+
]
24+
}
25+
}

.npmignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ node_modules
33
jspm_packages
44

55
# Serverless directories
6-
.serverless
6+
.serverless

aws/redis.js

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
const redis = require('redis')
2-
const bluebird = require('bluebird')
3-
const currentRedisEndpoint = 'redis://localhost:6379'
1+
const redis = require('redis');
2+
const bluebird = require('bluebird');
3+
const currentRedisEndpoint = 'redis://localhost:6379';
44

5-
bluebird.promisifyAll(redis.RedisClient.prototype)
6-
bluebird.promisifyAll(redis.Multi.prototype)
5+
bluebird.promisifyAll(redis.RedisClient.prototype);
6+
bluebird.promisifyAll(redis.Multi.prototype);
77

8-
const createRedisClient = endpoint => {
9-
const clientObj = redis.createClient(false, endpoint, {
10-
no_ready_check: true
11-
})
8+
const createRedisClient = (endpoint) => {
9+
const clientObj = redis.createClient(false, endpoint, {
10+
no_ready_check: true,
11+
});
1212

13-
clientObj.on("error", (err) => {
14-
console.log(`Error while creating redis client: ${err}`);
15-
})
13+
clientObj.on('error', (err) => {
14+
console.log(`Error while creating redis client: ${err}`);
15+
});
1616

17-
return clientObj
18-
}
17+
return clientObj;
18+
};
1919

20-
const client = createRedisClient(currentRedisEndpoint)
20+
const client = createRedisClient(currentRedisEndpoint);
2121

2222

2323
module.exports = {
24-
client
25-
}
24+
client,
25+
};

0 commit comments

Comments
 (0)