Skip to content

A local-first personal finance app

Allow underscore

Matiss Janis Aboltinsb3ebff7b59e3
diff --git a/.eslintrc.js b/.eslintrc.js
index 4597913cd8..03eb2d0f4a 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 333570b0ab..43d6b60c50 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);