diff --git a/.eslintrc.js b/.eslintrc.js index 4597913cd8e4b29705a3ade306738bbd8f07265a..03eb2d0f4a7e329ac3ded837eee853e30c9dc149 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -3,6 +3,13 @@ module.exports = { extends: ['react-app'], rules: { 'prettier/prettier': 'error', + 'no-unused-vars': [ + 'warn', + { + argsIgnorePattern: '.*', // to keep backwards-compatibility; TODO: consider removing this too + varsIgnorePattern: '^_' + } + ], 'no-loop-func': 'off', 'no-restricted-globals': 'off', diff --git a/packages/desktop-client/src/components/Notifications.js b/packages/desktop-client/src/components/Notifications.js index 333570b0abf88e0a4cd05af35947e3f3d3f2570f..43d6b60c50ce255f2527c43e8ba8fa1aa4b07386 100644 --- a/packages/desktop-client/src/components/Notifications.js +++ b/packages/desktop-client/src/components/Notifications.js @@ -27,7 +27,7 @@ function compileMessage(message, actions, setLoading, onRemove) { {parts.map((part, idx) => { let match = part.match(/\[([^\]]*)\]\(([^)]*)\)/); if (match) { - let [, text, href] = match; + let [_, text, href] = match; if (href[0] === '#') { let actionName = href.slice(1);