-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
116 lines (116 loc) · 2.95 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
{
"name": "tdd-and-function-composition-examples",
"version": "1.0.0",
"description": "Example of a simple DI strategy",
"main": "dist/index.js",
"scripts": {
"build": "tsc",
"prestart": "npm run build",
"start": "REVIEW_DATABASE_USER=postgres REVIEW_DATABASE_PASSWORD=postgres REVIEW_DATABASE_HOST=localhost REVIEW_DATABASE_DATABASE=postgres REVIEW_DATABASE_PORT=5432 node .",
"lint": "eslint . --ext .ts,.js --ignore-pattern node_modules",
"test:unit": "jest --forceExit --no-cache --detectOpenHandles --testPathIgnorePatterns=.*integration.*\\.spec\\.ts",
"test:integration": "jest --forceExit --no-cache --detectOpenHandles --testPathPattern=.*integration.*\\.spec\\.ts",
"test:all": "npm run test:unit && npm run test:integration"
},
"author": "Daniel Somerfield",
"devDependencies": {
"@types/express": "^4.17.17",
"@types/jest": "^29.4.0",
"@types/lodash": "^4.14.194",
"@types/pg": "^8.6.6",
"@types/supertest": "^2.0.12",
"axios": "^1.3.4",
"jest": "^29.5.0",
"nodemon": "^2.0.21",
"supertest": "^6.3.3",
"ts-jest": "^29.0.5"
},
"dependencies": {
"@typescript-eslint/parser": "^5.48.0",
"eslint": "^8.31.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-prettier": "^4.2.1",
"express": "^4.18.2",
"lodash": "^4.17.21",
"pg": "^8.10.0",
"testcontainers": "^9.3.0"
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"extends": [
"prettier",
"plugin:import/typescript"
],
"plugins": [
"prettier",
"@typescript-eslint"
],
"rules": {
"prettier/prettier": [
"error"
],
"no-else-return": "off",
"import/prefer-default-export": "off",
"no-restricted-syntax": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": false
}
],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
},
"env": {
"jest": true
},
"ignorePatterns": [
"dist"
]
},
"prettier": {
"arrowParens": "avoid",
"bracketSpacing": true,
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 80,
"proseWrap": "preserve",
"requirePragma": false,
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false
},
"nodemonConfig": {
"restartable": "rs",
"ignore": [
".git",
"node_modules/**/node_modules"
],
"verbose": true,
"execMap": {
"ts": "node --require ts-node/register"
},
"watch": [
"src/",
"public/"
],
"env": {
"NODE_ENV": "development"
},
"ext": "js,json,ts,yaml"
}
}