Skip to content

Commit 950a199

Browse files
authored
feat: add linting and formatting ignores for compatibility with OXC (#621)
1 parent 77d3cd1 commit 950a199

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/core/ctx.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ export function createContext(options: Options = {}, root = process.cwd()) {
6767
return `${`
6868
/* eslint-disable */
6969
/* prettier-ignore */
70+
/* oxlint-disable */
71+
/* oxfmt-ignore */
7072
// @ts-nocheck
7173
// noinspection JSUnusedGlobalSymbols
7274
// Generated by unplugin-auto-import

test/__snapshots__/dts.test.ts.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
exports[`dts > normal 1`] = `
44
"/* eslint-disable */
55
/* prettier-ignore */
6+
/* oxlint-disable */
7+
/* oxfmt-ignore */
68
// @ts-nocheck
79
// noinspection JSUnusedGlobalSymbols
810
// Generated by unplugin-auto-import

test/tmp/dts.increase.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/* eslint-disable */
22
/* prettier-ignore */
3+
/* oxlint-disable */
4+
/* oxfmt-ignore */
35
// @ts-nocheck
46
// noinspection JSUnusedGlobalSymbols
57
// Generated by unplugin-auto-import

0 commit comments

Comments
 (0)