/eslint-plugin-address

evm address lint rule

Primary LanguageTypeScriptMIT LicenseMIT

eslint-plugin-address

npm GitHub npm

evm address lint rule

Installation

pnpm add -D eslint-plugin-address eslint

It is also possible to install ESLint globally rather than locally.

Configuration

Add "address" plugin to your config files.

{
  "plugins": ["address", ...others],
}

Enable or disable the rules

{
  "rules": {
    // default set
    "address/addr-type": "error",
    // or, specific use checksumed address
    "address/addr-type": ["error", "checksum"],
    // or, specific use lowercase address
    "address/addr-type": ["error", "lowercase"]
  }
}