babel-plugin-remove-unused-vars
babel-plugin-remove-unused-vars copied to clipboard
support vue
Can you support the vue file?
Hi @lp4298707
Can you explain the question further please?
Thank you
Can you make this plugin support vue suffix files? Thank you
I'll give it a try!
I'll give it a try!
thanks
β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 π .

@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 π.