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

🚨 [RUMF-1505] ESLint rule to forbid usage of Zone.js problematic values #2031

Merged

Conversation

BenoitZugmeyer
Copy link
Member

@BenoitZugmeyer BenoitZugmeyer commented Feb 23, 2023

Motivation

As we've seen in the past, integrating the SDK on an app that uses Angular/Zone.js causes critical issues in various ways. See related PRs:

Changes

This PR adds an ESLint rule to forbid usage of some values that are known to cause trouble when they are patched by Zone.js. This PR focuses on introducing the rule and disallow MutationObserver. Future PRs will disallow more things.

Screenshot 2023-02-23 at 16 00 53

Testing

  • Local
  • Staging
  • Unit
  • End to end

I have gone over the contributing documentation.

@BenoitZugmeyer BenoitZugmeyer requested a review from a team as a code owner February 23, 2023 14:59
Copy link
Contributor

@bcaudan bcaudan left a comment

Choose a reason for hiding this comment

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

Nice!

@BenoitZugmeyer BenoitZugmeyer merged commit 84374bd into main Feb 27, 2023
@BenoitZugmeyer BenoitZugmeyer deleted the benoit/disallow-zone-js-patched-values--eslint-rule branch February 27, 2023 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants