@calystral/prettier-plugin-solidity
Version:
prettier plugin for solidity
19 lines (16 loc) • 334 B
JavaScript
const {
doc: {
builders: { concat }
}
} = require('prettier/standalone');
const UsingForDeclaration = {
print: ({ node, path, print }) =>
concat([
'using ',
node.libraryName,
' for ',
node.typeName ? path.call(print, 'typeName') : '*',
';'
])
};
module.exports = UsingForDeclaration;