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数组中缺少someVarOutside
。 react-hooks
正在 。现在不是。