Replies: 2 comments
-
You can set up ESLint in your project.
For your case, only those in bold are necessary Here are some rules for the linter that will help: In the Vue plugin for ESLint (checking for unused vars in
Here's a demo of how the eslint-plugin-vue would behave in a Vue project: https://ota-meshi.github.io/eslint-plugin-vue-demo/ |
Beta Was this translation helpful? Give feedback.
-
@heart-er please see @sethidden suggestion, and also checkout https://www.typescriptlang.org/tsconfig#checkJs. |
Beta Was this translation helpful? Give feedback.
-
In typescript, we can use noUnusedLocals: true to find unused variable, but in JavaScript, we can't find unused variable, so Is there a solution?
Beta Was this translation helpful? Give feedback.
All reactions