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

Fails to detect name when using `export =`

Open garyking opened this issue 4 years ago • 1 comments

If the filename is Reddit.ts and export = class Reddit { is used, then filenames/match-regex fails, even though it's correctly named.

garyking avatar Oct 27 '19 07:10 garyking

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.

Igorkowalski94 avatar Oct 01 '23 08:10 Igorkowalski94