Skip to content

Commit b17e122

Browse files
committed
搭建项目,初始化提交
0 parents  commit b17e122

26 files changed

+10809
-0
lines changed

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
# 编码格式
5+
charset = utf-8
6+
# 缩进方式
7+
indent_style = space
8+
# 缩进空格数
9+
indent_size = 2
10+
# 定义换行符
11+
end_of_line = lf
12+
# 文件是否以空白行结尾
13+
insert_final_newline = true
14+
# 是否去处行首行尾的空白字符
15+
trim_trailing_whitespace = true

.eslintignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
dist
3+
out
4+
.gitignore

.eslintrc.js

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
browser: true,
5+
commonjs: true,
6+
es6: true,
7+
node: true
8+
},
9+
parser: '@typescript-eslint/parser',
10+
parserOptions: {
11+
sourceType: 'module',
12+
ecmaVersion: 2021
13+
},
14+
plugins: ['@typescript-eslint'],
15+
extends: [
16+
'eslint:recommended',
17+
'plugin:@typescript-eslint/recommended',
18+
'plugin:@typescript-eslint/eslint-recommended',
19+
'plugin:prettier/recommended'
20+
],
21+
rules: {
22+
'@typescript-eslint/ban-ts-comment': ['error', { 'ts-ignore': 'allow-with-description' }],
23+
'@typescript-eslint/explicit-function-return-type': 'off',
24+
'@typescript-eslint/explicit-module-boundary-types': 'off',
25+
'@typescript-eslint/no-empty-function': ['error', { allow: ['arrowFunctions'] }],
26+
'@typescript-eslint/no-explicit-any': 'warn',
27+
'@typescript-eslint/no-non-null-assertion': 'off',
28+
'@typescript-eslint/no-var-requires': 'off'
29+
},
30+
overrides: [
31+
{
32+
files: ['*.js'],
33+
rules: {
34+
'@typescript-eslint/explicit-function-return-type': 'off'
35+
}
36+
}
37+
]
38+
};

.gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
node_modules
2+
__pycache__
3+
readme/todo.md
4+
out/
5+
eSearch
6+
.VSCodeCounter/
7+
ocr/ppocr
8+
.DS_Store
9+
build
10+
preload_config

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/

.prettierignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
out
2+
dist
3+
pnpm-lock.yaml
4+
LICENSE.md
5+
tsconfig.json
6+
tsconfig.*.json

.prettierrc.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
singleQuote: true
2+
semi: true
3+
printWidth: 100
4+
trailingComma: none

.vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["dbaeumer.vscode-eslint"]
3+
}

.vscode/launch.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Debug Main Process",
6+
"type": "node",
7+
"request": "launch",
8+
"cwd": "${workspaceRoot}",
9+
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite",
10+
"windows": {
11+
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite.cmd"
12+
},
13+
"runtimeArgs": ["--sourcemap"]
14+
}
15+
]
16+
}

.vscode/settings.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"[typescript]": {
3+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
4+
},
5+
"[javascript]": {
6+
"editor.defaultFormatter": "esbenp.prettier-vscode"
7+
},
8+
"[json]": {
9+
"editor.defaultFormatter": "esbenp.prettier-vscode"
10+
}
11+
}

0 commit comments

Comments
 (0)