Skip to content

Commit eff4a31

Browse files
committed
chore(parser): enable oxlint
1 parent 2739a03 commit eff4a31

File tree

5 files changed

+4
-1
lines changed

5 files changed

+4
-1
lines changed

napi/parser/src-js/raw-transfer/node-array.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ export class NodeArray extends Array {
149149
}
150150
}
151151

152+
// oxlint-disable-next-line typescript/unbound-method
152153
NodeArray.prototype[Symbol.iterator] = NodeArray.prototype.values;
153154

154155
/**

napi/parser/src-js/visit/visitor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ function createMerger(fnCount) {
368368
}
369369
body += '}';
370370
args.push(body);
371+
// oxlint-disable-next-line typescript/no-implied-eval
371372
return new Function(...args);
372373
}
373374

napi/parser/test/typescript-make-units-from-test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ function getErrorFiles(filePath, options) {
126126
* @param {string} code - Content of the test file
127127
* @returns {Object} TestCaseContent object
128128
*/
129+
// oxlint-disable-next-line jest/no-export
129130
export function makeUnitsFromTest(filePath, code) {
130131
const currentFileOptions = new Map();
131132
let currentFileName = null;

napi/parser/test/visit.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { describe, expect, it } from 'vitest';
33
import { parseSync, Visitor, visitorKeys, type VisitorObject } from '../src-js/index.js';
44

55
describe('visit', () => {
6+
// eslint-disable-next-line vitest/expect-expect
67
it('empty visitor', () => {
78
const code = 'const x = { y: 123 }';
89
const { program } = parseSync('test.js', code);

oxlintrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"tasks/coverage/**",
4444
"crates/oxc_semantic/tests/**",
4545
"napi/minify/**", // TODO
46-
"napi/parser/**", // TODO
4746
"napi/transform/**", // TODO
4847
"apps/oxlint" // TODO
4948
]

0 commit comments

Comments
 (0)