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

Fix lint rules for tests #245

Merged
merged 3 commits into from
Apr 21, 2022
Merged

Fix lint rules for tests #245

merged 3 commits into from
Apr 21, 2022

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Apr 20, 2022

The lint configuration for tests was wrong (the file glob had the wrong file extension), so none of the test lint rules or globals were being set correctly. This has been fixed, and all rule violations have been fixed.

There were a number of workarounds used in the tests for the globals expect and it not being recognized by the linter. These workarounds have now been removed as well, since globals are now correctly set.

@Gudahtt
Copy link
Member Author

Gudahtt commented Apr 20, 2022

This depends upon #243

extends: ['@metamask/eslint-config-jest'],
},
],
plugins: ['jsdoc'],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This plugin is already added in our general shared config, so this was redundant.

Base automatically changed from fix-typed-message-schema to main April 21, 2022 20:46
The lint configuration for tests was wrong (the file glob had the wrong
file extension), so none of the test lint rules or globals were being
set correctly. This has been fixed, and all rule violations have been
fixed.

There were a number of workarounds used in the tests for the globals
`expect` and `it` not being recognized by the linter. These workarounds
have now been removed as well, since globals are now correctly set.
@Gudahtt Gudahtt force-pushed the fix-test-lint-rules branch from e601a71 to a3f0433 Compare April 21, 2022 20:46
@Gudahtt Gudahtt marked this pull request as ready for review April 21, 2022 20:47
@Gudahtt Gudahtt requested a review from a team as a code owner April 21, 2022 20:47
@Gudahtt Gudahtt merged commit cde38f7 into main Apr 21, 2022
@Gudahtt Gudahtt deleted the fix-test-lint-rules branch April 21, 2022 21:47
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.

2 participants