From 91be26e3203da931dbf5083106f5746cdf1bc68b Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Fri, 31 Jul 2026 23:30:32 +0000 Subject: [PATCH] update gitignore, format eslint config --- .gitignore | 2 -- dev_config/eslint.config.mjs | 51 +++++++++++++++++++----------------- 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/.gitignore b/.gitignore index 0b57df7..85caad2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ **/config.json -**/package-lock.json -**/node_modules dist/* go.sum \ No newline at end of file diff --git a/dev_config/eslint.config.mjs b/dev_config/eslint.config.mjs index cc7db54..2c4095d 100644 --- a/dev_config/eslint.config.mjs +++ b/dev_config/eslint.config.mjs @@ -2,28 +2,31 @@ import { defineConfig } from "eslint/config"; import globals from "globals"; import js from "@eslint/js"; -export default defineConfig([js.configs.recommended,{ - languageOptions: { - globals: { - ...globals.browser, +export default defineConfig([ + js.configs.recommended, + { + languageOptions: { + globals: { + ...globals.browser, + }, + ecmaVersion: "latest", + sourceType: "module", }, - ecmaVersion: "latest", - sourceType: "module", - }, - rules: { - "no-tabs": ["error", { - allowIndentationTabs: true, - }], - indent: ["error", "tab"], - "linebreak-style": ["error", "unix"], - quotes: ["error", "double"], - semi: ["error", "always"], - "brace-style": ["error", "stroustrup", { allowSingleLine: false }], - "no-unused-vars": ["warn", { - "argsIgnorePattern": "^_", - "varsIgnorePattern": "^_", - "caughtErrorsIgnorePattern": "^_" - }], - "prefer-const": ["error"] - }, -}]); \ No newline at end of file + rules: { + "no-tabs": ["error", { + allowIndentationTabs: true, + }], + indent: ["error", "tab"], + "linebreak-style": ["error", "unix"], + quotes: ["error", "double"], + semi: ["error", "always"], + "brace-style": ["error", "stroustrup", { allowSingleLine: false }], + "no-unused-vars": ["warn", { + "argsIgnorePattern": "^_", + "varsIgnorePattern": "^_", + "caughtErrorsIgnorePattern": "^_" + }], + "prefer-const": ["error"] + }, + } +]); \ No newline at end of file