Skip to content

Commit 523257c

Browse files
committed
chore: fix newly identified "fixable" eslint issues
1 parent 7760224 commit 523257c

File tree

15 files changed

+12
-22
lines changed

15 files changed

+12
-22
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env tsx
2-
/* eslint-disable max-len */
2+
33
import path from 'path';
44
import yargs from 'yargs';
55
import { hideBin } from 'yargs/helpers';

packages/git-proxy-cli/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ yargs(hideBin(process.argv)) // eslint-disable-line @typescript-eslint/no-unused
460460
default: null,
461461
},
462462
authorised: {
463-
describe: `Filter for the "authorised" flag of the git push on the list`, // eslint-disable-line max-len
463+
describe: `Filter for the "authorised" flag of the git push on the list`,
464464
demandOption: false,
465465
type: 'boolean',
466466
default: null,

packages/git-proxy-cli/test/testCli.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable max-len */
21
const helper = require('./testCliUtils');
32

43
const path = require('path');

packages/git-proxy-cli/test/testCliUtils.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ async function closeServer(server, waitTime = 0) {
127127
async function createCookiesFileWithExpiredCookie() {
128128
await removeCookiesFile();
129129
const cookies = [
130-
// eslint-disable-next-line max-len
131130
'connect.sid=s%3AuWjJK_VGFbX9-03UfvoSt_HFU3a0vFOd.jd986YQ17Bw4j1xGJn2l9yiF3QPYhayaYcDqGsNgQY4; Path=/; HttpOnly',
132131
];
133132
fs.writeFileSync(GIT_PROXY_COOKIE_FILE, JSON.stringify(cookies), 'utf8');

scripts/doc-schema.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable max-len */
21
const { execFileSync } = require('child_process');
32
const { writeFileSync, readFileSync, mkdtempSync } = require('fs');
43
const { tmpdir } = require('os');

scripts/prepare.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const FILE_HUSKY = './.husky/_/husky.sh';
1616
// Commands.
1717
// =========
1818

19-
// eslint-disable-next-line quotes
2019
const COMMIT_MSG_STRING = "'npx --no -- commitlint --edit $'{1}''";
2120
const CLI_COMMIT = `npx husky add .husky/commit-msg ${COMMIT_MSG_STRING}`;
2221
const CLI_HUSKY = 'npx husky install';

src/proxy/routes/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ const teeAndValidate = async (req: Request, res: Response, next: NextFunction) =
190190
};
191191

192192
const getRouter = async () => {
193-
// eslint-disable-next-line new-cap
194193
const router = Router();
195194
router.use(teeAndValidate);
196195

src/ui/assets/jss/material-dashboard-react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ const title = {
219219
marginTop: '30px',
220220
marginBottom: '25px',
221221
minHeight: '32px',
222-
// eslint-disable-next-line quotes
222+
223223
fontFamily: "'Roboto', 'Helvetica', 'Arial', sans-serif",
224224
'& small': {
225225
color: grayColor[1],

test/ConfigLoader.test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ describe('ConfigLoader', () => {
329329
});
330330

331331
it('should load configuration from git repository', async function () {
332-
// eslint-disable-next-line no-invalid-this
333332
this.timeout(10000);
334333

335334
const source = {
@@ -380,7 +379,6 @@ describe('ConfigLoader', () => {
380379
});
381380

382381
it('should load configuration from http', async function () {
383-
// eslint-disable-next-line no-invalid-this
384382
this.timeout(10000);
385383

386384
const source = {

test/chain.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ const mockPreProcessors = {
5858
parseAction: sinon.stub(),
5959
};
6060

61-
// eslint-disable-next-line no-unused-vars
6261
let mockPushProcessors;
6362

6463
const clearCache = (sandbox) => {

0 commit comments

Comments
 (0)