Skip to content

Commit d5634a4

Browse files
renovate[bot]renovate-botLekoArts
authored
chore(deps): update formatting & linting (#33378)
Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: LekoArts <[email protected]>
1 parent eb70b46 commit d5634a4

File tree

4 files changed

+19
-20
lines changed

4 files changed

+19
-20
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"eslint-plugin-import": "^2.24.2",
4444
"eslint-plugin-jsx-a11y": "^6.4.1",
4545
"eslint-plugin-prettier": "^4.0.0",
46-
"eslint-plugin-react": "^7.25.1",
46+
"eslint-plugin-react": "^7.26.1",
4747
"fs-extra": "^10.0.0",
4848
"glob": "^7.1.7",
4949
"husky": "3.1.0",
@@ -63,7 +63,7 @@
6363
"npm-packlist": "^2.1.5",
6464
"npm-run-all": "4.1.5",
6565
"plop": "^1.9.1",
66-
"prettier": "2.3.2",
66+
"prettier": "2.4.1",
6767
"remark": "^13.0.0",
6868
"remark-cli": "^9.0.0",
6969
"remark-frontmatter": "^3.0.0",

packages/gatsby-worker/src/index.ts

+9-10
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,17 @@ type WrapReturnInArray<MaybeFunction> = MaybeFunction extends (
3838
? (...a: Parameters<MaybeFunction>) => Array<ReturnType<MaybeFunction>>
3939
: never
4040

41-
export type CreateWorkerPoolType<ExposedFunctions> = WorkerPool &
42-
{
43-
[FunctionName in keyof ExposedFunctions]: EnsureFunctionReturnsAPromise<
44-
ExposedFunctions[FunctionName]
41+
export type CreateWorkerPoolType<ExposedFunctions> = WorkerPool & {
42+
[FunctionName in keyof ExposedFunctions]: EnsureFunctionReturnsAPromise<
43+
ExposedFunctions[FunctionName]
44+
>
45+
} & {
46+
all: {
47+
[FunctionName in keyof ExposedFunctions]: WrapReturnInArray<
48+
EnsureFunctionReturnsAPromise<ExposedFunctions[FunctionName]>
4549
>
46-
} & {
47-
all: {
48-
[FunctionName in keyof ExposedFunctions]: WrapReturnInArray<
49-
EnsureFunctionReturnsAPromise<ExposedFunctions[FunctionName]>
50-
>
51-
}
5250
}
51+
}
5352

5453
const childWrapperPath = require.resolve(`./child`)
5554

packages/gatsby/src/bootstrap/load-plugins/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ import {
2222
} from "./types"
2323
import { IPluginRefObject, PluginRef } from "gatsby-plugin-utils/dist/types"
2424

25-
const getAPI = (
26-
api: { [exportType in ExportType]: { [api: string]: boolean } }
27-
): ICurrentAPIs =>
25+
const getAPI = (api: {
26+
[exportType in ExportType]: { [api: string]: boolean }
27+
}): ICurrentAPIs =>
2828
_.keys(api).reduce<Partial<ICurrentAPIs>>((merged, key) => {
2929
merged[key] = _.keys(api[key])
3030
return merged

yarn.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -10366,7 +10366,7 @@ eslint-plugin-react-hooks@^4.2.0:
1036610366
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.2.0.tgz#8c229c268d468956334c943bb45fc860280f5556"
1036710367
integrity sha512-623WEiZJqxR7VdxFCKLI6d6LLpwJkGPYKODnkH3D7WpOG5KM8yWueBd8TLsNAetEJNF5iJmolaAKO3F8yzyVBQ==
1036810368

10369-
eslint-plugin-react@^7.25.1, eslint-plugin-react@^7.26.1:
10369+
eslint-plugin-react@^7.26.1:
1037010370
version "7.26.1"
1037110371
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.26.1.tgz#41bcfe3e39e6a5ac040971c1af94437c80daa40e"
1037210372
integrity sha512-Lug0+NOFXeOE+ORZ5pbsh6mSKjBKXDXItUD2sQoT+5Yl0eoT82DqnXeTMfUare4QVCn9QwXbfzO/dBLjLXwVjQ==
@@ -20175,10 +20175,10 @@ prettier-linter-helpers@^1.0.0:
2017520175
dependencies:
2017620176
fast-diff "^1.1.2"
2017720177

20178-
prettier@2.3.2, prettier@^2.3.2:
20179-
version "2.3.2"
20180-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.2.tgz#ef280a05ec253712e486233db5c6f23441e7342d"
20181-
integrity sha512-lnJzDfJ66zkMy58OL5/NY5zp70S7Nz6KqcKkXYzn2tMVrNxvbqaBpg7H3qHaLxCJ5lNMsGuM8+ohS7cZrthdLQ==
20178+
prettier@2.4.1, prettier@^2.3.2:
20179+
version "2.4.1"
20180+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.4.1.tgz#671e11c89c14a4cfc876ce564106c4a6726c9f5c"
20181+
integrity sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==
2018220182

2018320183
pretty-bytes@^3.0.0:
2018420184
version "3.0.1"

0 commit comments

Comments
 (0)