UNPKG

prettier-plugin-solidity

Version:

A Prettier Plugin for automatically formatting your Solidity code.

11 lines (10 loc) 286 B
export const UnaryOperation = { print: ({ node, path, print }) => node.isPrefix ? [ node.operator, node.operator === 'delete' ? ' ' : '', path.call(print, 'subExpression') ] : [path.call(print, 'subExpression'), node.operator] };