{"library":"babel-plugin-remove-unused-vars","type":"library","category":null,"description":"A Babel plugin that automatically removes unused variables, imports, function arguments, and destructured bindings from JavaScript code, acting as a Babel-based autofix for ESLint's no-unused-vars rule. As of version 2.2.0, it supports source-to-source transformations and is intended for use as a build tool to clean up code. The plugin runs via Babel CLI or programmatically and handles common cases but has known limitations with deep assignment expressions. It is released under the MIT license with moderate maintenance cadence on GitHub, positioned as a more aggressive alternative to manual lint fixes or tree-shaking.","language":"javascript","status":"active","version":"2.2.0","tags":["javascript","babel","eslint","fix","unused","variables"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-remove-unused-vars","imports":["module.exports = require('babel-plugin-remove-unused-vars')","const plugin = require('babel-plugin-remove-unused-vars')","const babel = require('@babel/core'); const plugin = require('babel-plugin-remove-unused-vars'); babel.transformSync(code, { plugins: [plugin] })"]},{"cmd":"yarn add babel-plugin-remove-unused-vars","imports":[]},{"cmd":"pnpm add babel-plugin-remove-unused-vars","imports":[]}],"homepage":null,"github":"https://github.com/steelbrain/babel-plugin-remove-unused-vars","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-remove-unused-vars","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-remove-unused-vars/compatibility"}}