securityos/node_modules/eslint-plugin-unicorn/rules/fix/replace-argument.js

9 lines
257 B
JavaScript

'use strict';
const {getParenthesizedRange} = require('../utils/parentheses.js');
function replaceArgument(fixer, node, text, sourceCode) {
return fixer.replaceTextRange(getParenthesizedRange(node, sourceCode), text);
}
module.exports = replaceArgument;