zeta-chain / protocol-contracts

Protocol contracts implementing the core logic of the protocol, deployed on ZetaChain and on connected chains
MIT License
70 stars 58 forks source link

chore: add `yarn lint:sol` command for Solidity linting #164

Closed lumtis closed 5 months ago

lumtis commented 5 months ago

A solhint configuration used to be in the codebase but without a command to lint the Solidity files.

This PR add yarn lint:sol to run linter on Solidity files and update the lint CI action.

There are currently lint errors regarding contract Solidity version: https://github.com/zeta-chain/protocol-contracts/issues/163

Updated here the config to not have these errors.