Skip to content

fix: Use our data set to work out if a module is a node module#338

Merged
aladdin-add merged 2 commits intoeslint-community:masterfrom
scagood:issue-337
Sep 18, 2024
Merged

fix: Use our data set to work out if a module is a node module#338
aladdin-add merged 2 commits intoeslint-community:masterfrom
scagood:issue-337

Conversation

@scagood
Copy link
Copy Markdown

@scagood scagood commented Sep 17, 2024

closes #337

@scagood scagood requested a review from aladdin-add September 17, 2024 15:05
@scagood scagood added bug rule:update An update to a current rule labels Sep 17, 2024
const mergeVisitorsInPlace = require("../util/merge-visitors-in-place")
const {
NodeBuiltinModules,
} = require("../unsupported-features/node-builtins.js")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nits: we could move node-builtins.js to outer - it's now not just used by those rules. :)

Copy link
Copy Markdown
Author

@scagood scagood Sep 18, 2024

Choose a reason for hiding this comment

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

Where do you think we should put the directory?

I was also thinking about going through and merging the no-deprecated-api into the unsupported-features so its all in one place as a consistent data set 🤔

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Where do you think we should put the directory?

maybe /lib/dataset/?

I was also thinking about going through and merging the no-deprecated-api into the unsupported-features

It would be nice if these rules could share data, so we don't have to worry about updating one and forgetting the other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug rule:update An update to a current rule

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: prefer-node-protocol rule and deprecated builtins

2 participants