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

fix(rome_js_analyze): Fix false positive diagnostics that useHookAtTopLevel caused to arrow functions, export default functions and function expressions. #4435

Merged
merged 3 commits into from
May 3, 2023

Conversation

nissy-dev
Copy link
Contributor

@nissy-dev nissy-dev commented May 3, 2023

Summary

Fix false positive diagnostics that useHookAtTopLevel caused to arrow functions, export default functions and function expressions.

see: playground

Test Plan

I added some snapshot tests.

Changelog

  • The PR requires a changelog line

Documentation

  • The PR requires documentation
  • I will create a new PR to update the documentation

@netlify
Copy link

netlify bot commented May 3, 2023

Deploy Preview for docs-rometools ready!

Name Link
🔨 Latest commit a5521e9
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/6451ea673e7f2a0008243c28
😎 Deploy Preview https://deploy-preview-4435--docs-rometools.netlify.app/playground
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions github-actions bot added the A-Linter Area: linter label May 3, 2023
@ematipico ematipico merged commit 64abeb9 into main May 3, 2023
@ematipico ematipico deleted the fix/useHookAtTopLevel-false-positive branch May 3, 2023 07:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Linter Area: linter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants