Zapper's set of custom ESLint rules
npm install @zapper-fi/eslint-pluginZapper.fi's set of custom ESLint rules
You'll first need to install ESLint:
``sh`
pnpm i eslint --save-dev
Next, install @zapper-fi/eslint-plugin:
`sh`
pnpm install @zapper-fi/eslint-plugin --save-dev
Add @zapper-fi to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
`json`
{
"plugins": ["@zapper-fi"]
}
Then configure the rules you want to use under the rules section.
`json`
{
"rules": {
"@zapper-fi/ethereum-address": 2
}
}
* ethereum-address`: Requires Ethereum-style addresses to be lowercased