UNPKG

prettier-plugin-solidity

Version:

A Prettier Plugin for automatically formatting your Solidity code.

13 lines (10 loc) 230 B
import { doc } from 'prettier'; const { hardline } = doc.builders; export const AssemblyStackAssignment = { print: ({ node, path, print }) => [ path.call(print, 'expression'), hardline, '=: ', node.name ] };