Skip to content

Commit 2a33834

Browse files
committed
chore eslint-disable => oxlint-disable
1 parent 723fb31 commit 2a33834

18 files changed

Lines changed: 33 additions & 33 deletions

File tree

packages/codegen/bin/cmk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env node
2-
/* eslint-disable n/no-process-exit */
2+
/* oxlint-disable n/no-process-exit */
33

44
import {
55
createLogger,

packages/codegen/src/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ Options:
1818
`;
1919

2020
export function printHelpText(): void {
21-
// eslint-disable-next-line no-console
21+
// oxlint-disable-next-line no-console
2222
console.log(helpText);
2323
}
2424

2525
export function printVersion(): void {
26-
// eslint-disable-next-line no-console
26+
// oxlint-disable-next-line no-console
2727
console.log(packageJson.version);
2828
}
2929

packages/codegen/src/runner.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { createIFF } from './test/fixture.js';
1111
import { createLoggerSpy } from './test/logger.js';
1212

1313
async function sleep(ms: number): Promise<void> {
14-
// eslint-disable-next-line no-promise-executor-return
14+
// oxlint-disable-next-line no-promise-executor-return
1515
return new Promise((resolve) => setTimeout(resolve, ms));
1616
}
1717

@@ -115,7 +115,7 @@ describe('runCMKInWatchMode', () => {
115115
afterEach(async () => {
116116
if (watcher) {
117117
await watcher.close();
118-
// eslint-disable-next-line require-atomic-updates
118+
// oxlint-disable-next-line require-atomic-updates
119119
watcher = null;
120120
}
121121
});
@@ -311,7 +311,7 @@ describe('runCMKInWatchMode', () => {
311311
await watcher.close();
312312

313313
const loggerSpy2 = createLoggerSpy();
314-
// eslint-disable-next-line require-atomic-updates
314+
// oxlint-disable-next-line require-atomic-updates
315315
watcher = await runCMKInWatchMode(fakeParsedArgs({ project: iff.rootDir, preserveWatchOutput: true }), loggerSpy2);
316316
expect(loggerSpy2.clearScreen).toHaveBeenCalledTimes(0);
317317
});

packages/core/src/dts-generator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ function generateNamedExportsDts(
225225
*/
226226

227227
text += `export {\n`;
228-
// eslint-disable-next-line no-loop-func
228+
// oxlint-disable-next-line no-loop-func
229229
tokenImporter.values.forEach((value) => {
230230
const localName = value.localName ?? value.name;
231231
const localLoc = value.localLoc ?? value.loc;
@@ -414,7 +414,7 @@ function generateDefaultExportDts(
414414
* NOTE: Not only the specifier but also the surrounding quotes are included in the mapping.
415415
*/
416416

417-
// eslint-disable-next-line no-loop-func
417+
// oxlint-disable-next-line no-loop-func
418418
tokenImporter.values.forEach((value, i) => {
419419
const localName = value.localName ?? value.name;
420420
const localLoc = value.localLoc ?? value.loc;

packages/core/src/file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export async function findComponentFile(
2727
for (const path of COMPONENT_EXTENSIONS.map((ext) => pathWithoutExtension + ext)) {
2828
try {
2929
// TODO: Cache the result of readFile
30-
// eslint-disable-next-line no-await-in-loop
30+
// oxlint-disable-next-line no-await-in-loop
3131
const text = await readFile(path);
3232
return { fileName: path, text };
3333
} catch {

packages/core/src/path.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// eslint-disable-next-line no-restricted-imports
1+
// oxlint-disable-next-line no-restricted-imports
22
import type { ParsedPath } from 'node:path';
3-
// eslint-disable-next-line no-restricted-imports
3+
// oxlint-disable-next-line no-restricted-imports
44
import nodePath from 'node:path';
55
import ts from 'typescript';
66

packages/ts-plugin/e2e-test/feature/completion.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { describe, expect, test } from 'vitest';
44
import { createIFF } from '../test-util/fixture.js';
55
import { formatPath, launchTsserver, normalizeCompletionEntry } from '../test-util/tsserver.js';
66

7-
// eslint-disable-next-line n/no-extraneous-require
7+
// oxlint-disable-next-line n/no-extraneous-require
88
const reactDtsPath = join(require.resolve('@types/react/package.json'), '../index.d.ts');
99

1010
describe('Completion', async () => {

packages/ts-plugin/e2e-test/feature/find-all-references.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable @typescript-eslint/naming-convention */
1+
/* oxlint-disable @typescript-eslint/naming-convention */
22
import dedent from 'dedent';
33
import { describe, expect, test } from 'vitest';
44
import { createIFF } from '../test-util/fixture.js';

packages/ts-plugin/e2e-test/named-exports.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable @typescript-eslint/naming-convention */
1+
/* oxlint-disable @typescript-eslint/naming-convention */
22
import dedent from 'dedent';
33
import ts from 'typescript';
44
import { describe, expect, test } from 'vitest';

packages/ts-plugin/e2e-test/test-util/tsserver.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function launchTsserver(): Tsserver {
5050
async function sendRequest(
5151
command: string,
5252
args?: unknown,
53-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
53+
// oxlint-disable-next-line @typescript-eslint/no-explicit-any
5454
): Promise<any> {
5555
const res: server.protocol.Response = await server.message({
5656
seq: seq++,
@@ -216,13 +216,13 @@ export function normalizeCompletionDetails(
216216
entries: readonly SimplifiedCompletionDetails[],
217217
): SimplifiedCompletionDetails[] {
218218
return entries.map((entry) => {
219-
return (entry.codeActions
220-
? {
221-
codeActions: entry.codeActions.map((action) => {
222-
return { changes: action.changes };
223-
}),
224-
}
225-
: {});
219+
return entry.codeActions
220+
? {
221+
codeActions: entry.codeActions.map((action) => {
222+
return { changes: action.changes };
223+
}),
224+
}
225+
: {};
226226
});
227227
}
228228

0 commit comments

Comments
 (0)