Skip to content

BootNodeDev/solhint-plugin-custom-functions-order

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

solhint-plugin-custom-functions-order

Setup

First install the necessary packages:

npm install --save-dev solhint lmcorbalan/solhint-plugin-custom-functions-order

Then add a .solhint.json configuration file:

{
  "plugins": ["custom-functions-order"],
  "rules": {
    "custom-functions-order/custom-ordering": [
      "warn",
      {
        "functionsOrder": [
          "external view",
          "external pure",
          "public view",
          "public pure",
          "external",
          "public",
          "internal",
          "internal view",
          "internal pure",
          "private",
          "internal view",
          "internal pure"
        ]
      }
    ]
  }
}

About

solhint-plugin-custom-functions-order

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published