From 4bf8106141776381454970b4f34a894648e1d41b Mon Sep 17 00:00:00 2001 From: JF-Cozy Date: Mon, 16 Dec 2024 11:30:46 +0100 Subject: [PATCH] refactor: Remove lint warning on watch For react-pdf, we use the same version as cozy-viewer --- package.json | 3 ++- .../search/components/BarSearchAutosuggest.jsx | 1 + src/modules/views/Search/SearchView.jsx | 1 + yarn.lock | 12 ++++++------ 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 8915435808..2a5d0d51ff 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "cozy-scripts": "^8.3.0", "cozy-sharing": "^16.17.0", "cozy-stack-client": "^51.6.0", - "cozy-ui": "^114.0.0", + "cozy-ui": "^114.0.1", "cozy-viewer": "^9.0.1", "date-fns": "1.30.1", "diacritics": "1.3.0", @@ -117,6 +117,7 @@ "react-hot-loader": "4.13.1", "react-inspector": "5.1.1", "react-measure": "2.5.0", + "react-pdf": "^5.7.2", "react-redux": "7.2.0", "react-remove-scroll": "2.4.4", "react-router-dom": "6.14.2", diff --git a/src/modules/search/components/BarSearchAutosuggest.jsx b/src/modules/search/components/BarSearchAutosuggest.jsx index 0bd898fdee..40c7db23a7 100644 --- a/src/modules/search/components/BarSearchAutosuggest.jsx +++ b/src/modules/search/components/BarSearchAutosuggest.jsx @@ -67,6 +67,7 @@ const BarSearchAutosuggest = ({ t }) => { window.location.assign(url) } } else { + // eslint-disable-next-line no-console console.error(`openSuggestion (${suggestion.name}) could not be executed`) } cleanSearch() diff --git a/src/modules/views/Search/SearchView.jsx b/src/modules/views/Search/SearchView.jsx index f5ee3c58d8..3828f954fd 100644 --- a/src/modules/views/Search/SearchView.jsx +++ b/src/modules/views/Search/SearchView.jsx @@ -73,6 +73,7 @@ const SearchView = () => { window.location.assign(url) } } else { + // eslint-disable-next-line no-console console.error( `openSuggestion (${suggestion.name}) could not be executed` ) diff --git a/yarn.lock b/yarn.lock index 25effe0a0a..f982cd1ca3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6617,10 +6617,10 @@ cozy-tsconfig@1.2.0: resolved "https://registry.yarnpkg.com/cozy-tsconfig/-/cozy-tsconfig-1.2.0.tgz#17e61f960f139fae4d26cbac2254b9ab632b269e" integrity sha512-TRHnY9goF3FzVlUbP7BcHxuN2XAA4AmppT4fHHZmTKaSwYTByVR1Al+riFMDbce94kJZ1wzl9WNLWQuqzGZ6Cw== -cozy-ui@^114.0.0: - version "114.0.0" - resolved "https://registry.yarnpkg.com/cozy-ui/-/cozy-ui-114.0.0.tgz#2eafa3fe2dacf94049d21e7afaa1f52be1737db7" - integrity sha512-ndpGSVS6IQy3U3vtaDFxqpVDyXOG4bV9vyuRzj0XRZN4MbeATtkqSTYnV+O1RkZVIJ3GvcFT8ohgoVMGSxbL7w== +cozy-ui@^114.0.1: + version "114.0.1" + resolved "https://registry.yarnpkg.com/cozy-ui/-/cozy-ui-114.0.1.tgz#c3321fbb3272868d50d32dae1792a5668d06bb7f" + integrity sha512-uq0SnZrUPMTya5NiRHxo9qVU/8s59RpO4M1S5w6oglChO+CZSavNi69FNi/bYaBtzrULEXyeXt1QDdRMgRP7gg== dependencies: "@babel/runtime" "^7.3.4" "@material-ui/core" "4.12.3" @@ -12964,9 +12964,9 @@ msgpack5@^4.0.2: readable-stream "^2.3.6" safe-buffer "^5.1.2" -"mui-bottom-sheet@https://github.com/cozy/mui-bottom-sheet.git#v1.0.9": +"mui-bottom-sheet@git+https://github.com/cozy/mui-bottom-sheet.git#v1.0.9": version "1.0.8" - resolved "https://github.com/cozy/mui-bottom-sheet.git#3dc4c2a245ab39079bc2f73546bccf80847be14c" + resolved "git+https://github.com/cozy/mui-bottom-sheet.git#3dc4c2a245ab39079bc2f73546bccf80847be14c" dependencies: "@juggle/resize-observer" "^3.1.3" jest-environment-jsdom-sixteen "^1.0.3"