question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Becoming ESLint-like

See original GitHub issue

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 #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:open
  • Created 6 years ago
  • Reactions:3
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
GopherJcommented, Jul 16, 2022

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 possible

0reactions
fvictoriocommented, Jul 26, 2018

None 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found