openeew / openeew-dashboard

Dashboards for monitoring devices, events, users, data and more. Built on Carbon and React.
http://dashboard.openeew.com
Apache License 2.0
25 stars 32 forks source link

chore: disable false positive lint warning #143

Open SimonFinney opened 3 years ago

SimonFinney commented 3 years ago

ESLint was surfacing the following error in Events/index.js:

React Hook useEffect has a missing dependency: 'addToast'. Either include it or remove the dependency array

As addToast should only run once, the dependency array should remain empty — this PR ignores the lint warning.