UNPKG

@typescript-eslint/eslint-plugin

Version:
7 lines (6 loc) 253 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getWrappedCode = getWrappedCode; function getWrappedCode(text, nodePrecedence, parentPrecedence) { return nodePrecedence > parentPrecedence ? text : `(${text})`; }