From 9080bd5ce61f45f0df922fb10c7ee9502ff9f885 Mon Sep 17 00:00:00 2001 From: BrightTheBackpack <100brightli@gmail.com> Date: Thu, 28 Nov 2024 22:37:16 -0800 Subject: [PATCH] update eslint rules --- .eslintrc.json | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index e07cd65..3362aee 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,12 +1,22 @@ { "parser": "@typescript-eslint/parser", - "plugins": ["@typescript-eslint"], + "plugins": [ + "@typescript-eslint" + ], "extends": [ "eslint:recommended", "plugin:@typescript-eslint/recommended" ], "rules": { // your custom rules - "@typescript-eslint/no-unused-vars": ["error"] + "@typescript-eslint/no-unused-vars": [ + "warn", + { + "vars": "all", + "varsIgnorePattern": "[A-Z]", + "args": "after-used", + "ignoreRestSiblings": true + } + ] } -} +} \ No newline at end of file