Skip to content

Commit

Permalink
fix(typescript): explicitly disable `@typescript-eslint/no-require-im…
Browse files Browse the repository at this point in the history
…ports`
  • Loading branch information
G-Rath committed Dec 6, 2024
1 parent 49e7f28 commit 619df3d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions @typescript-eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,10 @@ const generateConfig = () => {
// these are in the stylistic-type-checked config
'@typescript-eslint/prefer-find': 'error',
'@typescript-eslint/prefer-includes': 'error',
'@typescript-eslint/prefer-regexp-exec': 'error'
'@typescript-eslint/prefer-regexp-exec': 'error',

// this can be covered by @typescript-eslint/no-require-imports in both v7 & v8
'@typescript-eslint/no-var-requires': 'off'
}
}
}
Expand Down Expand Up @@ -339,7 +342,10 @@ const generateConfig = () => {
// these are in the stylistic-type-checked config
'@typescript-eslint/prefer-find': 'error',
'@typescript-eslint/prefer-includes': 'error',
'@typescript-eslint/prefer-regexp-exec': 'error'
'@typescript-eslint/prefer-regexp-exec': 'error',

// this can be covered by @typescript-eslint/no-require-imports in both v7 & v8
'@typescript-eslint/no-var-requires': 'off'
}
}
};
Expand Down

0 comments on commit 619df3d

Please sign in to comment.