DEPRECATED ESLint plugin (v1.0.6, final release) that extended the core no-unused-vars rule with an ignoreDestructuredVarsWithRest option, allowing unused variables in destructuring patterns containing rest properties. As of ESLint 3.15.0 (December 2016), the core no-unused-vars rule natively supports this behavior via the ignoreRestSiblings option. This plugin is no longer maintained and should not be used in new projects. It only supports ESLint 3.x and has no releases beyond v1.0.6.
npm install eslint-plugin-no-unused-vars-restNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure the plugin to ignore unused variables in destructuring with rest, and demonstrates the feature with a common pattern.
Upgrade to ESLint >=3.15.0 and use core rule with ignoreRestSiblings: true instead of this plugin. Example: { 'rules': { 'no-unused-vars': ['error', { 'ignoreRestSiblings': true }] } }Do not install this plugin with ESLint 4+. Use core no-unused-vars rule instead.
Add 'no-unused-vars': 'off' or 0 to your ESLint config.
Run npm install eslint-plugin-no-unused-vars-rest --save-dev
Add '"no-unused-vars-rest"' to the plugins array in your ESLint config.
Enable the plugin rule with ignoreDestructuredVarsWithRest: true and disable core no-unused-vars.