Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

feat(rome_js_analyze): add noGlobalIsFinite #4613

Merged
merged 1 commit into from
Jun 25, 2023
Merged

feat(rome_js_analyze): add noGlobalIsFinite #4613

merged 1 commit into from
Jun 25, 2023

Conversation

Conaclos
Copy link
Contributor

@Conaclos Conaclos commented Jun 24, 2023

Summary

This rule recommends using Number.isFinite instead of the global and unsafe isFinite that attempts a type coercion.

I was wondering if this could not be merged with noGlobalIsNan. However, I didn't find a common name... This is why I proposed two distinct rules.

Test Plan

Tests included.

@netlify
Copy link

netlify bot commented Jun 24, 2023

Deploy Preview for docs-rometools canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 2530562
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/64985ffbf4f7a6000841c05f

@github-actions github-actions bot added A-Diagnostic Area: errors and diagnostics A-Linter Area: linter A-Project Area: project configuration and loading labels Jun 24, 2023
@Conaclos Conaclos requested a review from ematipico June 24, 2023 22:16
@Conaclos Conaclos merged commit 5d1e408 into rome:main Jun 25, 2023
@Conaclos Conaclos deleted the noGlobalIsFinite branch June 25, 2023 16:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Diagnostic Area: errors and diagnostics A-Linter Area: linter A-Project Area: project configuration and loading
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants