I have a large React code base written in TypeScript (with files named like src/common/components/MyComponent.tsx).
delete-react-zombies does not detect any component:
$ ./node_modules/.bin/delete-react-zombies
⠋ Searching zombie components
0 components found!
0 unused components found!
Bye bye!
I've tried to add .tsx extension here:
|
if (fileName.search(/.js|.ts|.jsx/g) !== -1) { |
and here:
|
export const isAvailableFile = (file: string): boolean => file.search(/.js|.ts|.jsx/g) !== -1; |
without luck