如何在Visual Studio Code中修复Solidity Linter?

时间:2018-11-28 13:19:31

标签: visual-studio-code lint solidity

如何修复将使用solhint规则的Visual Studio Linter?看来它使用了另一种起毛工具。

enter image description here

我的设置是:

{
    "workbench.iconTheme": "material-icon-theme",
    "eslint.packageManager": "yarn",
    "jshint.enable": false,
    "files.trimTrailingWhitespace": true,
    "window.zoomLevel": -1,
    "editor.fontSize": 15,
    "solidity.enabledAsYouTypeCompilationErrorCheck": true,
    "solidity.validationDelay": 1500,
    "solidity.linter": "solhint",
    "solidity.solhintRules": {
      "avoid-sha3": "warn"
    }
}

但是终端中的solhint-命令会带来其他问题(如预期的那样):

enter image description here

我安装了以下与稳定性相关的扩展程序:

beaugunderson.solidity-extended@3.0.2
idrabenia.solidity-solhint@1.1.4
JuanBlanco.solidity@0.0.47
kodebox.solidity-language-server@0.1.6

如何修复棉绒呢?

0 个答案:

没有答案