Skip to content

Becoming ESLint-like #5

@sohkai

Description

@sohkai

Just to get the discussion rolling, I was wondering if it might make sense to conform to some of ESLint's CLI and options given how this project uses a lot of the great ideas that have come out of ESLint.

Some ideas (that may be better as separate issues if agreed upon):

  • Change solhint.json to solhintrc.json (we could use cosmiconfig for this)
  • Change init-config to --init
  • Add support for using 0, 1, and 2 as severity levels (or state that you can only use "off", "warn", "error") (see also Disable rules using "off" instead of "false" #43)
  • Add --quiet to only report errors
  • Add support for a .ignores-type file
  • Add support for custom rulesets, and inheriting from them
  • Add support for custom plugins, and moving the security rules into a solhint-plugin-security-type package

A lot of these features are either present or coming via solium@1, but I don't see much of a point in having both when solhint seems like a cleaner implementation already using antlr4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedTeam would love to have contributors working on these

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions