Setup tslint configuration to force error when have unused import/declarations #22995
Unanswered
deni-rhn
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone, can anyone tell me how to force error when I have an unused import/declaration written in next typescript?
the use case is:
example I have
import { Accordion, AccordionButton } from '@chakra-ui/react';
the Accordion component is used, but for AccordionButton is unused, I want when I save the file I got an error compile cause of AccordionButton is not used.
Note:
I already add:
"noUnusedLocals": true,
"noUnusedParameters": true,
in tsconfig.json but still not resolved my problem
Beta Was this translation helpful? Give feedback.
All reactions