@leo-h/create-nodejs-app 1.0.17 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json.js +1 -1
- package/package.json +17 -17
- package/templates/clean/eslint.config.mjs +25 -0
- package/templates/clean/package.json +15 -14
- package/templates/clean/pnpm-lock.yaml +711 -487
- package/templates/fastify/eslint.config.mjs +25 -0
- package/templates/fastify/package.json +21 -20
- package/templates/fastify/pnpm-lock.yaml +759 -509
- package/templates/nest/eslint.config.mjs +25 -0
- package/templates/nest/package.json +24 -23
- package/templates/nest/pnpm-lock.yaml +1066 -1063
- package/templates/clean/.eslintignore +0 -2
- package/templates/clean/.eslintrc.json +0 -22
- package/templates/fastify/.eslintignore +0 -2
- package/templates/fastify/.eslintrc.json +0 -22
- package/templates/nest/.eslintignore +0 -2
- package/templates/nest/.eslintrc.json +0 -22
@@ -0,0 +1,25 @@
|
|
1
|
+
import eslint from "@eslint/js";
|
2
|
+
import vitestEslint from "@vitest/eslint-plugin";
|
3
|
+
import prettierEslint from "eslint-config-prettier";
|
4
|
+
import globals from "globals";
|
5
|
+
import typescriptEslint from "typescript-eslint";
|
6
|
+
|
7
|
+
export default typescriptEslint.config(
|
8
|
+
{
|
9
|
+
ignores: ["dist"],
|
10
|
+
},
|
11
|
+
{
|
12
|
+
extends: [
|
13
|
+
eslint.configs.recommended,
|
14
|
+
...typescriptEslint.configs.recommended,
|
15
|
+
prettierEslint,
|
16
|
+
vitestEslint.configs.recommended,
|
17
|
+
],
|
18
|
+
languageOptions: {
|
19
|
+
globals: { ...globals.node },
|
20
|
+
},
|
21
|
+
rules: {
|
22
|
+
"@typescript-eslint/no-unused-vars": "warn",
|
23
|
+
},
|
24
|
+
},
|
25
|
+
);
|
@@ -7,7 +7,7 @@
|
|
7
7
|
"start": "node ./dist/infra/server.js",
|
8
8
|
"start:dev": "tsx watch ./src/infra/server.ts",
|
9
9
|
"typecheck": "tsc --noEmit",
|
10
|
-
"lint": "eslint . --
|
10
|
+
"lint": "eslint . --max-warnings 0 --cache",
|
11
11
|
"lint:fix": "pnpm lint --fix",
|
12
12
|
"format": "prettier . --write --cache",
|
13
13
|
"test:unit": "vitest run",
|
@@ -20,38 +20,39 @@
|
|
20
20
|
"build": "unbuild"
|
21
21
|
},
|
22
22
|
"dependencies": {
|
23
|
-
"@fastify/cookie": "9.
|
23
|
+
"@fastify/cookie": "9.4.0",
|
24
24
|
"@fastify/cors": "9.0.1",
|
25
|
-
"@fastify/swagger": "8.
|
26
|
-
"@fastify/swagger-ui": "3.
|
27
|
-
"dotenv": "16.4.
|
28
|
-
"fastify": "4.
|
25
|
+
"@fastify/swagger": "8.15.0",
|
26
|
+
"@fastify/swagger-ui": "3.1.0",
|
27
|
+
"dotenv": "16.4.7",
|
28
|
+
"fastify": "4.29.0",
|
29
29
|
"fastify-multer": "2.0.3",
|
30
30
|
"fastify-type-provider-zod": "1.2.0",
|
31
31
|
"mime-types": "2.1.35",
|
32
32
|
"pretty-bytes": "5.6.0",
|
33
|
-
"zod": "3.
|
34
|
-
"zod-validation-error": "3.
|
33
|
+
"zod": "3.24.1",
|
34
|
+
"zod-validation-error": "3.4.0"
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
37
|
+
"@eslint/js": "9.17.0",
|
37
38
|
"@faker-js/faker": "8.4.1",
|
38
39
|
"@types/mime-types": "2.1.4",
|
39
|
-
"@types/node": "20.
|
40
|
+
"@types/node": "20.17.10",
|
40
41
|
"@types/supertest": "6.0.2",
|
41
|
-
"@typescript-eslint/eslint-plugin": "7.10.0",
|
42
|
-
"@typescript-eslint/parser": "7.10.0",
|
43
42
|
"@vitest/coverage-v8": "1.6.0",
|
44
|
-
"eslint": "
|
43
|
+
"@vitest/eslint-plugin": "1.1.16",
|
44
|
+
"eslint": "9.17.0",
|
45
45
|
"eslint-config-prettier": "9.1.0",
|
46
|
-
"
|
47
|
-
"husky": "9.
|
48
|
-
"lint-staged": "15.2.
|
49
|
-
"prettier": "3.2
|
50
|
-
"rimraf": "5.0.
|
46
|
+
"globals": "15.13.0",
|
47
|
+
"husky": "9.1.7",
|
48
|
+
"lint-staged": "15.2.11",
|
49
|
+
"prettier": "3.4.2",
|
50
|
+
"rimraf": "5.0.10",
|
51
51
|
"supertest": "7.0.0",
|
52
|
-
"tsx": "4.
|
53
|
-
"type-fest": "4.
|
54
|
-
"typescript": "5.
|
52
|
+
"tsx": "4.19.2",
|
53
|
+
"type-fest": "4.30.2",
|
54
|
+
"typescript": "5.7.2",
|
55
|
+
"typescript-eslint": "8.18.1",
|
55
56
|
"unbuild": "2.0.0",
|
56
57
|
"vite-tsconfig-paths": "4.3.2",
|
57
58
|
"vitest": "1.6.0"
|