Skip to content

Commit 11b4443

Browse files
committed
fix: fix all the linting errors
1 parent 36a5b86 commit 11b4443

File tree

19 files changed

+56
-45
lines changed

19 files changed

+56
-45
lines changed

.eslintrc.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
{
22
"extends": "eslint-config-atomic",
3-
"ignorePatterns": ["dist/", "node_modules/", "dev/cpp_vcpkg_project"]
3+
"ignorePatterns": ["dist/", "node_modules/", "dev/cpp_vcpkg_project"],
4+
"rules": {
5+
"no-unused-vars": "off",
6+
"@typescript-eslint/no-unused-vars": [
7+
"warn",
8+
{
9+
"argsIgnorePattern": "^_",
10+
"varsIgnorePattern": "^_",
11+
"caughtErrorsIgnorePattern": "^_",
12+
"destructuredArrayIgnorePattern": "^_"
13+
}
14+
]
15+
}
416
}

dist/node12/setup-cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node12/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node16/setup-cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node16/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/ci-log/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"@actions/core": "^1.9.1",
15-
"@npmcli/ci-detect": "github:aminya/ci-detect#37fe40075bebec96794ba0a7c4a6d5c70cbea00d"
15+
"ci-info": "^3.8.0"
1616
},
1717
"keywords": [
1818
"log",

pnpm-lock.yaml

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

src/brew/brew.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { mkdirP } from "@actions/io"
77
import { readFileSync } from "fs"
88
import { addPath } from "../utils/env/addEnv"
99

10+
/* eslint-disable require-atomic-updates */
1011
let binDir: string | undefined
1112

1213
// eslint-disable-next-line @typescript-eslint/no-unused-vars

src/gcc/gcc.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { isUbuntu } from "../utils/env/isUbuntu"
1717
import { hasDnf } from "../utils/env/hasDnf"
1818
import { setupDnfPack } from "../utils/setup/setupDnfPack"
1919
import { pathExists } from "path-exists"
20+
import { ExecaReturnValue } from "execa"
2021

2122
interface MingwInfo {
2223
releaseName: string
@@ -109,7 +110,7 @@ export async function setupGcc(version: string, setupDir: string, arch: string)
109110
} else {
110111
info(`Install g++-multilib because gcc for ${arch} was requested`)
111112
if (isArch()) {
112-
setupPacmanPack("gcc-multilib", version)
113+
await setupPacmanPack("gcc-multilib", version)
113114
} else if (isUbuntu()) {
114115
await setupAptPack([{ name: "gcc-multilib", version, repositories: ["ppa:ubuntu-toolchain-r/test"] }])
115116
}
@@ -157,7 +158,7 @@ async function setupChocoMingw(version: string, arch: string): Promise<Installat
157158
}
158159

159160
async function activateGcc(version: string, binDir: string) {
160-
const promises: Promise<any>[] = []
161+
const promises: Promise<void | ExecaReturnValue<string>>[] = []
161162
// Setup gcc as the compiler
162163

163164
// TODO

src/kcov/kcov.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ async function buildKcov(file: string, dest: string) {
4444

4545
if (process.platform === "linux") {
4646
if (isArch()) {
47-
setupPacmanPack("libdwarf")
48-
setupPacmanPack("libcurl-openssl")
47+
await Promise.all([setupPacmanPack("libdwarf"), setupPacmanPack("libcurl-openssl")])
4948
} else if (hasDnf()) {
5049
setupDnfPack("libdwarf-devel")
5150
setupDnfPack("libcurl-devel")
@@ -97,7 +96,7 @@ export async function setupKcov(versionGiven: string, setupDir: string, arch: st
9796
if (installMethod === "binary" && version_number >= 39) {
9897
installationInfo = await setupBin("kcov", version, getDownloadKcovPackageInfo, setupDir, arch)
9998
if (isArch()) {
100-
setupPacmanPack("binutils")
99+
await setupPacmanPack("binutils")
101100
} else if (hasDnf()) {
102101
setupDnfPack("binutils")
103102
} else if (isUbuntu()) {

0 commit comments

Comments
 (0)