Skip to content

Commit

Permalink
chore(deps-dev): bump prettier from 2.2.1 to 2.3.0 (#114)
Browse files Browse the repository at this point in the history
* chore(deps-dev): bump prettier from 2.2.1 to 2.3.0

Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@2.2.1...2.3.0)

Signed-off-by: dependabot[bot] <[email protected]>

* chore: format with prettier

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ari Perkkiö <[email protected]>
  • Loading branch information
dependabot[bot] and AriPerkkio authored May 26, 2021
1 parent 9d64d43 commit 1ff09f3
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 16 deletions.
5 changes: 2 additions & 3 deletions lib/ui/components/Results.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ export default function Results(): JSX.Element {
);

const comparisonResults = ResultsStore.getComparisonResults();
const formattedComparisonResults = formatComparisonResults(
comparisonResults
);
const formattedComparisonResults =
formatComparisonResults(comparisonResults);

const items: string[] = [
...formattedComparisonResults,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"lint-staged": "^11.0.0",
"node-pty": "^0.10.0",
"nodemon": "^2.0.4",
"prettier": "2.2.1",
"prettier": "2.3.0",
"rimraf": "^3.0.2",
"strip-ansi": "^6.0.0",
"ts-jest": "^26.4.4",
Expand Down
5 changes: 2 additions & 3 deletions repositories/scripts/fetch-libraries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,8 @@ const retryFetch = async (url: string) => {
* minimize reqests. API_KEY is filtered out of cached requests.
*/
const cachedFetch = async (url: string): Promise<DependentRepository[]> => {
const cache = getCache<{ [key: string]: DependentRepository[] }>(
QUERY_CACHE
);
const cache =
getCache<{ [key: string]: DependentRepository[] }>(QUERY_CACHE);
const cacheUrl = url.replace(API_KEY, '<API_KEY>');

if (cache[cacheUrl]) {
Expand Down
4 changes: 2 additions & 2 deletions test/unit/file-client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ function getCacheLocation() {

jest.resetModuleRegistry();
jest.isolateModules(() => {
location = require('../../lib/file-client/file-constants')
.CACHE_LOCATION;
location =
require('../../lib/file-client/file-constants').CACHE_LOCATION;
});

return location;
Expand Down
4 changes: 1 addition & 3 deletions test/unit/repository-client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ describe('repository-client', () => {
onPullFailure: jest.fn(),
});

expect(
SimpleGit().clone
).toHaveBeenCalledWith(
expect(SimpleGit().clone).toHaveBeenCalledWith(
'https://github.com/mock-user/mock-repository.git',
`${EXPECTED_CACHE}/${repository}`,
{ '--depth': 1 }
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5210,10 +5210,10 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"

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==
prettier@2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.0.tgz#b6a5bf1284026ae640f17f7ff5658a7567fc0d18"
integrity sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w==

pretty-format@^26.0.0, pretty-format@^26.6.2:
version "26.6.2"
Expand Down

0 comments on commit 1ff09f3

Please sign in to comment.