UNPKG

@calystral/prettier-plugin-solidity

Version:
15 lines (12 loc) 268 B
const { doc: { builders: { concat } } } = require('prettier/standalone'); const NumberLiteral = { print: ({ node }) => node.subdenomination ? concat([node.number, ' ', node.subdenomination]) : node.number }; module.exports = NumberLiteral;