hardhat-vscode icon indicating copy to clipboard operation
hardhat-vscode copied to clipboard

Support solhint

Open kanej opened this issue 3 years ago • 5 comments

We surface hardhat compiler errors and warnings, we should consider doing the same for solhint.

Consideration should be given to how solhint + prettier-solidity + vscode plugins interact.

kanej avatar Jan 24 '22 11:01 kanej

This is part of the roadmap, but not for the initial public beta.

alcuadrado avatar Jan 24 '22 14:01 alcuadrado

Another option is to make sure the solhint extension is compatible with ours. Then we can point people in the docs.

kanej avatar Jan 02 '23 18:01 kanej

Can we use solhint in hardhat-vscode now?

gzliudan avatar Aug 14 '23 10:08 gzliudan

Can we use solhint in hardhat-vscode now?

Solhint support has not been started yet, and won't be in the next few months at least.

kanej avatar Aug 14 '23 12:08 kanej

vscode-solidity has solhint but unfortunately I don't think there's an easy way to turn off its other features in VSCode (other editors like Neovim and Helix can do it). As a workaround solhint can be set up as a standalone thing:

My solution for Neovim is to apply an LSP wrapper to solhint/slither commands: https://github.com/llllvvuu/efm-tool-definitions.yaml. It's not as good as a hand-written LSP server which calls the library instead of the executable, but daemonizing the executables is on my backlog.

Solution can be plugged into VSCode with this: https://github.com/llllvvuu/vscode-glspc

llllvvuu avatar Aug 29 '23 18:08 llllvvuu