Skip to content

Commit b47b782

Browse files
committed
- bump up version to 4.0.6
- update dependencies - remove test phase from CI script - lint and format all files
1 parent ec77d13 commit b47b782

File tree

23 files changed

+65
-69
lines changed

23 files changed

+65
-69
lines changed

.github/workflows/lint-test-build.yml .github/workflows/lint-build.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Lint, Test and Build
1+
name: Lint and Build
22

33
on:
44
push:
@@ -35,7 +35,6 @@ jobs:
3535
pnpm exec nx-cloud record -- pnpm exec nx format:check
3636
parallel-commands-on-agents: |
3737
pnpm exec nx affected --target=lint --parallel=3
38-
pnpm exec nx affected --target=test --parallel=3 --ci --code-coverage
3938
pnpm exec nx affected --target=build --parallel=3
4039
4140
agents:

apps/artboard/tsconfig.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
"esModuleInterop": false,
66
"allowSyntheticDefaultImports": true,
77
"strict": true,
8-
"types": ["vite/client"],
8+
"types": ["vite/client"]
99
},
1010
"files": [],
1111
"include": [],
1212
"references": [
1313
{
14-
"path": "./tsconfig.app.json",
15-
},
14+
"path": "./tsconfig.app.json"
15+
}
1616
],
17-
"extends": "../../tsconfig.base.json",
17+
"extends": "../../tsconfig.base.json"
1818
}

apps/client/src/pages/dashboard/resumes/_dialogs/import.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ type ValidationResult =
7272
export const ImportDialog = () => {
7373
const { toast } = useToast();
7474
const { isOpen, close } = useDialog("import");
75-
const { importResume, loading, error: importError } = useImportResume();
75+
const { importResume, loading } = useImportResume();
7676

7777
const [validationResult, setValidationResult] = useState<ValidationResult | null>(null);
7878

@@ -182,11 +182,11 @@ export const ImportDialog = () => {
182182
}
183183

184184
close();
185-
} catch (error: any) {
185+
} catch (error: unknown) {
186186
toast({
187187
variant: "error",
188188
title: t`Oops, the server returned an error.`,
189-
description: error["message"],
189+
description: error instanceof Error ? error.message : undefined,
190190
});
191191
}
192192
};

apps/client/src/pages/dashboard/settings/_dialogs/two-factor.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export const TwoFactorDialog = () => {
178178
<FormItem>
179179
<FormControl>
180180
<div className="space-y-4">
181-
<QRCodeSVG value={field.value!} size={256} className="mx-auto" />
181+
<QRCodeSVG value={field.value ?? ""} size={256} className="mx-auto" />
182182
<Input readOnly {...field} className="opacity-75" />
183183
</div>
184184
</FormControl>

apps/client/src/providers/locale.tsx

+2-6
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,8 @@ export const LocaleProvider = ({ children }: Props) => {
1818
const userLocale = useAuthStore((state) => state.user?.locale);
1919

2020
useEffect(() => {
21-
const detectedLocale = detect(
22-
fromUrl("locale"),
23-
fromStorage("locale"),
24-
userLocale,
25-
defaultLocale,
26-
)!;
21+
const detectedLocale =
22+
detect(fromUrl("locale"), fromStorage("locale"), userLocale, defaultLocale) ?? defaultLocale;
2723

2824
// Activate the locale only if it's supported
2925
if (languages.some((lang) => lang.locale === detectedLocale)) {

apps/client/src/services/resume/statistics.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const findResumeStatisticsById = async (data: { id: string }) => {
1010
return response.data;
1111
};
1212

13-
export const useResumeStatistics = (id: string, enabled: boolean = false) => {
13+
export const useResumeStatistics = (id: string, enabled = false) => {
1414
const {
1515
error,
1616
isPending: loading,

apps/client/src/vite-env.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
declare const appVersion: string;
44

5+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
56
interface ImportMetaEnv {}
67

78
interface ImportMeta {

apps/client/tsconfig.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
"esModuleInterop": false,
66
"allowSyntheticDefaultImports": true,
77
"strict": true,
8-
"types": ["vite/client", "vitest"],
8+
"types": ["vite/client", "vitest"]
99
},
1010
"files": [],
1111
"include": [],
1212
"references": [
1313
{
14-
"path": "./tsconfig.app.json",
14+
"path": "./tsconfig.app.json"
1515
},
1616
{
17-
"path": "./tsconfig.spec.json",
18-
},
17+
"path": "./tsconfig.spec.json"
18+
}
1919
],
20-
"extends": "../../tsconfig.base.json",
20+
"extends": "../../tsconfig.base.json"
2121
}

apps/server/src/auth/auth.controller.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class AuthController {
4848
private readonly utils: UtilsService,
4949
) {}
5050

51-
private async exchangeToken(id: string, email: string, isTwoFactorAuth: boolean = false) {
51+
private async exchangeToken(id: string, email: string, isTwoFactorAuth = false) {
5252
try {
5353
const payload = payloadSchema.parse({ id, isTwoFactorAuth });
5454

@@ -67,8 +67,8 @@ export class AuthController {
6767
private async handleAuthenticationResponse(
6868
user: UserWithSecrets,
6969
response: Response,
70-
isTwoFactorAuth: boolean = false,
71-
redirect: boolean = false,
70+
isTwoFactorAuth = false,
71+
redirect = false,
7272
) {
7373
let status = "authenticated";
7474

apps/server/tsconfig.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"include": [],
55
"references": [
66
{
7-
"path": "./tsconfig.app.json",
7+
"path": "./tsconfig.app.json"
88
},
99
{
10-
"path": "./tsconfig.spec.json",
11-
},
10+
"path": "./tsconfig.spec.json"
11+
}
1212
],
1313
"compilerOptions": {
14-
"esModuleInterop": true,
15-
},
14+
"esModuleInterop": true
15+
}
1616
}

libs/dto/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"access": "public"
1010
},
1111
"dependencies": {
12-
"@swc/helpers": "~0.5.2",
12+
"@swc/helpers": "~0.5.6",
1313
"nestjs-zod": "^3.0.0",
1414
"@reactive-resume/utils": "*",
1515
"@reactive-resume/schema": "*"

libs/dto/tsconfig.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
"noImplicitOverride": true,
88
"noPropertyAccessFromIndexSignature": true,
99
"noImplicitReturns": true,
10-
"noFallthroughCasesInSwitch": true,
10+
"noFallthroughCasesInSwitch": true
1111
},
1212
"files": [],
1313
"include": [],
1414
"references": [
1515
{
16-
"path": "./tsconfig.lib.json",
16+
"path": "./tsconfig.lib.json"
1717
},
1818
{
19-
"path": "./tsconfig.spec.json",
20-
},
21-
],
19+
"path": "./tsconfig.spec.json"
20+
}
21+
]
2222
}

libs/hooks/tsconfig.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
"esModuleInterop": false,
66
"allowSyntheticDefaultImports": true,
77
"strict": true,
8-
"types": ["vite/client", "vitest"],
8+
"types": ["vite/client", "vitest"]
99
},
1010
"files": [],
1111
"include": [],
1212
"references": [
1313
{
14-
"path": "./tsconfig.lib.json",
14+
"path": "./tsconfig.lib.json"
1515
},
1616
{
17-
"path": "./tsconfig.spec.json",
18-
},
17+
"path": "./tsconfig.spec.json"
18+
}
1919
],
20-
"extends": "../../tsconfig.base.json",
20+
"extends": "../../tsconfig.base.json"
2121
}

libs/parser/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"access": "public"
1010
},
1111
"dependencies": {
12-
"@swc/helpers": "~0.5.2",
12+
"@swc/helpers": "~0.5.6",
1313
"@reactive-resume/schema": "*",
1414
"nestjs-zod": "^3.0.0",
1515
"zod": "^3.22.4",

libs/parser/tsconfig.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
"noImplicitOverride": true,
88
"noPropertyAccessFromIndexSignature": true,
99
"noImplicitReturns": true,
10-
"noFallthroughCasesInSwitch": true,
10+
"noFallthroughCasesInSwitch": true
1111
},
1212
"files": [],
1313
"include": [],
1414
"references": [
1515
{
16-
"path": "./tsconfig.lib.json",
16+
"path": "./tsconfig.lib.json"
1717
},
1818
{
19-
"path": "./tsconfig.spec.json",
20-
},
21-
],
19+
"path": "./tsconfig.spec.json"
20+
}
21+
]
2222
}

libs/schema/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"access": "public"
1010
},
1111
"dependencies": {
12-
"@swc/helpers": "~0.5.2",
12+
"@swc/helpers": "~0.5.6",
1313
"zod": "^3.22.4",
1414
"@reactive-resume/utils": "*",
1515
"@paralleldrive/cuid2": "^2.2.2"

libs/schema/tsconfig.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
"noImplicitOverride": true,
88
"noPropertyAccessFromIndexSignature": true,
99
"noImplicitReturns": true,
10-
"noFallthroughCasesInSwitch": true,
10+
"noFallthroughCasesInSwitch": true
1111
},
1212
"files": [],
1313
"include": [],
1414
"references": [
1515
{
16-
"path": "./tsconfig.lib.json",
16+
"path": "./tsconfig.lib.json"
1717
},
1818
{
19-
"path": "./tsconfig.spec.json",
20-
},
21-
],
19+
"path": "./tsconfig.spec.json"
20+
}
21+
]
2222
}

libs/ui/src/components/command.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const Command = forwardRef<
1919

2020
Command.displayName = CommandPrimitive.displayName;
2121

22-
interface CommandDialogProps extends DialogProps {}
22+
type CommandDialogProps = DialogProps;
2323

2424
export const CommandDialog = ({ children, ...props }: CommandDialogProps) => (
2525
<Dialog {...props}>

libs/ui/tsconfig.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
"esModuleInterop": false,
66
"allowSyntheticDefaultImports": true,
77
"strict": true,
8-
"types": ["vite/client", "vitest"],
8+
"types": ["vite/client", "vitest"]
99
},
1010
"files": [],
1111
"include": [],
1212
"references": [
1313
{
14-
"path": "./tsconfig.lib.json",
14+
"path": "./tsconfig.lib.json"
1515
},
1616
{
17-
"path": "./tsconfig.spec.json",
18-
},
17+
"path": "./tsconfig.spec.json"
18+
}
1919
],
20-
"extends": "../../tsconfig.base.json",
20+
"extends": "../../tsconfig.base.json"
2121
}

libs/utils/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
"access": "public"
1010
},
1111
"dependencies": {
12-
"@swc/helpers": "~0.5.2",
12+
"@swc/helpers": "~0.5.6",
1313
"dayjs": "^1.11.10",
14-
"clsx": "^2.0.0",
15-
"tailwind-merge": "^2.0.0",
14+
"clsx": "^2.1.0",
15+
"tailwind-merge": "^2.2.1",
1616
"papaparse": "^5.4.1",
1717
"unique-names-generator": "^4.7.1"
1818
}

libs/utils/src/namespaces/color.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const hexToRgb = (hex: string, alpha: number = 0) => {
1+
export const hexToRgb = (hex: string, alpha = 0) => {
22
const r = parseInt(hex.slice(1, 3), 16),
33
g = parseInt(hex.slice(3, 5), 16),
44
b = parseInt(hex.slice(5, 7), 16);

libs/utils/tsconfig.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
"noImplicitOverride": true,
99
"noPropertyAccessFromIndexSignature": true,
1010
"noImplicitReturns": true,
11-
"noFallthroughCasesInSwitch": true,
11+
"noFallthroughCasesInSwitch": true
1212
},
1313
"files": [],
1414
"include": [],
1515
"references": [
1616
{
17-
"path": "./tsconfig.lib.json",
17+
"path": "./tsconfig.lib.json"
1818
},
1919
{
20-
"path": "./tsconfig.spec.json",
21-
},
22-
],
20+
"path": "./tsconfig.spec.json"
21+
}
22+
]
2323
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@reactive-resume/source",
33
"description": "A free and open-source resume builder that simplifies the process of creating, updating, and sharing your resume.",
4-
"version": "4.0.5",
4+
"version": "4.0.6",
55
"license": "MIT",
66
"private": true,
77
"author": {

0 commit comments

Comments
 (0)