Skip to content

Commit

Permalink
Only tests may do var requires
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Nov 23, 2024
1 parent f2734ff commit cf16afc
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ module.exports = {
rules: {
"jest/expect-expect": ["off"],
"@typescript-eslint/no-namespace": ["off"],

// Rules to disable in V5 port
"@typescript-eslint/no-var-requires": ["off"],
},
overrides: [
{
files: "__tests__/**/*.js",
rules: {
// Rules to disable in V5 port
"@typescript-eslint/no-var-requires": ["off"],
},
},
],
};

0 comments on commit cf16afc

Please sign in to comment.