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: avoid nodejs modules #487

Merged
merged 2 commits into from
Jan 29, 2025
Merged

chore: avoid nodejs modules #487

merged 2 commits into from
Jan 29, 2025

Conversation

wjhsf
Copy link
Contributor

@wjhsf wjhsf commented Jan 9, 2025

This adds a new eslint plugin to avoid node's built in modules, and hopefully help keep our package more cross-platform compatible.

eslint.config.mjs Outdated Show resolved Hide resolved
eslint.config.mjs Outdated Show resolved Hide resolved
@colincasey
Copy link
Contributor

Nice! This was the plugin I was looking at last night when trying to figure out how we can best avoid breaking non-Node runtimes.

@colincasey colincasey dismissed a stale review January 15, 2025 19:54

Only maintainers should be approving PRs.

@colincasey
Copy link
Contributor

colincasey commented Jan 29, 2025

@wjhsf Added a commit to get rid of the eslint and ts-ignore comments in your initial changes. Also tested that it flags node imports as errors 👍

@wjhsf wjhsf merged commit 3334b90 into master Jan 29, 2025
10 checks passed
@wjhsf wjhsf deleted the wjh/eslint-plugin-import branch January 29, 2025 19:07
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.

2 participants