Skip to content

Commit 0a32ab9

Browse files
committed
Disable typescript/no-var-requires
1 parent 1e7942d commit 0a32ab9

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/config-base/__snapshots__/index.test.ts.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ exports[`is a valid Oxlint config 1`] = `
338338
"typescript/no-unsafe-type-assertion": "off",
339339
"typescript/no-unsafe-unary-minus": "error",
340340
"typescript/no-useless-empty-export": "error",
341+
"typescript/no-var-requires": "off",
341342
"typescript/only-throw-error": [
342343
"error",
343344
{

src/config-base/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ const config: LinterConfigEntry = {
263263
'typescript/no-unsafe-type-assertion': 'off',
264264
'typescript/no-unsafe-unary-minus': 'error',
265265
'typescript/no-useless-empty-export': 'error',
266+
'typescript/no-var-requires': 'off',
266267
'typescript/only-throw-error': ['error', { allowThrowingAny: false }],
267268
'typescript/prefer-enum-initializers': 'off',
268269
'typescript/prefer-literal-enum-member': 'off',

src/define-config/__snapshots__/index.test.ts.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,7 @@ exports[`defines a valid Oxlint config 1`] = `
503503
"typescript/no-unsafe-type-assertion": "off",
504504
"typescript/no-unsafe-unary-minus": "error",
505505
"typescript/no-useless-empty-export": "error",
506+
"typescript/no-var-requires": "off",
506507
"typescript/only-throw-error": [
507508
"error",
508509
{
@@ -1325,6 +1326,7 @@ exports[`supports the \`react\` option 1`] = `
13251326
"typescript/no-unsafe-type-assertion": "off",
13261327
"typescript/no-unsafe-unary-minus": "error",
13271328
"typescript/no-useless-empty-export": "error",
1329+
"typescript/no-var-requires": "off",
13281330
"typescript/only-throw-error": [
13291331
"error",
13301332
{

0 commit comments

Comments
 (0)