Skip to content

Commit e56b416

Browse files
committed
feat(ts): ban require imports in ts file
1 parent dd276ab commit e56b416

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/eslint-config-ts/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ module.exports = {
7171
"@typescript-eslint/consistent-type-imports": ["error", { prefer: "type-imports", disallowTypeAnnotations: false }],
7272
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
7373
"@typescript-eslint/prefer-ts-expect-error": "error",
74+
"@typescript-eslint/no-require-imports": "error",
7475

7576
// Override JS
7677
"no-useless-constructor": "off",

0 commit comments

Comments
 (0)