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

Enforced triple eq in condition statements #1088

Merged
merged 4 commits into from
Oct 14, 2024
Merged

Conversation

schtibe
Copy link
Contributor

@schtibe schtibe commented Oct 4, 2024

Enable the eslint rule eqeqeq which enforces the use of triple equals (=== and !=).

Test link

@schtibe schtibe requested a review from pakb October 4, 2024 12:57
Copy link
Contributor

@pakb pakb left a comment

Choose a reason for hiding this comment

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

Some test fail, maybe some values were set to 'undefined' (string type) and now are filtered out 🤔

@geoadmin geoadmin deleted a comment from cypress bot Oct 7, 2024
Copy link

cypress bot commented Oct 7, 2024

web-mapviewer    Run #3553

Run Properties:  status check passed Passed #3553  •  git commit a7166cb4bd: Fix layer store bug due to eqeqeq strong comparison
Project web-mapviewer
Run status status check passed Passed #3553
Run duration 05m 13s
Commit git commit a7166cb4bd: Fix layer store bug due to eqeqeq strong comparison
Committer Stefan Heinemann
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 21
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 211

The rule enforces the use of === in every situation
The layer store had a comparison that didn't work anymore due to the
introduction of the eqeqeq rule. Need to check for undefined *and* null
separately now.
@schtibe schtibe merged commit 28070d3 into develop Oct 14, 2024
6 checks passed
@schtibe schtibe deleted the feat-eqeqeq-rule-in-eslint branch October 14, 2024 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants