From a167ee71c18f442efcf359480fce28bf4958205b Mon Sep 17 00:00:00 2001 From: wiiiii123 Date: Fri, 10 Jul 2026 13:25:12 +0700 Subject: [PATCH] chore(tooling): harden repository file handling --- .eslintrc.cjs | 15 --------------- .gitattributes | 24 ++++++++++++++++++++++++ biome.json | 13 ++++++++++++- 3 files changed, 36 insertions(+), 16 deletions(-) delete mode 100644 .eslintrc.cjs diff --git a/.eslintrc.cjs b/.eslintrc.cjs deleted file mode 100644 index f63fe7dc..00000000 --- a/.eslintrc.cjs +++ /dev/null @@ -1,15 +0,0 @@ -module.exports = { - root: true, - env: { browser: true, es2020: true }, - extends: [ - "eslint:recommended", - "plugin:@typescript-eslint/recommended", - "plugin:react-hooks/recommended", - ], - ignorePatterns: ["dist", ".eslintrc.cjs"], - parser: "@typescript-eslint/parser", - plugins: ["react-refresh"], - rules: { - "react-refresh/only-export-components": ["warn", { allowConstantExport: true }], - }, -}; diff --git a/.gitattributes b/.gitattributes index 6313b56c..f54a72c5 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,25 @@ * text=auto eol=lf + +*.bat text eol=crlf +*.cmd text eol=crlf + +*.dll binary +*.exe binary +*.gif binary +*.icns binary +*.ico binary +*.jpeg binary +*.jpg binary +*.mov binary +*.mp3 binary +*.mp4 binary +*.node binary +*.pdf binary +*.png binary +*.ttf binary +*.wasm binary +*.wav binary +*.webm binary +*.woff binary +*.woff2 binary +*.zip binary diff --git a/biome.json b/biome.json index c1d2304e..6c8695eb 100644 --- a/biome.json +++ b/biome.json @@ -1,7 +1,18 @@ { "$schema": "https://biomejs.dev/schemas/2.3.13/schema.json", "vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true }, - "files": { "ignoreUnknown": false }, + "files": { + "ignoreUnknown": false, + "includes": [ + "**", + "!!**/dist", + "!!**/dist-electron", + "!!**/dist-ssr", + "!!**/release", + "!!**/.tmp", + "!!**/electron/native/**/build" + ] + }, "formatter": { "enabled": true, "indentStyle": "tab",