Skip to content

Commit 4338eec

Browse files
committed
WIP
1 parent 7d9d137 commit 4338eec

File tree

10 files changed

+22
-19
lines changed

10 files changed

+22
-19
lines changed

examples/with-nestjs/.eslintrc.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// This configuration only applies to the package manager root.
22
/** @type {import("eslint").Linter.Config} */
33
module.exports = {
4-
ignorePatterns: ['apps/**', 'packages/**'],
5-
extends: ['@repo/eslint-config/library.js'],
6-
parser: '@typescript-eslint/parser',
4+
ignorePatterns: ["apps/**", "packages/**"],
5+
extends: ["@repo/eslint-config/library.js"],
6+
parser: "@typescript-eslint/parser",
77
parserOptions: {
88
project: true,
99
},

examples/with-nestjs/apps/web/app/globals.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
:root {
22
--max-width: 1100px;
33
--border-radius: 12px;
4-
--font-mono: ui-monospace, Menlo, Monaco, 'Cascadia Mono', 'Segoe UI Mono',
5-
'Roboto Mono', 'Oxygen Mono', 'Ubuntu Monospace', 'Source Code Pro',
6-
'Fira Mono', 'Droid Sans Mono', 'Courier New', monospace;
4+
--font-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono",
5+
"Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro",
6+
"Fira Mono", "Droid Sans Mono", "Courier New", monospace;
77

88
--foreground-rgb: 255, 255, 255;
99
--background-start-rgb: 0, 0, 0;

examples/with-nestjs/apps/web/app/page.module.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@
9595
border-radius: var(--border-radius);
9696
background: rgba(var(--card-rgb), 0);
9797
border: 1px solid rgba(var(--card-border-rgb), 0);
98-
transition: background 200ms, border 200ms;
98+
transition:
99+
background 200ms,
100+
border 200ms;
99101
}
100102

101103
.card span {
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/** @type {import("eslint").Linter.Config} */
22
module.exports = {
33
root: true,
4-
extends: ['@repo/eslint-config/react-internal.js'],
5-
parser: '@typescript-eslint/parser',
4+
extends: ["@repo/eslint-config/react-internal.js"],
5+
parser: "@typescript-eslint/parser",
66
parserOptions: {
7-
project: './tsconfig.lint.json',
7+
project: "./tsconfig.lint.json",
88
tsconfigRootDir: __dirname,
99
},
1010
};
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
packages:
2-
- 'apps/*'
3-
- 'packages/*'
2+
- "apps/*"
3+
- "packages/*"

examples/with-typeorm/apps/docs/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
module.exports = {
33
transpilePackages: ["@repo/ui"],
44
experimental: {
5-
serverComponentsExternalPackages: ["typeorm", "@medusajs/medusa"],
5+
serverComponentsExternalPackages: ["typeorm","@medusajs/medusa"],
66
},
77
};

examples/with-typeorm/apps/web/app/api/todo/[id]/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export async function PUT(_: Request, { params }: { params: { id: string } }) {
2121

2222
export async function DELETE(
2323
_: Request,
24-
{ params }: { params: { id: string } }
24+
{ params }: { params: { id: string } },
2525
) {
2626
const id = params.id;
2727
const result = await todoService.deleteById(+id);

examples/with-typeorm/packages/typeorm-service/.eslintrc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ module.exports = {
88
parserOptions: {
99
project: true,
1010
ecmaVersion: 2020,
11+
1112
},
1213
rules: {
1314
"@typescript-eslint/no-explicit-any": "off",
14-
"no-undef": "off",
15-
"no-unused-vars": "off",
15+
'no-undef': 'off',
16+
"no-unused-vars":'off',
1617
},
1718
overrides: [
1819
{

examples/with-typeorm/packages/typeorm-service/src/helper/di-container.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const ProxyForDatabaseInitialize = <T extends object>(obj: T): T => {
1414
const result = fn.apply(self, args);
1515
if (!AppDataSource.isInitialized && result instanceof Promise)
1616
return result.catch(() =>
17-
AppDataSource.initialize().then(() => fn.apply(self, args))
17+
AppDataSource.initialize().then(() => fn.apply(self, args)),
1818
);
1919
return result;
2020
},
@@ -33,7 +33,7 @@ export const inject = <T>(Target: Class<T>): T => {
3333
const dependencise: Class[] =
3434
Reflect.getMetadata("design:paramtypes", Target) || [];
3535
const args: unknown[] = dependencise.map(
36-
(C: Class) => Container.get(C) ?? inject(C)
36+
(C: Class) => Container.get(C) ?? inject(C),
3737
);
3838
const Component = new Target(...args);
3939
Container.set(Target, typeof use == "function" ? use(Component) : Component);

examples/with-typeorm/packages/typeorm-service/src/helper/reflect-factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const _has = (key: string, target: object): boolean =>
88
Reflect.hasMetadata(key, target);
99

1010
export const reflectFactory = <Value = unknown, Target extends object = object>(
11-
key: string
11+
key: string,
1212
) => ({
1313
get: (target: Target, defaultValue?: Value) =>
1414
_get<Value>(key, target) ?? defaultValue,

0 commit comments

Comments
 (0)