Ignore linting healthcheck & exclue in rate-limiting

This commit is contained in:
Reginald Bondoc
2022-12-12 19:11:44 +01:00
parent 1ea75eb840
commit bcd18ab0af
5 changed files with 29 additions and 26 deletions

View File

@@ -1,6 +1,3 @@
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable no-console */
/* eslint-disable no-undef */
const http = require('http');
const options = {
host: 'localhost',
@@ -19,7 +16,7 @@ const healthCheck = http.request(options, (res) => {
});
healthCheck.on('error', function (err) {
console.error(err);
console.error(`HEALTH CHECK ERROR: ${err}`);
process.exit(1);
});