Skip to content

Commit 181f395

Browse files
authored
chore: Enable @typescript-eslint/no-require-imports (#4482)
1 parent 3b9c406 commit 181f395

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

eslint.config.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,25 @@ export default defineConfig(
5050
},
5151
],
5252
'@typescript-eslint/ban-ts-comment': 'error',
53-
'@typescript-eslint/no-require-imports': 'warn',
53+
'@typescript-eslint/no-require-imports': [
54+
'error',
55+
{
56+
allow: [
57+
'babel',
58+
'compression',
59+
'config.js',
60+
'cors',
61+
'express',
62+
'fs',
63+
'http',
64+
'https',
65+
'js-yaml',
66+
'lodash',
67+
'path',
68+
'webpack',
69+
],
70+
},
71+
],
5472
// Misc
5573
'no-unused-vars': 'off',
5674
'prefer-const': 'error',

0 commit comments

Comments
 (0)