8000 feat(rome_js_analyze): add noGlobalIsFinite by Conaclos · Pull Request #4613 · rome/tools · GitHub
[go: up one dir, main page]

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

feat(rome_js_analyze): add noGlobalIsFinite - #4613

Merged
Conaclos merged 1 commit into
rome:mainfrom
Conaclos:noGlobalIsFinite
Jun 25, 2023
Merged

Conaclos merged 1 commit into
rome:mainfrom
Conaclos:noGlobalIsFinite

Conversation

@Conaclos
@Conaclos Conaclos commented Jun 24, 2023 •
Copy link
Copy Markdown
Contributor

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
netlify Bot commented Jun 24, 2023 •
Copy link
Copy Markdown

✅ 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

0