From cad692b9dbc835b519e78f0536b0a1b6089125e0 Mon Sep 17 00:00:00 2001 From: Stefan Forstenlechner Date: Sun, 17 Apr 2022 14:09:57 +0200 Subject: [PATCH] eslint ignore unused variables with underscore prefix --- picture-gallery-server/.eslintrc.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/picture-gallery-server/.eslintrc.json b/picture-gallery-server/.eslintrc.json index 49ce21e..3e059d3 100644 --- a/picture-gallery-server/.eslintrc.json +++ b/picture-gallery-server/.eslintrc.json @@ -24,7 +24,13 @@ "tsx": "never" } ], - "import/prefer-default-export": "off" + "import/prefer-default-export": "off", + "no-unused-vars": [ + "error", + { + "argsIgnorePattern": "^_" + } + ] }, "settings": { "import/resolver": {