diff --git a/package.json b/package.json index 66c86650..c61eba06 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "devDependencies": { "husky": "^9.0.0", "lint-staged": "^15.0.0", - "prettier": "^3.0.0" + "prettier": "^3.2.0" }, "resolutions": { "eslint-plugin-import": "npm:eslint-plugin-i@^2.28.0" diff --git a/packages/react-calendar/package.json b/packages/react-calendar/package.json index c36a96be..70924f15 100644 --- a/packages/react-calendar/package.json +++ b/packages/react-calendar/package.json @@ -63,7 +63,7 @@ "eslint-config-wojtekmaj": "^0.11.0", "happy-dom": "^12.6.0", "nodemon": "^3.0.0", - "prettier": "^3.0.0", + "prettier": "^3.2.0", "react": "^18.2.0", "react-dom": "^18.2.0", "rimraf": "^3.0.0", diff --git a/packages/react-calendar/src/Calendar.tsx b/packages/react-calendar/src/Calendar.tsx index eec48ddf..137cb3bf 100644 --- a/packages/react-calendar/src/Calendar.tsx +++ b/packages/react-calendar/src/Calendar.tsx @@ -676,8 +676,8 @@ const Calendar = forwardRef(function Calendar(props: CalendarProps, ref) { Array.isArray(defaultValue) ? (defaultValue.map((el) => (el !== null ? toDate(el) : null)) as Range) : defaultValue !== null && defaultValue !== undefined - ? toDate(defaultValue) - : null, + ? toDate(defaultValue) + : null, ); const [viewState, setViewState] = useState(defaultView); @@ -714,8 +714,8 @@ const Calendar = forwardRef(function Calendar(props: CalendarProps, ref) { return Array.isArray(rawValue) ? (rawValue.map((el) => (el !== null ? toDate(el) : null)) as Range) : rawValue !== null - ? toDate(rawValue) - : null; + ? toDate(rawValue) + : null; })(); const valueType = getValueType(maxDetail); diff --git a/test/package.json b/test/package.json index cc59ef4c..6ebb1483 100644 --- a/test/package.json +++ b/test/package.json @@ -30,7 +30,7 @@ "@vitejs/plugin-react": "^4.2.0", "eslint": "^8.56.0", "eslint-config-wojtekmaj": "^0.11.0", - "prettier": "^3.0.0", + "prettier": "^3.2.0", "typescript": "^5.4.2", "vite": "^5.0.0" } diff --git a/yarn.lock b/yarn.lock index db14b6e9..5c914e84 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3959,12 +3959,12 @@ __metadata: languageName: node linkType: hard -"prettier@npm:^3.0.0": - version: 3.0.3 - resolution: "prettier@npm:3.0.3" +"prettier@npm:^3.2.0": + version: 3.2.5 + resolution: "prettier@npm:3.2.5" bin: prettier: bin/prettier.cjs - checksum: 10c0/f950887bc03c5b970d8c6dd129364acfbbc61e7b46aec5d5ce17f4adf6404e2ef43072c98b51c4786e0eaca949b307d362a773fd47502862d754b5a328fa2b26 + checksum: 10c0/ea327f37a7d46f2324a34ad35292af2ad4c4c3c3355da07313339d7e554320f66f65f91e856add8530157a733c6c4a897dc41b577056be5c24c40f739f5ee8c6 languageName: node linkType: hard @@ -4052,7 +4052,7 @@ __metadata: dependencies: husky: "npm:^9.0.0" lint-staged: "npm:^15.0.0" - prettier: "npm:^3.0.0" + prettier: "npm:^3.2.0" languageName: unknown linkType: soft @@ -4073,7 +4073,7 @@ __metadata: get-user-locale: "npm:^2.2.1" happy-dom: "npm:^12.6.0" nodemon: "npm:^3.0.0" - prettier: "npm:^3.0.0" + prettier: "npm:^3.2.0" prop-types: "npm:^15.6.0" react: "npm:^18.2.0" react-dom: "npm:^18.2.0" @@ -4738,7 +4738,7 @@ __metadata: eslint: "npm:^8.56.0" eslint-config-wojtekmaj: "npm:^0.11.0" get-user-locale: "npm:^2.2.1" - prettier: "npm:^3.0.0" + prettier: "npm:^3.2.0" react: "npm:^18.2.0" react-calendar: "workspace:packages/react-calendar" react-dom: "npm:^18.2.0"