Skip to content

Commit f36c186

Browse files
committed
Disable the no-require-imports rule, re-enable no-var-requires
I disabled the wrong rule in the previous release...
1 parent 741ca52 commit f36c186

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,10 @@ module.exports = {
172172
allowAsParameter: true
173173
}
174174
],
175-
'@typescript-eslint/no-require-imports': 'error',
175+
176+
// TODO: Enable this again when I target ESM output in all my TypeScript projects
177+
// '@typescript-eslint/no-require-imports': 'error',
178+
176179
'@typescript-eslint/no-this-alias': [
177180
'error',
178181
{
@@ -201,9 +204,7 @@ module.exports = {
201204
],
202205
'no-useless-constructor': 'off',
203206
'@typescript-eslint/no-useless-constructor': 'error',
204-
205-
// TODO: Enable this again when I target ESM output in all my TypeScript projects
206-
// '@typescript-eslint/no-var-requires': 'error',
207+
'@typescript-eslint/no-var-requires': 'error',
207208

208209
'@typescript-eslint/prefer-for-of': 'error',
209210
'@typescript-eslint/prefer-function-type': 'error',

0 commit comments

Comments
 (0)