diff --git a/package.json b/package.json index 844ae980..d5bf28e3 100644 --- a/package.json +++ b/package.json @@ -118,7 +118,7 @@ "husky": "^9.1.5", "import-sort-style-module": "^6.0.0", "lint-staged": "^15.2.9", - "prettier": "^3.4.1", + "prettier": "^3.4.2", "prettier-plugin-import-sort": "^0.0.7", "prettier-plugin-organize-imports": "^4.0.0", "prettier-plugin-packagejson": "^2.5.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 756226cd..347d52c1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -269,7 +269,7 @@ importers: version: 6.10.2(eslint@9.16.0) eslint-plugin-prettier: specifier: ^5.2.1 - version: 5.2.1(@types/eslint@9.6.1)(eslint-config-prettier@9.1.0(eslint@9.16.0))(eslint@9.16.0)(prettier@3.4.1) + version: 5.2.1(@types/eslint@9.6.1)(eslint-config-prettier@9.1.0(eslint@9.16.0))(eslint@9.16.0)(prettier@3.4.2) globals: specifier: ^15.9.0 version: 15.13.0 @@ -283,17 +283,17 @@ importers: specifier: ^15.2.9 version: 15.2.10 prettier: - specifier: ^3.4.1 - version: 3.4.1 + specifier: ^3.4.2 + version: 3.4.2 prettier-plugin-import-sort: specifier: ^0.0.7 - version: 0.0.7(prettier@3.4.1) + version: 0.0.7(prettier@3.4.2) prettier-plugin-organize-imports: specifier: ^4.0.0 - version: 4.1.0(prettier@3.4.1)(typescript@5.6.3) + version: 4.1.0(prettier@3.4.2)(typescript@5.6.3) prettier-plugin-packagejson: specifier: ^2.5.2 - version: 2.5.6(prettier@3.4.1) + version: 2.5.6(prettier@3.4.2) qs: specifier: ^6.13.0 version: 6.13.1 @@ -3773,8 +3773,8 @@ packages: prettier: optional: true - prettier@3.4.1: - resolution: {integrity: sha512-G+YdqtITVZmOJje6QkXQWzl3fSfMxFwm1tjTyo9exhkmWSqC4Yhd1+lug++IlR2mvRVAxEDDWYkQdeSztajqgg==} + prettier@3.4.2: + resolution: {integrity: sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==} engines: {node: '>=14'} hasBin: true @@ -6943,10 +6943,10 @@ snapshots: safe-regex-test: 1.0.3 string.prototype.includes: 2.0.1 - eslint-plugin-prettier@5.2.1(@types/eslint@9.6.1)(eslint-config-prettier@9.1.0(eslint@9.16.0))(eslint@9.16.0)(prettier@3.4.1): + eslint-plugin-prettier@5.2.1(@types/eslint@9.6.1)(eslint-config-prettier@9.1.0(eslint@9.16.0))(eslint@9.16.0)(prettier@3.4.2): dependencies: eslint: 9.16.0 - prettier: 3.4.1 + prettier: 3.4.2 prettier-linter-helpers: 1.0.0 synckit: 0.9.2 optionalDependencies: @@ -8309,29 +8309,29 @@ snapshots: dependencies: fast-diff: 1.3.0 - prettier-plugin-import-sort@0.0.7(prettier@3.4.1): + prettier-plugin-import-sort@0.0.7(prettier@3.4.2): dependencies: import-sort: 6.0.0 import-sort-config: 6.0.0 import-sort-parser-babylon: 6.0.0 import-sort-parser-typescript: 6.0.0 - prettier: 3.4.1 + prettier: 3.4.2 transitivePeerDependencies: - supports-color - prettier-plugin-organize-imports@4.1.0(prettier@3.4.1)(typescript@5.6.3): + prettier-plugin-organize-imports@4.1.0(prettier@3.4.2)(typescript@5.6.3): dependencies: - prettier: 3.4.1 + prettier: 3.4.2 typescript: 5.6.3 - prettier-plugin-packagejson@2.5.6(prettier@3.4.1): + prettier-plugin-packagejson@2.5.6(prettier@3.4.2): dependencies: sort-package-json: 2.12.0 synckit: 0.9.2 optionalDependencies: - prettier: 3.4.1 + prettier: 3.4.2 - prettier@3.4.1: {} + prettier@3.4.2: {} pretty-bytes@5.6.0: {} diff --git a/src/shared/components/community/community.tsx b/src/shared/components/community/community.tsx index 9be12c5c..276f9175 100644 --- a/src/shared/components/community/community.tsx +++ b/src/shared/components/community/community.tsx @@ -176,8 +176,8 @@ function getDataTypeFromQuery(type?: string): DataType { } function getSortTypeFromQuery( - type: string | undefined, fallback: PostSortType, + type?: string, ): PostSortType { return type ? (type as PostSortType) : fallback; }