Skip to content

chore: avoid nodejs modules#487

Merged
wjhsf merged 2 commits into
masterfrom
wjh/eslint-plugin-import
Jan 29, 2025
Merged

chore: avoid nodejs modules#487
wjhsf merged 2 commits into
masterfrom
wjh/eslint-plugin-import

Conversation

@wjhsf
Copy link
Copy Markdown
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.

Comment thread eslint.config.mjs Outdated
Comment thread eslint.config.mjs Outdated
@colincasey
Copy link
Copy Markdown
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
Copy Markdown
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
@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