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

[PoC] Created FileEnumeratorIsh to demonstrate flat config support #2967

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JoshuaKGoldberg
Copy link
Contributor

Sending as a reference for #2829 -> eslint/eslint#18087.

This:

  1. Copies FileEnumerator.js from ESLint's source as a FileEnumeratorIsh class
  2. Uses FileEnumeratorIsh instead of the existing FileEnumerator imports in no-unused-modules.js
  3. Removes any code paths that don't seem to be relevant anymore

This code is not ready to be reviewed. It doesn't preserve existing licensing/ownership. And I don't work in this repository nearly enough to be confident all of those removals were ok to remove. It's just a reference to show that isDirectoryIgnored + isFileIgnored seems to be enough for the rule to go off of.

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

Successfully merging this pull request may close these issues.

1 participant