eslint-plugin-unicorn
Version:
Various awesome ESLint rules
8 lines (6 loc) • 309 B
JavaScript
const getVariableIdentifiers = require('./get-variable-identifiers');
const renameIdentifier = require('./rename-identifier');
module.exports = (variable, name, fixer, sourceCode) =>
getVariableIdentifiers(variable)
.map(identifier => renameIdentifier(identifier, name, fixer, sourceCode));
;