-
Notifications
You must be signed in to change notification settings - Fork 0
/
changes
102 lines (102 loc) · 5.9 KB
/
changes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
diff --git a/.eslintrc.json b/.eslintrc.json
index fadefba..56d9f14 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -1,29 +1,4 @@
{
- "env": {
- "node": true
- },
- "extends": [
- "airbnb",
- "plugin:prettier/recommended",
- "plugin:@typescript-eslint/recommended",
- "plugin:@typescript-eslint/eslint-recommended",
- "plugin:import/recommended",
- "plugin:import/typescript"
- ],
- "plugins": ["@typescript-eslint"],
- "parser": "@typescript-eslint/parser",
- "parserOptions": {
- "ecmaVersion": "latest",
- "sourceType": "module"
- },
- "ignorePatterns": ["dist", "node_modules"],
- "rules": {
- "import/extensions": ["error", "ignorePackages", { "js": "never", "ts": "never" }],
- "prettier/prettier": ["error", { "parser": "typescript" }]
- },
- "settings": {
- "import/parsers": {
- "@typescript-eslint/parser": [".ts"]
- }
- }
+ "root": true,
+ "extends": ["@guarapi/eslint-config-guarapi"]
}
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 091d8f7..61b0a77 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -21,7 +21,7 @@
}
],
"editor.codeActionsOnSave": {
- "source.fixAll.eslint": true
+ "source.fixAll.eslint": "explicit"
},
"editor.formatOnSave": true,
"eslint.format.enable": true
diff --git a/package.json b/package.json
index 3e4b225..e55c610 100644
--- a/package.json
+++ b/package.json
@@ -21,33 +21,28 @@
"dev": "nodemon",
"prebuild": "npm run clean",
"build": "swc src -d dist",
- "lint": "eslint ./src"
+ "lint": "eslint ./src",
+ "types": "tsc --noEmit"
},
"dependencies": {
"express": "^4.18.2"
},
"devDependencies": {
- "@swc/cli": "^0.1.62",
- "@swc/core": "^1.3.76",
- "@swc/register": "^0.1.10",
- "@types/express": "^4.17.17",
- "@types/node": "^20.4.10",
- "@typescript-eslint/eslint-plugin": "^6.4.0",
- "@typescript-eslint/parser": "^6.4.0",
- "chokidar": "^3.5.3",
- "eslint": "^8.47.0",
- "eslint-config-airbnb": "^19.0.4",
- "eslint-config-prettier": "^9.0.0",
- "eslint-import-resolver-typescript": "^3.6.0",
- "eslint-plugin-import": "^2.28.0",
- "eslint-plugin-prettier": "^5.0.0",
- "nodemon": "^3.0.1",
- "prettier": "^3.0.2",
- "rimraf": "^5.0.1",
- "typescript": "^5.1.6"
+ "@swc/cli": "^0.1.65",
+ "@swc/core": "^1.4.0",
+ "@swc-node/register": "^1.8.0",
+ "@guarapi/eslint-config-guarapi": "^0.1.2",
+ "@types/express": "^4.17.21",
+ "@types/node": "^20.11.17",
+ "eslint": "^8.56.0",
+ "nodemon": "^3.0.3",
+ "prettier": "^3.2.5",
+ "rimraf": "^5.0.5",
+ "typescript": "^5.3.3"
},
+ "prettier": "@guarapi/eslint-config-guarapi/prettierrc.js",
"nodemonConfig": {
"ext": "*.ts",
- "exec": "node -r @swc/register src/index.ts"
+ "exec": "node -r @swc-node/register src/index.ts"
}
}