Skip to content

Commit d401281

Browse files
authored
Merge pull request #97 from FieldDB/fix/lint
fix lint
2 parents c53958e + 5420942 commit d401281

46 files changed

Lines changed: 871 additions & 576 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
node-version: ${{ matrix.node-version }}
2828
cache: 'npm'
2929
- run: npm ci
30-
- run: npm run lint:ci || echo "Lint failed"
30+
- run: npm run lint:ci
3131
- run: DEBUG=replay* npm run coverage
3232

3333
- name: Coveralls

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ audio_stimuli
2323
proguard.cfg
2424

2525
node_modules
26-
bin
2726
gen
2827

2928
# Node #

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ ENV NODE_ENV=beta
1414

1515
EXPOSE 3183
1616

17-
CMD [ "node", "bin/www" ]
17+
CMD [ "node", "bin/www.js" ]
Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,33 @@
11
#!/usr/bin/env node
2-
var config = require('config');
3-
var https = require('https');
4-
var url = require('url');
2+
const config = require('config');
3+
const https = require('https');
4+
5+
let server;
6+
const service = require('../auth_service');
57

6-
var server;
7-
var service = require('../auth_service');
88
service.set('port', config.httpsOptions.port);
99

10-
var whenReady = new Promise(function(resolve) {
10+
const whenReady = new Promise((resolve) => {
1111
if (process.env.NODE_ENV === 'production') {
12-
server = service.listen(config.httpsOptions.port, function() {
12+
server = service.listen(config.httpsOptions.port, () => {
13+
// eslint-disable-next-line no-console
1314
console.log('Running in production mode behind an Nginx proxy, Listening on http port %d', server.address().port);
1415
resolve(server);
1516
});
1617
} else {
1718
/**
1819
* Ask https to turn on the service
1920
*/
20-
server = https.createServer(config.httpsOptions, service).listen(service.get('port'), function() {
21-
console.log('HTTPS Express server listening on https://localhost:' + server.address().port);
21+
server = https.createServer(config.httpsOptions, service).listen(service.get('port'), () => {
22+
// eslint-disable-next-line no-console
23+
console.log(`HTTPS Express server listening on https://localhost:${server.address().port}`);
2224
resolve(server);
2325
});
2426
}
2527
});
2628

2729
module.exports = {
2830
ready: whenReady,
29-
server: server,
30-
service: service,
31+
server,
32+
service,
3133
};

config/default.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,17 @@ module.exports = {
6969
from: 'none@localhost', // sender address
7070
to: '', // list of receivers
7171
subject: 'Welcome to localhost!', // Subject line
72-
text: 'Your username is: ', // plaintext // body
73-
html: 'Your username is: ',
72+
text: 'Your username is: insert_username', // plaintext // body
73+
html: 'Your username is: insert_username',
7474
};
7575
},
7676
welcomeToCorpusTeamMailOptions: function welcomeToCorpusTeamMailOptions() {
7777
return {
7878
from: 'none@localhost', // sender address
7979
to: '', // list of receivers
8080
subject: '[LingSync.org] Someone has granted you access to their corpus', // Subject line
81-
text: "The new corpus's identifier is: ", // plaintext // body
82-
html: "The new corpus's identifier is: ",
81+
text: "The new corpus's identifier is: insert_corpus_identifier", // plaintext // body
82+
html: "The new corpus's identifier is: insert_corpus_identifier",
8383
};
8484
},
8585
suspendedUserMailOptions: function suspendedUserMailOptions() {
@@ -96,17 +96,17 @@ module.exports = {
9696
from: 'none@localhost', // sender address
9797
to: '', // list of receivers
9898
subject: 'Welcome to localhost!', // Subject line
99-
text: 'Your username is: ', // plaintext // body
100-
html: 'Your username is: ',
99+
text: 'Your username is: insert_username', // plaintext // body
100+
html: 'Your username is: insert_username',
101101
};
102102
},
103103
welcomeToCorpusTeamMailOptionsPhophlo: function welcomeToCorpusTeamMailOptionsPhophlo() {
104104
return {
105105
from: 'none@localhost', // sender address
106106
to: '', // list of receivers
107107
subject: '[LingSync.org] Someone has granted you access to their corpus', // Subject line
108-
text: "The new corpus's identifier is: ", // plaintext // body
109-
html: "The new corpus's identifier is: ",
108+
text: "The new corpus's identifier is: insert_corpus_identifier", // plaintext // body
109+
html: "The new corpus's identifier is: insert_corpus_identifier",
110110
};
111111
},
112112
suspendedUserMailOptionsPhophlo: function suspendedUserMailOptionsPhophlo() {

0 commit comments

Comments
 (0)