chore(tooling): harden repository file handling

This commit is contained in:
wiiiii123
2026-07-10 18:59:05 +07:00
parent f5e29bfb1a
commit a167ee71c1
3 changed files with 36 additions and 16 deletions
-15
View File
@@ -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 }],
},
};
+24
View File
@@ -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
+12 -1
View File
@@ -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",