solhint-plugin-example

0.0.1 • Public • Published

solhint-plugin-example

A minimal example showing how to write a plugin for Solhint.

Usage

Install solhint and this plugin:

npm install solhint solhint-plugin-example

Add plugin to your .solhint.json and enable the rule:

{
  "plugins": ["example"],
  "rules": {
    "example/no-foos": "error"
  }
}

To test it out:

echo 'contract Foo {}' > Foo.sol
./node_modules/.bin/solhint Foo.sol

/solhint-plugin-example/

    Package Sidebar

    Install

    npm i solhint-plugin-example

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    1.09 kB

    Total Files

    3

    Last publish

    Collaborators

    • fvictorio