Skip to content

Commit cfe7092

Browse files
committed
refactor(oxlint2): move src files to ts
1 parent 66200d5 commit cfe7092

File tree

3 files changed

+2
-0
lines changed

3 files changed

+2
-0
lines changed

napi/oxlint2/src-js/index.js renamed to napi/oxlint2/src-js/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ function lintFile([filePath, bufferId, buffer, ruleIds]) {
225225
// --------------------
226226

227227
// Call Rust, passing `loadPlugin` and `lintFile` as callbacks
228+
// @ts-expect-error
228229
const success = await lint(loadPlugin, lintFile);
229230

230231
// Note: It's recommended to set `process.exitCode` instead of calling `process.exit()`.
File renamed without changes.

napi/oxlint2/src-js/visitor.js renamed to napi/oxlint2/src-js/visitor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ function mergeVisitFns(visitFns) {
332332
mergers.push(merger);
333333
} else {
334334
merger = mergers[numVisitFns];
335+
// @ts-expect-error
335336
if (merger === null) merger = mergers[numVisitFns] = createMerger(numVisitFns);
336337
}
337338

0 commit comments

Comments
 (0)