@typescript-eslint/eslint-plugin
Version:
TypeScript plugin for ESLint
8 lines • 328 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getWrappedCode = void 0;
function getWrappedCode(text, nodePrecedence, parentPrecedence) {
return nodePrecedence > parentPrecedence ? text : `(${text})`;
}
exports.getWrappedCode = getWrappedCode;
//# sourceMappingURL=getWrappedCode.js.map