Skip to content

Commit 6364a58

Browse files
committed
chore: remove unused eslint-disable directives
1 parent 3ba8f22 commit 6364a58

11 files changed

Lines changed: 13 additions & 20 deletions

File tree

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');

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
@@ -59,7 +59,6 @@ const mockPreProcessors = {
5959
parseAction: sinon.stub(),
6060
};
6161

62-
// eslint-disable-next-line no-unused-vars
6362
let mockPushProcessors;
6463

6564
const clearCache = (sandbox) => {

test/integration/forcePush.integration.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('Force Push Integration Test', () => {
1515
let rebasedCommitSHA;
1616

1717
before(async function () {
18-
this.timeout(10000); // eslint-disable-line no-invalid-this
18+
this.timeout(10000);
1919

2020
tempDir = path.join(__dirname, '../temp-integration-repo');
2121
await fs.mkdir(tempDir, { recursive: true });
@@ -58,7 +58,7 @@ describe('Force Push Integration Test', () => {
5858

5959
describe('Complete force push pipeline', () => {
6060
it('should handle valid diff after rebase scenario', async function () {
61-
this.timeout(5000); // eslint-disable-line no-invalid-this
61+
this.timeout(5000);
6262

6363
// Create action simulating force push with valid SHAs that have actual changes
6464
const action = new Action(
@@ -101,7 +101,7 @@ describe('Force Push Integration Test', () => {
101101
});
102102

103103
it('should handle unreachable commit SHA error', async function () {
104-
this.timeout(5000); // eslint-disable-line no-invalid-this
104+
this.timeout(5000);
105105

106106
// Invalid SHA to trigger error
107107
const action = new Action(

test/plugin/plugin.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const expect = chai.expect;
1616
const testPackagePath = join(__dirname, '../fixtures', 'test-package');
1717

1818
describe('loading plugins from packages', function () {
19-
// eslint-disable-next-line no-invalid-this
2019
this.timeout(10000);
2120

2221
before(function () {

test/testDb.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ describe('Database clients', async () => {
454454
console.log('TEST USER:', JSON.stringify(TEST_USER, null, 2));
455455
console.log('USERS:', JSON.stringify(users, null, 2));
456456
// remove password as it will have been hashed
457-
// eslint-disable-next-line no-unused-vars
457+
458458
const { password: _, ...TEST_USER_CLEAN } = TEST_USER;
459459
const cleanUsers = cleanResponseData(TEST_USER_CLEAN, users);
460460
expect(cleanUsers).to.deep.include(TEST_USER_CLEAN);
@@ -500,9 +500,9 @@ describe('Database clients', async () => {
500500

501501
it('should be able to find a user', async function () {
502502
const user = await db.findUser(TEST_USER.username);
503-
// eslint-disable-next-line no-unused-vars
503+
504504
const { password: _, ...TEST_USER_CLEAN } = TEST_USER;
505-
// eslint-disable-next-line no-unused-vars
505+
506506
const { password: _2, _id: _3, ...DB_USER_CLEAN } = user;
507507

508508
expect(DB_USER_CLEAN).to.eql(TEST_USER_CLEAN);
@@ -511,7 +511,7 @@ describe('Database clients', async () => {
511511
it('should be able to filter getUsers', async function () {
512512
// uppercase the filter value to confirm db client is lowercasing inputs
513513
const users = await db.getUsers({ username: TEST_USER.username.toUpperCase() });
514-
// eslint-disable-next-line no-unused-vars
514+
515515
const { password: _, ...TEST_USER_CLEAN } = TEST_USER;
516516
const cleanUsers = cleanResponseData(TEST_USER_CLEAN, users);
517517
expect(cleanUsers[0]).to.eql(TEST_USER_CLEAN);
@@ -564,7 +564,7 @@ describe('Database clients', async () => {
564564

565565
const users = await db.getUsers();
566566
// remove password as it will have been hashed
567-
// eslint-disable-next-line no-unused-vars
567+
568568
const { password: _, ...TEST_USER_CLEAN } = TEST_USER;
569569
const cleanUsers = cleanResponseData(TEST_USER_CLEAN, users);
570570
expect(cleanUsers).to.deep.include(TEST_USER_CLEAN);

test/testParsePush.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ describe('parsePackFile', () => {
129129
user: null,
130130
steps: [],
131131
addStep: sandbox.spy(function (step) {
132-
this.steps.push(step); // eslint-disable-line no-invalid-this
132+
this.steps.push(step);
133133
}),
134134
setCommit: sandbox.spy(function (from, to) {
135-
this.commitFrom = from; // eslint-disable-line no-invalid-this
136-
this.commitTo = to; // eslint-disable-line no-invalid-this
135+
this.commitFrom = from;
136+
this.commitTo = to;
137137
}),
138138
};
139139

test/testPush.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ describe('auth', async () => {
136136
await loginAsApprover();
137137

138138
const commitId =
139-
'0000000000000000000000000000000000000000__79b4d8953cbc324bcc1eb53d6412ff89666c241f'; // eslint-disable-line max-len
139+
'0000000000000000000000000000000000000000__79b4d8953cbc324bcc1eb53d6412ff89666c241f';
140140
const res = await chai
141141
.request(app)
142142
.get(`/api/v1/push/${commitId}`)

0 commit comments

Comments
 (0)