1. In the first run the vscode npm i eslint-plugin-react-hooks -D
mounted reliance;
2. Open and then package.json
configure:
"eslintConfig": {
"extends": "react-app",
"plugins": [
"react-hooks"
],
"rules": {
"react-hooks/rules-of-hooks":"error"
}
},