@calystral/prettier-plugin-solidity
Version:
prettier plugin for solidity
17 lines (14 loc) • 319 B
JavaScript
const {
doc: {
builders: { concat }
}
} = require('prettier/standalone');
const AssemblyCase = {
print: ({ node, path, print }) =>
concat([
node.default ? 'default' : concat(['case ', path.call(print, 'value')]),
' ',
path.call(print, 'block')
])
};
module.exports = AssemblyCase;