refactor: remove .editorconfig, .gitattributes, merge knip.json into package.json
This commit is contained in:
parent
fa48c95dc5
commit
861f82dd5c
4 changed files with 33 additions and 33 deletions
|
|
@ -1,12 +0,0 @@
|
||||||
root = true
|
|
||||||
|
|
||||||
[*.{ts,tsx,js,jsx,json,md,yml,yaml}]
|
|
||||||
charset = utf-8
|
|
||||||
end_of_line = lf
|
|
||||||
insert_final_newline = true
|
|
||||||
indent_style = space
|
|
||||||
indent_size = 2
|
|
||||||
trim_trailing_whitespace = true
|
|
||||||
|
|
||||||
[*.md]
|
|
||||||
trim_trailing_whitespace = false
|
|
||||||
1
.gitattributes
vendored
1
.gitattributes
vendored
|
|
@ -1 +0,0 @@
|
||||||
* text=auto eol=lf
|
|
||||||
20
knip.json
20
knip.json
|
|
@ -1,20 +0,0 @@
|
||||||
{
|
|
||||||
"$schema": "https://unpkg.com/knip@next/schema.json",
|
|
||||||
"entry": [
|
|
||||||
"src/main/index.ts",
|
|
||||||
"src/main/standalone.ts",
|
|
||||||
"src/preload/index.ts",
|
|
||||||
"src/renderer/main.tsx",
|
|
||||||
"electron.vite.config.ts",
|
|
||||||
"docker/vite.standalone.config.ts"
|
|
||||||
],
|
|
||||||
"project": ["src/**/*.{ts,tsx}!"],
|
|
||||||
"ignore": ["tsconfig*.json"],
|
|
||||||
"paths": {
|
|
||||||
"@main/*": ["./src/main/*"],
|
|
||||||
"@renderer/*": ["./src/renderer/*"],
|
|
||||||
"@preload/*": ["./src/preload/*"],
|
|
||||||
"@shared/*": ["./src/shared/*"]
|
|
||||||
},
|
|
||||||
"ignoreBinaries": ["pkg"]
|
|
||||||
}
|
|
||||||
33
package.json
33
package.json
|
|
@ -252,5 +252,38 @@
|
||||||
"onlyBuiltDependencies": [
|
"onlyBuiltDependencies": [
|
||||||
"node-pty"
|
"node-pty"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"knip": {
|
||||||
|
"entry": [
|
||||||
|
"src/main/index.ts",
|
||||||
|
"src/main/standalone.ts",
|
||||||
|
"src/preload/index.ts",
|
||||||
|
"src/renderer/main.tsx",
|
||||||
|
"electron.vite.config.ts",
|
||||||
|
"docker/vite.standalone.config.ts"
|
||||||
|
],
|
||||||
|
"project": [
|
||||||
|
"src/**/*.{ts,tsx}!"
|
||||||
|
],
|
||||||
|
"ignore": [
|
||||||
|
"tsconfig*.json"
|
||||||
|
],
|
||||||
|
"paths": {
|
||||||
|
"@main/*": [
|
||||||
|
"./src/main/*"
|
||||||
|
],
|
||||||
|
"@renderer/*": [
|
||||||
|
"./src/renderer/*"
|
||||||
|
],
|
||||||
|
"@preload/*": [
|
||||||
|
"./src/preload/*"
|
||||||
|
],
|
||||||
|
"@shared/*": [
|
||||||
|
"./src/shared/*"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ignoreBinaries": [
|
||||||
|
"pkg"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue