@calystral/prettier-plugin-solidity
Version:
prettier plugin for solidity
18 lines (15 loc) • 377 B
JavaScript
// source: https://github.com/prettier/prettier/blob/ee2839bacbf6a52d004fa2f0373b732f6f191ccc/tests_config/raw-serializer.js
;
const RAW = Symbol.for('raw');
module.exports = {
print(val) {
return val[RAW];
},
test(val) {
return (
val &&
Object.prototype.hasOwnProperty.call(val, RAW) &&
typeof val[RAW] === 'string'
);
}
};