Skip to content

Commit 6f56b62

Browse files
committed
chore(config): add editorconfig and adjust ts configs
1 parent 5f15063 commit 6f56b62

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

.editorconfig

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true

src/server/ormconfig.json

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"name": "development",
32
"type": "mysql",
43
"host": "localhost",
54
"port": 3306,
@@ -8,17 +7,17 @@
87
"database": "microfrontends",
98
"synchronize": true,
109
"entities": [
11-
"src/entity/*.ts"
10+
"api/entities/*.ts"
1211
],
1312
"subscribers": [
14-
"src/subscriber/*.ts"
13+
"api/subscribers/*.ts"
1514
],
1615
"migrations": [
17-
"src/migration/*.ts"
16+
"api/migrations/*.ts"
1817
],
1918
"cli": {
20-
"entitiesDir": "src/entity",
21-
"migrationsDir": "src/migration",
22-
"subscribersDir": "src/subscriber"
19+
"entitiesDir": "api/entities",
20+
"migrationsDir": "api/migrations",
21+
"subscribersDir": "api/subscribers"
2322
}
2423
}

src/server/tsconfig.json

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"noImplicitAny": true,
88
"emitDecoratorMetadata": true,
99
"experimentalDecorators": true,
10+
"module": "commonjs",
1011
"moduleResolution": "node",
1112
"target": "es6",
1213
"lib": [
@@ -22,5 +23,8 @@
2223
},
2324
"exclude": [
2425
"node_modules"
26+
],
27+
"include": [
28+
"./**/*"
2529
]
2630
}

0 commit comments

Comments
 (0)