Ignore getServerSideProps for Next.js codebases
dshook opened this issue · comments
Hi there, thanks for the work on this!
I'm wondering if there's a way to excluded the getServerSideProps
and default
exports for Next.js projects with its file based router.
You can of course exclude the whole file with something like ts-unused-exports tsconfig.json | grep -v getServerSideProps
but this will miss any other unused exports from the files as well.
hm sounds tricky!
For now, I'd disable such warnings with a comment:
// ts-unused-exports:disable-next-line
Maybe we can add a --excludeSignatureFromReport
flag?