UNPKG

@calystral/prettier-plugin-solidity

Version:
13 lines (10 loc) 245 B
const { doc: { builders: { concat } } } = require('prettier/standalone'); const IndexAccess = { print: ({ path, print }) => concat([path.call(print, 'base'), '[', path.call(print, 'index'), ']']) }; module.exports = IndexAccess;