Skip to content

Commit 5cf3b15

Browse files
vibe coding
1 parent 741586b commit 5cf3b15

9 files changed

Lines changed: 1651 additions & 0 deletions

File tree

.gitignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/releases
6+
/key.pem
7+
*.sqlite
8+
9+
# dependencies
10+
/node_modules
11+
12+
# IDEs and editors
13+
/.idea
14+
.project
15+
*.log
16+
.classpath
17+
.c9/
18+
*.launch
19+
.settings/
20+
*.sublime-workspace
21+
22+
# IDE - VSCode
23+
.vscode/*
24+
!.vscode/settings.json
25+
!.vscode/tasks.json
26+
!.vscode/launch.json
27+
!.vscode/extensions.json
28+
29+
# System Files
30+
.DS_Store
31+
Thumbs.db

.prettierrc.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
singleQuote: true
2+
trailingComma: all
3+
tabWidth: 4
4+
endOfLine: lf
5+
printWidth: 120
6+
7+
overrides:
8+
- files: ['*.yaml', '*.yml']
9+
options:
10+
tabWidth: 2

eslint.config.mjs

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
import js from '@eslint/js';
2+
import ts from 'typescript-eslint';
3+
import prettier from 'eslint-config-prettier';
4+
5+
export default [
6+
{
7+
ignores: ['dist', 'releases', '*.config.{js,mjs,cjs}', '**/.*.\\{js,ts}', 'node_modules/'],
8+
},
9+
js.configs.recommended,
10+
...ts.configs.recommendedTypeChecked,
11+
...ts.configs.stylisticTypeChecked,
12+
{
13+
languageOptions: {
14+
parserOptions: {
15+
projectService: true,
16+
},
17+
},
18+
rules: {
19+
'@typescript-eslint/consistent-type-definitions': 0,
20+
'@typescript-eslint/array-type': [
21+
1,
22+
{
23+
default: 'array-simple',
24+
},
25+
],
26+
'@typescript-eslint/explicit-function-return-type': [
27+
2,
28+
{
29+
allowExpressions: true,
30+
},
31+
],
32+
'@typescript-eslint/no-extraneous-class': [
33+
1,
34+
{
35+
allowWithDecorator: true,
36+
allowStaticOnly: true,
37+
},
38+
],
39+
'@typescript-eslint/parameter-properties': [
40+
1,
41+
{
42+
allow: ['protected readonly', 'private readonly', 'public readonly', 'readonly'],
43+
},
44+
],
45+
'no-unused-vars': [0],
46+
'@typescript-eslint/no-unused-vars': [
47+
1,
48+
{
49+
varsIgnorePattern: '^_',
50+
argsIgnorePattern: '^_',
51+
},
52+
],
53+
'@typescript-eslint/prefer-for-of': [1],
54+
'@typescript-eslint/prefer-function-type': [1],
55+
'@typescript-eslint/prefer-nullish-coalescing': [1],
56+
'@typescript-eslint/prefer-optional-chain': [1],
57+
'no-void': [
58+
1,
59+
{
60+
allowAsStatement: true,
61+
},
62+
],
63+
eqeqeq: [1, 'smart'],
64+
},
65+
},
66+
prettier,
67+
];

package.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "ehsyringe",
3+
"displayName": "EhSyringe",
4+
"version": "3.1.1",
5+
"description": "E 站注射器,将中文翻译注入到 E 站体内。",
6+
"author": "EhTagTranslation",
7+
"repository": {
8+
"type": "git",
9+
"url": "git+https://github.com/EhTagTranslation/EhTagDb.git"
10+
},
11+
"engines": {
12+
"node": "^22.14.0"
13+
},
14+
"packageManager": "pnpm@10.9.0",
15+
"license": "GPL-3.0-only",
16+
"bugs": "https://github.com/EhTagTranslation/EhTagDb/issues",
17+
"homepage": "https://github.com/EhTagTranslation/EhTagDb",
18+
"type": "module",
19+
"main": "src/main.ts",
20+
"scripts": {
21+
"start": "node --experimental-transform-types .",
22+
"lint": "eslint",
23+
"format": "prettier --ignore-path .gitignore --write ."
24+
},
25+
"devDependencies": {
26+
"@types/better-sqlite3": "^7.6.13",
27+
"eslint": "^9.25.0",
28+
"eslint-config-prettier": "^10.1.2",
29+
"prettier": "^3.5.3",
30+
"typescript": "^5.8.3",
31+
"typescript-eslint": "^8.30.1"
32+
},
33+
"dependencies": {
34+
"better-sqlite3": "^11.9.1"
35+
}
36+
}

0 commit comments

Comments
 (0)