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

9 lines
257 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
'use strict';
const {getParenthesizedRange} = require('../utils/parentheses.js');
function replaceArgument(fixer, node, text, sourceCode) {
return fixer.replaceTextRange(getParenthesizedRange(node, sourceCode), text);
}
module.exports = replaceArgument;