๐งนDetecting unused classes
Last updated
Last updated
There is an ESLint plugin that detects unused classes:
Add the dependency:
Enable it in you ESLint config
Case 1: You are in a create-react-app
project:
Edit your package.json
:
Case 2: You have installed ESLint manually:
Edit your .eslintrc.js
file:
In case of false positive, disabling the warning:
For a line: // eslint-disable-next-line tss-unused-classes/unused-classes
For the entire file: // eslint-disable-next-line tss-unused-classes/unused-classes