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

refactor(rome_js_analyze): handle globalThis for noNewSymbol #4707

Merged
merged 1 commit into from
Jul 18, 2023
Merged

refactor(rome_js_analyze): handle globalThis for noNewSymbol #4707

merged 1 commit into from
Jul 18, 2023

Conversation

Conaclos
Copy link
Contributor

@Conaclos Conaclos commented Jul 18, 2023

Summary

This PR improves noNewSymbol by handling globalThis and window global namespaces.
I also moved the rule to the correct location (analyzers to semantic_analyzers).

I noted that other rules are in the wrong location.
I think we should merge semantic_analyzers into analyzers. The separation seems confusing for most of the contributors...

Test Plan

Test added.

@netlify
Copy link

netlify bot commented Jul 18, 2023

Deploy Preview for docs-rometools ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 10dcbc9
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/64b687bd7803ae0008e9fc30
😎 Deploy Preview https://deploy-preview-4707--docs-rometools.netlify.app
📱 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 configuration.

@github-actions github-actions bot added A-Linter Area: linter A-Project Area: project configuration and loading labels Jul 18, 2023
@Conaclos Conaclos merged commit adf9d69 into rome:main Jul 18, 2023
17 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
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