eslint-plugin-import
eslint-plugin-import copied to clipboard
[PoC] Created FileEnumeratorIsh to demonstrate flat config support
Sending as a reference for https://github.com/import-js/eslint-plugin-import/pull/2829 -> https://github.com/eslint/eslint/issues/18087.
This:
- Copies
FileEnumerator.jsfrom ESLint's source as aFileEnumeratorIshclass - Uses
FileEnumeratorIshinstead of the existingFileEnumeratorimports inno-unused-modules.js - 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.