Skip to content

Commit 65dc624

Browse files
dependabot[bot]Sergey Vilgelm
and
Sergey Vilgelm
authored
build(deps-dev): bump prettier from 1.19.1 to 2.0.5 (#52)
* build(deps-dev): bump prettier from 1.19.1 to 2.0.5 Bumps [prettier](https://github.com/prettier/prettier) from 1.19.1 to 2.0.5. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md) - [Commits](prettier/prettier@1.19.1...2.0.5) Signed-off-by: dependabot[bot] <[email protected]> * Fix prettier Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sergey Vilgelm <[email protected]>
1 parent 466abb7 commit 65dc624

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"eslint-plugin-import": "^2.22.0",
4747
"eslint-plugin-prettier": "^3.1.4",
4848
"eslint-plugin-simple-import-sort": "^5.0.2",
49-
"prettier": "^1.19.1",
49+
"prettier": "^2.0.5",
5050
"typescript": "^3.9.6"
5151
}
5252
}

src/cache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ function checksumFile(hashName: string, path: string): Promise<string> {
1010
return new Promise((resolve, reject) => {
1111
const hash = crypto.createHash(hashName)
1212
const stream = fs.createReadStream(path)
13-
stream.on("error", err => reject(err))
14-
stream.on("data", chunk => hash.update(chunk))
13+
stream.on("error", (err) => reject(err))
14+
stream.on("data", (chunk) => hash.update(chunk))
1515
stream.on("end", () => resolve(hash.digest("hex")))
1616
})
1717
}

src/run.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ async function runLint(lintPath: string, patchPath: string): Promise<void> {
125125
const userArgNames = new Set<string>()
126126
userArgs
127127
.split(/\s/)
128-
.map(arg => arg.split(`=`)[0])
129-
.filter(arg => arg.startsWith(`-`))
130-
.forEach(arg => {
128+
.map((arg) => arg.split(`=`)[0])
129+
.filter((arg) => arg.startsWith(`-`))
130+
.forEach((arg) => {
131131
userArgNames.add(arg.replace(`-`, ``))
132132
})
133133

src/version.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ export async function findLintVersion(): Promise<VersionConfig> {
118118
}
119119

120120
core.info(
121-
`Requested golangci-lint '${stringifyVersion(reqLintVersion)}', using '${versionConfig.TargetVersion}', calculation took ${Date.now() -
122-
startedAt}ms`
121+
`Requested golangci-lint '${stringifyVersion(reqLintVersion)}', using '${versionConfig.TargetVersion}', calculation took ${
122+
Date.now() - startedAt
123+
}ms`
123124
)
124125
return versionConfig
125126
}

0 commit comments

Comments
 (0)