fix: fix eslint warnings

This commit is contained in:
Amin Yahyaabadi 2022-01-22 17:41:18 -08:00
parent 01d80b8e02
commit d98deda888
6 changed files with 6 additions and 5 deletions

View File

@ -1,3 +1,4 @@
/* eslint-disable import/no-extraneous-dependencies */
const { minify } = require("terser")
const { readFileSync, writeFileSync } = require("fs")
const { join, dirname } = require("path")

2
dist/setup_cpp.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -5,7 +5,7 @@ import { getVersion } from "../../default_versions"
jest.setTimeout(3000000)
describe("setup-gcc", () => {
it("should setup gcc", async () => {
const version = getVersion("gcc", undefined) ?? "11"
const version = getVersion("gcc", undefined) || "11"
const installInfo = await setupGcc(version, "", process.arch)
let gpp = "g++"

View File

@ -3,5 +3,5 @@ export function isCI() {
}
export function isGitHubCI() {
return isCI() && process.env.GITHUB_ACTIONS == "true"
return isCI() && process.env.GITHUB_ACTIONS === "true"
}

View File

@ -8,7 +8,7 @@ import execa from "execa"
let hasChoco = false
/** A function that installs a package using choco */
export async function setupChocoPack(name: string, version?: string, args: string[] = []): Promise<InstallationInfo> {
export function setupChocoPack(name: string, version?: string, args: string[] = []): InstallationInfo {
if (!hasChoco || which.sync("choco", { nothrow: true }) === null) {
setupChocolatey("", "", process.arch)
hasChoco = true