diff --git a/.minify.json b/.minify.json index 609ca9a..2238e4b 100644 --- a/.minify.json +++ b/.minify.json @@ -4,10 +4,17 @@ "terser": { "mangle": { "toplevel": true, - "reserved": ["pushToast", "addKeyboardListener", - "addClickKeyboardListener", "easySetup", - "addUsernameFieldWatchers", "translateErrorObject", - "openAltText", "openPostAltEditor", "updateUsername"] + "reserved": [ + "pushToast", + "addKeyboardListener", + "addClickKeyboardListener", + "easySetup", + "addUsernameFieldWatchers", + "translateErrorObject", + "openAltText", + "openPostAltEditor", + "updateUsername" + ] } }, "putout": { @@ -19,4 +26,4 @@ "removeUselessSpread": true } } -} \ No newline at end of file +} diff --git a/.vscode/settings.json b/.vscode/settings.json index d0f6b39..7764112 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,8 +1,9 @@ { "search.exclude": { - "**/migrations": true, + "migrations/**": true, ".wrangler/**": true, - "/src/definitions/wrangler.d.ts": true, + ".vscode/**": true, + "src/definitions/wrangler.d.ts": true, "package-lock.json": true, "jsrules.config.ts": true }, diff --git a/eslint.config.ts b/eslint.config.ts index 59d1a88..559ceab 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -7,46 +7,43 @@ import tseslint from "typescript-eslint"; import { configObject } from "./jsrules.config"; export default defineConfig([ - globalIgnores([".wrangler/**", ".github/**", "assets/dep/**", ".vscode/**", "dist/**", "src/definitions/wrangler.d.ts", "*.config.ts", "assets/js/min/**"]), + globalIgnores([ + ".wrangler/**", + ".github/**", + "assets/dep/**", + ".vscode/**", + "dist/**", + "src/definitions/wrangler.d.ts", + "*.config.ts", + "assets/js/min/**", + ]), // ESLint for Typescript { files: ["src/**.{ts,tsx}"], plugins: { js }, extends: ["js/recommended", tseslint.configs.strictTypeChecked, baseConfig], - languageOptions: { - parserOptions: { - projectService: true, - } - }, + languageOptions: { parserOptions: { projectService: true } }, rules: { - "curly": "off", + curly: "off", // hono gets "@typescript-eslint/no-unsafe-assignment": "off", // necessary for valid, uuidValid, has, isEmpty, etc "@typescript-eslint/no-non-null-assertion": "off", "@typescript-eslint/no-unnecessary-condition": "error", // ts ignore annoyances - "@typescript-eslint/ban-ts-comment": "off" - } + "@typescript-eslint/ban-ts-comment": "off", + }, }, // ESLint for website JS { files: ["assets/js/**.js"], plugins: { js }, extends: ["js/recommended"], - languageOptions: { - sourceType: "commonjs", - globals: { - ...globals.browser, - ...configObject, - } - }, + languageOptions: { sourceType: "commonjs", globals: { ...globals.browser, ...configObject } }, rules: { "no-control-regex": "off", "no-unused-vars": "off", - "no-useless-escape": ["error", { - "allowRegexCharacters": ["-", ".", ":"] - }] - } - } + "no-useless-escape": ["error", { allowRegexCharacters: ["-", ".", ":"] }], + }, + }, ]);