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

Add quick fix for S2990 ('no-global-this') #3044

Merged
merged 3 commits into from
Mar 18, 2022
Merged

Add quick fix for S2990 ('no-global-this') #3044

merged 3 commits into from
Mar 18, 2022

Conversation

yassin-kammoun-sonarsource
Copy link
Contributor

Fixes #3013

@@ -95,6 +95,40 @@ const testCases = {
}`,
errors: 2,
},
{
code: `this.foo = bar;`,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should also suggest to replace with window

@sonarsource-next
Copy link

@vilchik-elena vilchik-elena merged commit a0eb82d into master Mar 18, 2022
@vilchik-elena vilchik-elena deleted the issue-3013 branch March 18, 2022 08:42
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.

Add quick fix for S2990: The global "this" object should not be used
2 participants