EspressoSystems / espresso-sequencer

96 stars 68 forks source link

Add formatters/linters for solidity code #303

Closed sveitser closed 1 year ago

sveitser commented 1 year ago

Foundry's forge fmt that we use at the moment doesn't do much formatting. We previously used prettier with solidity plugin, solhint and slither. I think prettier and solhint would be a good start, unless something better appeared in the last year.

At first glance the template https://github.com/paulrberg/foundry-template looks good. We can borrow from there.

We also used the tools in CAPE but since we haven't maintained that code base in a year I think borrowing from foundry-template is the better option.

_Originally posted by @sveitser in https://github.com/EspressoSystems/espresso-sequencer/pull/292#discussion_r1173520750_

sveitser commented 1 year ago

We can potentially borrow stuff from https://github.com/paulrberg/foundry-template