Skip to content

Commit 87b5650

Browse files
committed
global eslint fixes
1 parent 2d8d566 commit 87b5650

Some content is hidden

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

44 files changed

+0
-55
lines changed

app.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const cors = require('koa2-cors');
32
const helmet = require('koa-helmet');
43
const Koa = require('koa');

jobs/capsules.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const got = require('got');
32
const { logger } = require('../middleware/logger');
43

jobs/cores.js

-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const got = require('got');
32
const cheerio = require('cheerio');
43
const { logger } = require('../middleware/logger');
@@ -27,7 +26,6 @@ module.exports = async () => {
2726
const result = await got(REDDIT_CORES);
2827
const $ = cheerio.load(result.body);
2928

30-
3129
const active = $('body > div.content > div > div > table:nth-child(14) > tbody').text();
3230
const activeRow = active.split('\n').filter((v) => v !== '');
3331
const activeCores = activeRow.filter((value, index) => index % 7 === 0);
@@ -49,7 +47,6 @@ module.exports = async () => {
4947
await Promise.all(activeUpdates);
5048
logger.info('Active cores updated');
5149

52-
5350
const unknown = $('div.md:nth-child(2) > table:nth-child(17) > tbody:nth-child(2)').text();
5451
const unknownRow = unknown.split('\n').filter((v) => v !== '');
5552
const unknownCores = unknownRow.filter((value, index) => index % 6 === 0);
@@ -71,7 +68,6 @@ module.exports = async () => {
7168
await Promise.all(unknownUpdates);
7269
logger.info('Unknown cores updated');
7370

74-
7571
const inactive = $('div.md:nth-child(2) > table:nth-child(20) > tbody:nth-child(2)').text();
7672
const inactiveRow = inactive.split('\n').filter((v) => v !== '');
7773
const inactiveCores = inactiveRow.filter((value, index) => index % 6 === 0);
@@ -93,7 +89,6 @@ module.exports = async () => {
9389
await Promise.all(inactiveUpdates);
9490
logger.info('Inactive cores updated');
9591

96-
9792
const lost = $('div.md:nth-child(2) > table:nth-child(24) > tbody:nth-child(2)').text();
9893
const lostRow = lost.split('\n').filter((v) => v !== '');
9994
const lostCores = lostRow.filter((value, index) => index % 7 === 0);

jobs/landpads.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const got = require('got');
32
const { logger } = require('../middleware/logger');
43

jobs/launches.js

-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const _ = require('lodash');
32
const got = require('got');
43
const { logger } = require('../middleware/logger');
@@ -39,7 +38,6 @@ module.exports = async () => {
3938
ship: false,
4039
};
4140

42-
4341
// Update capsule launches
4442
const capsules = await got.post(`${SPACEX_API}/capsules/query`, {
4543
json: {
@@ -71,7 +69,6 @@ module.exports = async () => {
7169
});
7270
await Promise.all(capsuleLaunches);
7371

74-
7572
// Update core launches
7673
const cores = await got.post(`${SPACEX_API}/cores/query`, {
7774
json: {
@@ -103,7 +100,6 @@ module.exports = async () => {
103100
});
104101
await Promise.all(coreLaunches);
105102

106-
107103
// Update crew launches
108104
const crewMembers = await got.post(`${SPACEX_API}/crew/query`, {
109105
json: {
@@ -135,7 +131,6 @@ module.exports = async () => {
135131
});
136132
await Promise.all(crewLaunches);
137133

138-
139134
// Update landpad launches
140135
const landpads = await got.post(`${SPACEX_API}/landpads/query`, {
141136
json: {
@@ -167,7 +162,6 @@ module.exports = async () => {
167162
});
168163
await Promise.all(landpadLaunches);
169164

170-
171165
// Update launchpad launches
172166
const launchpads = await got.post(`${SPACEX_API}/launchpads/query`, {
173167
json: {
@@ -199,7 +193,6 @@ module.exports = async () => {
199193
});
200194
await Promise.all(launchpadLaunches);
201195

202-
203196
// Update payload launches
204197
const payloads = await got.post(`${SPACEX_API}/payloads/query`, {
205198
json: {
@@ -227,7 +220,6 @@ module.exports = async () => {
227220
});
228221
await Promise.all(payloadLaunches);
229222

230-
231223
// Update ship launches
232224
const ships = await got.post(`${SPACEX_API}/ships/query`, {
233225
json: {

jobs/launchpads.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const got = require('got');
32
const { logger } = require('../middleware/logger');
43

jobs/payloads.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const got = require('got');
32
const { CookieJar } = require('tough-cookie');
43
const { logger } = require('../middleware/logger');

jobs/roadster.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const got = require('got');
32
const moment = require('moment-timezone');
43
const shell = require('shelljs');

jobs/webcast.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const got = require('got');
32
const cheerio = require('cheerio');
43
const fuzz = require('fuzzball');

jobs/worker.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const { CronJob } = require('cron');
32
// const webcast = require('./webcast');
43
const launches = require('./launches');

middleware/auth.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const mongoose = require('mongoose');
32

43
const db = mongoose.connection.useDb('auth');

middleware/authz/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const { newEnforcer } = require('casbin');
32

43
/**

middleware/cache.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const Redis = require('ioredis');
32
const crypto = require('crypto');
43
const { logger } = require('./logger');

middleware/logger.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const koaPino = require('koa-pino-logger');
32
const pino = require('pino');
43

server.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const http = require('http');
32
const mongoose = require('mongoose');
43
const { logger } = require('./middleware/logger');

services/v4/admin/routes.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const Router = require('koa-router');
32
const { auth, authz, cache } = require('../../../middleware');
43

services/v4/capsules/model.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const mongoose = require('mongoose');
32
const mongoosePaginate = require('mongoose-paginate-v2');
43
const idPlugin = require('mongoose-id');

services/v4/capsules/routes.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const Router = require('koa-router');
32
const Capsule = require('./model');
43
const { auth, authz } = require('../../../middleware');

services/v4/company/model.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const mongoose = require('mongoose');
32
const idPlugin = require('mongoose-id');
43

services/v4/company/routes.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const Router = require('koa-router');
32
const Company = require('./model');
43
const { auth, authz } = require('../../../middleware');

services/v4/cores/model.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const mongoose = require('mongoose');
32
const mongoosePaginate = require('mongoose-paginate-v2');
43
const idPlugin = require('mongoose-id');

services/v4/cores/routes.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const Router = require('koa-router');
32
const Core = require('./model');
43
const { auth, authz } = require('../../../middleware');

services/v4/crew/model.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const mongoose = require('mongoose');
32
const mongoosePaginate = require('mongoose-paginate-v2');
43
const idPlugin = require('mongoose-id');

services/v4/crew/routes.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const Router = require('koa-router');
32
const Crew = require('./model');
43
const { auth, authz } = require('../../../middleware');

services/v4/dragons/model.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const mongoose = require('mongoose');
32
const mongoosePaginate = require('mongoose-paginate-v2');
43
const idPlugin = require('mongoose-id');

services/v4/dragons/routes.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const Router = require('koa-router');
32
const Dragon = require('./model');
43
const { auth, authz } = require('../../../middleware');

services/v4/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const Router = require('koa-router');
32
const admin = require('./admin/routes');
43
const capsules = require('./capsules/routes');

services/v4/landpads/model.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const mongoose = require('mongoose');
32
const mongoosePaginate = require('mongoose-paginate-v2');
43
const idPlugin = require('mongoose-id');

services/v4/landpads/routes.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const Router = require('koa-router');
32
const Landpad = require('./model');
43
const { auth, authz } = require('../../../middleware');

services/v4/launches/model.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const mongoose = require('mongoose');
32
const mongoosePaginate = require('mongoose-paginate-v2');
43
const idPlugin = require('mongoose-id');

services/v4/launches/routes.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const Router = require('koa-router');
32
const Launch = require('./model');
43
const { auth, authz } = require('../../../middleware');

services/v4/launchpads/model.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const mongoose = require('mongoose');
32
const mongoosePaginate = require('mongoose-paginate-v2');
43
const idPlugin = require('mongoose-id');

services/v4/launchpads/routes.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const Router = require('koa-router');
32
const Launchpad = require('./model');
43
const { auth, authz } = require('../../../middleware');

services/v4/payloads/model.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const mongoose = require('mongoose');
32
const mongoosePaginate = require('mongoose-paginate-v2');
43
const idPlugin = require('mongoose-id');

services/v4/payloads/routes.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const Router = require('koa-router');
32
const Payload = require('./model');
43
const { auth, authz } = require('../../../middleware');

services/v4/roadster/model.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const mongoose = require('mongoose');
32
const idPlugin = require('mongoose-id');
43

services/v4/roadster/routes.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const Router = require('koa-router');
32
const Roadster = require('./model');
43
const { auth, authz } = require('../../../middleware');

services/v4/rockets/model.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const mongoose = require('mongoose');
32
const mongoosePaginate = require('mongoose-paginate-v2');
43
const idPlugin = require('mongoose-id');

services/v4/rockets/routes.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const Router = require('koa-router');
32
const Rocket = require('./model');
43
const { auth, authz } = require('../../../middleware');

services/v4/ships/model.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const mongoose = require('mongoose');
32
const mongoosePaginate = require('mongoose-paginate-v2');
43
const idPlugin = require('mongoose-id');

services/v4/ships/routes.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const Router = require('koa-router');
32
const Ship = require('./model');
43
const { auth, authz } = require('../../../middleware');

services/v4/users/model.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const mongoose = require('mongoose');
32
const mongoosePaginate = require('mongoose-paginate-v2');
43
const idPlugin = require('mongoose-id');

services/v4/users/routes.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const Router = require('koa-router');
32
const User = require('./model');
43
const { auth, authz } = require('../../../middleware');

tests/index.test.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
it('should expect true to be true', () => {
32
expect(true).toBe(true);
43
});

0 commit comments

Comments
 (0)