-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript: Fix linter configuration for test files #3518
TypeScript: Fix linter configuration for test files #3518
Conversation
@@ -34,9 +34,11 @@ module.exports = { | |||
|
|||
overrides: [ | |||
{ | |||
files: 'test/**/*.js', | |||
env: { | |||
jest: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this because it's no longer necessary, as all the test files are now in TypeScript, and TypeScript will make sure the Jest globals are used properly
'@typescript-eslint/no-namespace': 'off', | ||
'@typescript-eslint/no-unused-vars': 'off' | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These rules aren't useful for the TypeScript tests because the code doesn't actually run, it's just meant to be typechecked
No description provided.