Skip to content
This repository was archived by the owner on Feb 15, 2023. It is now read-only.

Commit f798aff

Browse files
committed
Styled with Prettier
1 parent 27fa70c commit f798aff

21 files changed

+1049
-1033
lines changed

.eslintrc.json

Lines changed: 23 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,25 @@
11
{
2-
"plugins": [
3-
],
4-
"extends": [
5-
"eslint:recommended"
6-
],
7-
"rules": {
8-
"no-console": 0,
9-
"no-mixed-spaces-and-tabs": 1,
10-
"comma-dangle": 0,
11-
"no-unused-vars": 1,
12-
"linebreak-style": [
13-
2,
14-
"unix"
15-
],
16-
"semi": [
17-
1,
18-
"always"
19-
]
20-
},
21-
"env": {
22-
"es6": false,
23-
"browser": true,
24-
"commonjs": true,
25-
"mocha": true
26-
},
27-
"globals": {
28-
"process": true
29-
},
30-
"ecmaFeatures" : {
31-
"modules": true
32-
},
33-
"parserOptions": {
34-
}
2+
"plugins": [],
3+
"extends": ["eslint:recommended"],
4+
"rules": {
5+
"no-console": 0,
6+
"no-mixed-spaces-and-tabs": 1,
7+
"comma-dangle": 0,
8+
"no-unused-vars": 1,
9+
"linebreak-style": [2, "unix"],
10+
"semi": [1, "always"]
11+
},
12+
"env": {
13+
"es6": false,
14+
"browser": true,
15+
"commonjs": true,
16+
"mocha": true
17+
},
18+
"globals": {
19+
"process": true
20+
},
21+
"ecmaFeatures": {
22+
"modules": true
23+
},
24+
"parserOptions": {}
3525
}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ node_modules
2828
.lock-wscript
2929

3030
# DS_Store
31-
.DS_Store
31+
.DS_Store

CONTRIBUTORS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ Stream-Example-Nodejs
77

88
* **[Thierry Schellenbach](https://github.com/tschellenbach)**
99

10-
* **[Matthisk Heimensen](https://github.com/matthisk)**
10+
* **[Matthisk Heimensen](https://github.com/matthisk)**
11+
12+
* **[Nick Parsons](https://github.com/nparsons08)**

bin/coveralls.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
set -e
33
istanbul cover ./bin/run-tests.js --report lcov
44
cat ./coverage/lcov.info | ./node_modules/.bin/coveralls
5-
rm -rf ./coverage
5+
rm -rf ./coverage

bin/run-tests.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
var Mocha = require('mocha')
2-
, glob = require('glob')
3-
, path = require('path');
1+
var Mocha = require('mocha'),
2+
glob = require('glob'),
3+
path = require('path');
44

55
var mocha = new Mocha({});
66

77
var files = glob.sync('../test/**/*_test.js', { cwd: __dirname });
88

99
files.forEach(function(file) {
10-
file = path.join(__dirname, file);
11-
mocha.addFile(file);
10+
file = path.join(__dirname, file);
11+
mocha.addFile(file);
1212
});
1313

1414
/* istanbul ignore next */
1515
mocha.run(function(failures) {
16-
process.on('exit', function() {
17-
process.exit(failures);
18-
});
16+
process.on('exit', function() {
17+
process.exit(failures);
18+
});
1919

20-
process.exit();
20+
process.exit();
2121
});

bin/travis.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22
set -e
33
npm test
4-
./bin/coveralls.sh
5-
# ./node_modules/.bin/eslint src/**/*.js;
4+
./bin/coveralls.sh
5+
# ./node_modules/.bin/eslint src/**/*.js;

getstream.js

Lines changed: 20 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,43 @@
11
exports.config = {
2-
3-
/**
2+
/**
43
* GetStream.io API key
54
*/
6-
apiKey: "",
7-
5+
apiKey: '',
86

9-
/**
7+
/**
108
* GetStream.io API Secret
119
*/
12-
apiSecret: "",
13-
10+
apiSecret: '',
1411

15-
/**
12+
/**
1613
* GetStream.io API App ID
1714
*/
18-
apiAppId: "",
19-
15+
apiAppId: '',
2016

21-
/**
17+
/**
2218
* GetStream.io API Location
2319
*/
24-
apiLocation: "",
25-
20+
apiLocation: '',
2621

27-
/**
22+
/**
2823
* GetStream.io User Feed slug
2924
*/
30-
userFeed: "user",
31-
25+
userFeed: 'user',
3226

33-
/**
27+
/**
3428
* GetStream.io Notification Feed slug
3529
*/
36-
notificationFeed: "notification",
37-
30+
notificationFeed: 'notification',
3831

39-
newsFeeds: {
40-
41-
/**
32+
newsFeeds: {
33+
/**
4234
* GetStream.io Flat Feed slug
4335
*/
44-
flat: "flat",
45-
46-
/**
36+
flat: 'flat',
37+
38+
/**
4739
* GetStream.io Aggregated Feed slug
4840
*/
49-
aggregated: "aggregated"
50-
}
51-
52-
53-
}
41+
aggregated: 'aggregated',
42+
},
43+
};

0 commit comments

Comments
 (0)