configs
configs copied to clipboard
Code style guidelines and rules for OpenZeppelin projects
Configuration for tools used across OpenZeppelin projects.
Prettier
We use Prettier as a code formatter to keep our code consistent and to reduce friction for reading and reviewing code.
For Solidity we use the Prettier Solidity plugin.
JavaScript
To check for common errors in JavaScript or TypeScript, we use ESLint, with the rules in .eslintrc. Note that some additional packages are required.
ESLint should run with --max-warnings 0
in CI.