Code style guidelines and rules for OpenZeppelin projects.
To check the code style of smart contracts written in Solidity, we use solium v1.1.7, with the rules in .soliumrc.json.
To check the code style of code written in Javascript, we use eslint, with the rules in .eslintrc and the plugins:
- eslint-config-standard
- eslint-plugin-standard
- eslint-plugin-import
- eslint-plugin-node
- eslint-plugin-promise
- eslint-plugin-react (only for react projects)
We use Prettier
as a code formatter to keep our code consistent and to reduce friction for reading and reviewing code.
If you dislike a rule, please open an issue.