From 335377e25060bbd3f7d470bd4bcf3e80e056cd90 Mon Sep 17 00:00:00 2001 From: sct Date: Wed, 9 Dec 2020 04:26:06 +0000 Subject: [PATCH] chore(deps-dev): upgrade prettier to v2.2.1 --- .github/ISSUE_TEMPLATE/bug_report.md | 18 ++++++++++-------- .github/ISSUE_TEMPLATE/feature_request.md | 1 - .github/lock.yml | 1 - overseerr-api.yml | 2 +- package.json | 2 +- src/components/Discover/index.tsx | 18 ++++++++++++------ src/components/RequestCard/index.tsx | 8 +++++--- yarn.lock | 8 ++++---- 8 files changed, 33 insertions(+), 25 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index f3d5c415..5ad98142 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -4,7 +4,6 @@ about: Create a report to help us improve title: '' labels: bug assignees: '' - --- **Describe the bug** @@ -12,6 +11,7 @@ A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: + 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' @@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen. If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - - OS: [e.g. iOS] - - Browser [e.g. chrome, safari] - - Version [e.g. 22] + +- OS: [e.g. iOS] +- Browser [e.g. chrome, safari] +- Version [e.g. 22] **Smartphone (please complete the following information):** - - Device: [e.g. iPhone6] - - OS: [e.g. iOS8.1] - - Browser [e.g. stock browser, safari] - - Version [e.g. 22] + +- Device: [e.g. iPhone6] +- OS: [e.g. iOS8.1] +- Browser [e.g. stock browser, safari] +- Version [e.g. 22] **Additional context** Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 11fc491e..5f0a04ce 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -4,7 +4,6 @@ about: Suggest an idea for this project title: '' labels: enhancement assignees: '' - --- **Is your feature request related to a problem? Please describe.** diff --git a/.github/lock.yml b/.github/lock.yml index c7a4828c..03a53fea 100644 --- a/.github/lock.yml +++ b/.github/lock.yml @@ -22,7 +22,6 @@ lockComment: > # Assign `resolved` as the reason for locking. Set to `false` to disable setLockReason: true - # Limit to only `issues` or `pulls` # only: issues diff --git a/overseerr-api.yml b/overseerr-api.yml index d3fa089a..b16efc27 100644 --- a/overseerr-api.yml +++ b/overseerr-api.yml @@ -2391,7 +2391,7 @@ paths: crew: type: array items: - $ref: "#/components/schemas/CreditCrew" + $ref: '#/components/schemas/CreditCrew' id: type: number /media: diff --git a/package.json b/package.json index 9b10ffec..26920a50 100644 --- a/package.json +++ b/package.json @@ -104,7 +104,7 @@ "nodemon": "^2.0.6", "postcss": "^7", "postcss-preset-env": "^6.7.0", - "prettier": "^2.1.2", + "prettier": "^2.2.1", "semantic-release": "^17.3.0", "semantic-release-docker": "^2.2.0", "tailwindcss": "npm:@tailwindcss/postcss7-compat", diff --git a/src/components/Discover/index.tsx b/src/components/Discover/index.tsx index 38ec079b..093ab845 100644 --- a/src/components/Discover/index.tsx +++ b/src/components/Discover/index.tsx @@ -57,9 +57,12 @@ const Discover: React.FC = () => { `/api/v1/discover/tv?language=${locale}` ); - const { data: movieUpcomingData, error: movieUpcomingError } = useSWR< - MovieDiscoverResult - >(`/api/v1/discover/movies/upcoming?language=${locale}`); + const { + data: movieUpcomingData, + error: movieUpcomingError, + } = useSWR( + `/api/v1/discover/movies/upcoming?language=${locale}` + ); const { data: trendingData, error: trendingError } = useSWR( `/api/v1/discover/trending?language=${locale}` @@ -69,9 +72,12 @@ const Discover: React.FC = () => { '/api/v1/media?filter=available&take=20&sort=modified' ); - const { data: requests, error: requestError } = useSWR< - RequestResultsResponse - >('/api/v1/request?filter=unavailable&take=10&sort=modified&skip=0'); + const { + data: requests, + error: requestError, + } = useSWR( + '/api/v1/request?filter=unavailable&take=10&sort=modified&skip=0' + ); return ( <> diff --git a/src/components/RequestCard/index.tsx b/src/components/RequestCard/index.tsx index a3bc520d..d842e128 100644 --- a/src/components/RequestCard/index.tsx +++ b/src/components/RequestCard/index.tsx @@ -54,9 +54,11 @@ const RequestCard: React.FC = ({ request }) => { const { data: title, error } = useSWR( inView ? `${url}?language=${locale}` : null ); - const { data: requestData, error: requestError, revalidate } = useSWR< - MediaRequest - >(`/api/v1/request/${request.id}`, { + const { + data: requestData, + error: requestError, + revalidate, + } = useSWR(`/api/v1/request/${request.id}`, { initialData: request, }); diff --git a/yarn.lock b/yarn.lock index d6c06e80..cd690b79 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10758,10 +10758,10 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.1.2.tgz#3050700dae2e4c8b67c4c3f666cdb8af405e1ce5" - integrity sha512-16c7K+x4qVlJg9rEbXl7HEGmQyZlG4R9AgP+oHKRMsMsuk8s+ATStlf1NpDqyBI1HpVyfjLOeMhH2LvuNvV5Vg== +prettier@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5" + integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q== pretty-hrtime@^1.0.3: version "1.0.3"