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

Remove no-undef in favour of custom environments configuration #254

Merged
merged 3 commits into from Nov 16, 2022

Conversation

Mrtenz
Copy link
Member

@Mrtenz Mrtenz commented Nov 15, 2022

This disables no-undef for the TypeScript config, and adds some auto-generated environment configuration. The base configuration assumes that the environment supports both Node.js and browsers. For browsers specifically, there's a new package @metamask/eslint-config-browser.

@Mrtenz Mrtenz requested a review from a team as a code owner November 15, 2022 18:11
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

Looks great! One minor suggestion.

scripts/generate-configs.js Outdated Show resolved Hide resolved
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM!

@Mrtenz Mrtenz merged commit af99bf3 into main Nov 16, 2022
@Mrtenz Mrtenz deleted the mrtenz/fix-environments branch November 16, 2022 14:12
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.

None yet

2 participants