eslint-plugin-import icon indicating copy to clipboard operation
eslint-plugin-import copied to clipboard

[PoC] Created FileEnumeratorIsh to demonstrate flat config support

Open JoshuaKGoldberg opened this issue 1 year ago • 0 comments

Sending as a reference for https://github.com/import-js/eslint-plugin-import/pull/2829 -> https://github.com/eslint/eslint/issues/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.

JoshuaKGoldberg avatar Feb 24 '24 02:02 JoshuaKGoldberg