Skip to content

chore: add lint rule against implicit globals#929

Merged
ph-fritsche merged 1 commit intoglobals-mergefrom
globals
Apr 16, 2022
Merged

chore: add lint rule against implicit globals#929
ph-fritsche merged 1 commit intoglobals-mergefrom
globals

Conversation

@ph-fritsche
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown

🎉 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.

1 participant