Code cleaning
-
Hi
Is there an automatic way to scan the code and report unused properties/methods and such?
I’m using vscode - maybe there’s an extension that does that?
Thanks -
That would be very useful.
The Standard ES-Lint will throw errors if variables are unused.(not properties or methods)
Maybe you find something here:
-
@amoss I use
https://atom.io/packages/linter-eslint for Atom
Maybe this one here for vscode.
https://github.com/microsoft/vscode-eslint will get you want you want or half way there anyway.
As @dobbel pointed out it doesn’t do properties or methods.
Isn’t it the default when you start a Quasar project to have this running withquasar dev
? -
@turigeza said in Code cleaning:
Isn’t it the default when you start a Quasar project to have this running with
quasar dev
?yes
-
Thanks. So if neither methods nor properties, I’m left only with variables, right?
I ask this because I’m doing some changes and I move code from one vue file to another and I want to make sure I’m not leaving some dirt behind.