babel-plugin-remove-unused-vars icon indicating copy to clipboard operation
babel-plugin-remove-unused-vars copied to clipboard

support vue

Open lp4298707 opened this issue 4 years ago β€’ 5 comments

Can you support the vue file?

lp4298707 avatar Dec 09 '20 02:12 lp4298707

Hi @lp4298707

Can you explain the question further please?

Thank you

steelbrain avatar Dec 09 '20 03:12 steelbrain

Can you make this plugin support vue suffix files? Thank you

lp4298707 avatar Dec 09 '20 03:12 lp4298707

I'll give it a try!

steelbrain avatar Dec 09 '20 03:12 steelbrain

I'll give it a try!

thanks

lp4298707 avatar Dec 09 '20 03:12 lp4298707

β€œThere is nothing we should be quite so grateful for as the last line of the poem that goes, "When your own heart asks".” (c) Yamamoto Tsunetomo, Hagakure

@lp4298707 you can try eslint-plugin-putout it running Putout code transformer with @putout/plugin-remove-unused-variables rule inside ESLint. It serves the same purpose and supports Vue since https://github.com/coderaiser/putout/issues/66 🎈 .

image

@steelbrain this project is awesome πŸŽ‰ ! This task is really hard and I understand why you stopped supporting it. Removing unused variables is what Putout was started from and everything started spinning πŸŽ‚ .

One of the things I came up with is: declarative transforming of AST you can take a look at @putout/engine-runner 🐊.

coderaiser avatar Sep 19 '21 12:09 coderaiser