-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
116 lines (116 loc) · 2.61 KB
/
package.json
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
"version": "1.0.0",
"name": "nodejs-express",
"description": "Nodejs express template",
"repository": "[email protected]:isalikov/nodejs-express.git",
"author": "Iakov Salikov <[email protected]>",
"license": "MIT",
"scripts": {
"dev": "nodemon ./src/main.ts",
"dist": "tsc",
"lint": "eslint .",
"prepare": "husky install",
"start": "node ./src/main.js"
},
"lint-staged": {
"*.ts": [
"prettier --write",
"eslint --fix"
]
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node"
},
"eslintConfig": {
"plugins": [
"import",
"prettier"
],
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"import/prefer-default-export": [
"off"
],
"import/extensions": [
"off"
],
"import/order": [
"error",
{
"groups": [
"external",
[
"builtin",
"internal",
"unknown",
"parent",
"sibling",
"index",
"object",
"type"
]
],
"pathGroupsExcludedImportTypes": [],
"alphabetize": {
"order": "asc"
},
"newlines-between": "always-and-inside-groups"
}
]
}
},
"eslintIgnore": [
"dist",
"node_modules"
],
"prettier": {
"semi": false,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 120,
"tabWidth": 4
},
"dependencies": {
"body-parser": "^1.20.2",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"express-useragent": "^1.0.15",
"http-status": "^1.7.3",
"morgan": "^1.10.0"
},
"devDependencies": {
"@types/body-parser": "^1.19.5",
"@types/express": "^4.17.21",
"@types/express-useragent": "^1.0.5",
"@types/morgan": "^1.9.9",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"eslint": "^8.56.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"nodemon": "^3.0.2",
"prettier": "^3.2.2",
"ts-node": "^10.9.2",
"tsc": "^2.0.4",
"typescript": "^5.3.3"
}
}