build: add ESLint to script/lint and containerize linting (closes #152)
This commit was merged in pull request #286.
This commit is contained in:
4
build.js
4
build.js
@@ -63,7 +63,7 @@ function getBuildInfo() {
|
||||
commitHash = execSync("git rev-parse --short HEAD", {
|
||||
encoding: "utf8",
|
||||
}).trim();
|
||||
} catch (_) {
|
||||
} catch {
|
||||
// not a git repo or git not available
|
||||
}
|
||||
let commitHashFull = "unknown";
|
||||
@@ -71,7 +71,7 @@ function getBuildInfo() {
|
||||
commitHashFull = execSync("git rev-parse HEAD", {
|
||||
encoding: "utf8",
|
||||
}).trim();
|
||||
} catch (_) {
|
||||
} catch {
|
||||
// not a git repo or git not available
|
||||
}
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user