Skip to content

Commit cf16afc

Browse files
committed
Only tests may do var requires
1 parent f2734ff commit cf16afc

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.eslintrc.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,14 @@ module.exports = {
1616
rules: {
1717
"jest/expect-expect": ["off"],
1818
"@typescript-eslint/no-namespace": ["off"],
19-
20-
// Rules to disable in V5 port
21-
"@typescript-eslint/no-var-requires": ["off"],
2219
},
20+
overrides: [
21+
{
22+
files: "__tests__/**/*.js",
23+
rules: {
24+
// Rules to disable in V5 port
25+
"@typescript-eslint/no-var-requires": ["off"],
26+
},
27+
},
28+
],
2329
};

0 commit comments

Comments
 (0)