Skip to content
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

Merged
merged 3 commits into from
Aug 19, 2019

Conversation

nickserv
Copy link
Contributor

No description provided.

@nickserv
Copy link
Contributor Author

@cellog Fixes CI failure after merging #3515 and #3516

@@ -34,9 +34,11 @@ module.exports = {

overrides: [
{
files: 'test/**/*.js',
env: {
jest: true
Copy link
Contributor Author

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

.eslintrc.js Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
@nickserv nickserv changed the title Fix linter configuration for test files TypeScript: Fix linter configuration for test files Aug 18, 2019
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-unused-vars': 'off'
}
}
Copy link
Contributor Author

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

@timdorr timdorr merged commit aa8b325 into reduxjs:ts-conversion Aug 19, 2019
webMasterMrBin pushed a commit to webMasterMrBin/redux that referenced this pull request Aug 21, 2021
* Fix linter configuration for test files

* Add separate ESLint config to test/typescript

* Also lint TypeScript files in examples


Former-commit-id: 27bf970
Former-commit-id: 21540b4
webMasterMrBin pushed a commit to webMasterMrBin/redux that referenced this pull request Aug 21, 2021
* Fix linter configuration for test files

* Add separate ESLint config to test/typescript

* Also lint TypeScript files in examples


Former-commit-id: 27bf970
Former-commit-id: 21540b4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants