eslint-plugin-filenames
eslint-plugin-filenames copied to clipboard
Fails to detect name when using `export =`
If the filename is Reddit.ts
and export = class Reddit {
is used, then filenames/match-regex
fails, even though it's correctly named.
As an alternative you can use https://github.com/Igorkowalski94/eslint-plugin-project-structure has the same capabilities + force only folders/files, has a built-in case for name, regex support, ability to inherit the name from the parent (the child inherits the name of the folder in which it is located), folder recursion (You can nest a given folder structure recursively) and eslint realtime errors.