UNPKG

prettier-plugin-solidity

Version:

A Prettier Plugin for automatically formatting your Solidity code.

15 lines (13 loc) 420 B
// Prettier offers a clean way to define ignored properties. const ignoredProperties = new Set([ 'loc', 'range', 'comments', // this function is defined at constructor time so it won't pass AST // comparisons. 'isEmpty' ]); // eslint-disable-next-line @typescript-eslint/no-empty-function function clean(/* ast, newObj, parent */): void {} clean.ignoredProperties = ignoredProperties; export default clean;