Becoming ESLint-like
See original GitHub issueJust 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
tosolhintrc.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 #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.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Getting Started with ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >Modern, faster alternatives to ESLint - LogRocket Blog
Is ESLint the best fit for your project? Learn about a few alternatives, and why they're worth considering, in this comprehensive guide.
Read more >Getting started with ESLint + development workflow
It automates the process of identifying some common mistakes/nitpicks involved in your JS code, based on predefined patterns which are inspired by some...
Read more >Setting up efficient workflows with ESLint, Prettier and ...
In this article I would like to start very easily and go into more depth from topic to topic. In the first step...
Read more >Setting up ESLINT in your JavaScript Project with VS Code
create a javascript project · install eslint as an extension in your VS Code Editor · Install eslint as a global package using...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m finding actually a perfect vim support for solhint and come across this. Feel it brings lots of value to be
eslint-like
so that solhint can benefit from eslint’s ecosystem. Solhint can even become a plugin of eslint if possible.I use coc-eslint (https://github.com/neoclide/coc-eslint) and did some search this morning to see if it’s possible for
coc-eslint
to support solhint but seems not possibleNone of the items listed was done, so I don’t see why would we close it, except maybe to open a separate issue for each item.