From cf47cf6c7105b071a51599a801686c9ddb559197 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Wed, 29 Apr 2026 21:33:56 +0000 Subject: [PATCH] update configs --- template.localdb.json => config/template.localdb.json | 0 eslint.config.mjs => dev_config/eslint.config.mjs | 7 ++++++- package.json | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) rename template.localdb.json => config/template.localdb.json (100%) rename eslint.config.mjs => dev_config/eslint.config.mjs (80%) diff --git a/template.localdb.json b/config/template.localdb.json similarity index 100% rename from template.localdb.json rename to config/template.localdb.json diff --git a/eslint.config.mjs b/dev_config/eslint.config.mjs similarity index 80% rename from eslint.config.mjs rename to dev_config/eslint.config.mjs index b46f86c..49bfa56 100644 --- a/eslint.config.mjs +++ b/dev_config/eslint.config.mjs @@ -20,6 +20,11 @@ export default defineConfig([{ "linebreak-style": ["error", "unix"], quotes: ["error", "double"], semi: ["error", "always"], - "brace-style": ["error", "stroustrup", { allowSingleLine: false }] + "brace-style": ["error", "stroustrup", { allowSingleLine: false }], + "no-unused-vars": ["warn", { + "argsIgnorePattern": "^_", + "varsIgnorePattern": "^_", + "caughtErrorsIgnorePattern": "^_" + }] } }]); diff --git a/package.json b/package.json index 7a93a6c..92a5e56 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,6 @@ "globals": "^17.4.0" }, "scripts": { - "lint": "npx eslint . --fix" + "lint": "DEBUG=eslint:cli-engine eslint --config dev_config/eslint.config.mjs --fix ." } }