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

chore: add lint rule against implicit globals #929

Merged
merged 1 commit into from
Apr 16, 2022
Merged

Conversation

ph-fritsche
Copy link
Member

@ph-fritsche ph-fritsche commented Apr 15, 2022

What:

Add a lint rule against implicit use of global variables.

Why:

This enforces to get things like document or window explicitly from globalThis or from local scope.

How:

Add a local lint rule per --rulesdir=eslint.

Checklist:

  • Tests
  • Ready to be merged

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 6dd1ff4:

Sandbox Source
userEvent-dom Configuration
userEvent-react Configuration

@ph-fritsche ph-fritsche changed the base branch from main to globals-merge April 16, 2022 10:01
@ph-fritsche ph-fritsche merged commit 7bca74c into globals-merge Apr 16, 2022
@ph-fritsche ph-fritsche deleted the globals branch April 16, 2022 10:02
@github-actions
Copy link

🎉 This PR is included in version 14.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant