From 858e00603e1cbccbebafe6d42a5257ef127f0cfe Mon Sep 17 00:00:00 2001 From: Discusser <47938380+Discusser@users.noreply.github.com> Date: Mon, 21 Oct 2024 14:19:41 +0200 Subject: [PATCH] Allow prefixing unused variables with underscore for eslint --- eslint.config.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/eslint.config.js b/eslint.config.js index 39ea393..164dc04 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -28,5 +28,18 @@ export default tseslint.config( }, { ignores: ['build/', '.svelte-kit/', 'dist/'] + }, + { + rules: { + 'no-unused-vars': 'off', + '@typescript-eslint/no-unused-vars': [ + 'warn', + { + argsIgnorePattern: '^_', + varsIgnorePattern: '^_', + caughtErrorsIgnorePattern: '^_' + } + ] + } } );