NomicFoundation / hardhat-vscode

Solidity and Hardhat support for Visual Studio Code
https://hardhat.org
MIT License
169 stars 38 forks source link

Support solhint #39

Open kanej opened 2 years ago

kanej commented 2 years ago

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.

alcuadrado commented 2 years ago

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

kanej commented 1 year ago

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

gzliudan commented 1 year ago

Can we use solhint in hardhat-vscode now?

kanej commented 1 year ago

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.

llllvvuu commented 1 year ago

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