VSCODE中的Eslint停止工作(再次)

时间:2020-07-09 21:27:32

标签: visual-studio-code eslint

Eslint再次停止工作。.

{
  "extends": ["airbnb"],
  "root": true,
  "parser": "babel-eslint",
  "env": {
    "browser": true
  },
  "plugins": [
    "react-hooks",
    "react"
  ],
"rules": {
    "react-hooks/rules-of-hooks": "error",
    "react-hooks/exhaustive-deps": "error",

使用VSCODE Version: 1.47.0-insider

useEffect(() => {
 someVarOutside
}, []);

以上内容应警告dep数组中缺少someVarOutsidereact-hooks 正在 。现在不是。

0 个答案:

没有答案