Skip to content

Commit

Permalink
fixup: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mcous committed Apr 5, 2024
1 parent 8a75bc9 commit f13415d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ env:
rules:
unicorn/prefer-top-level-await: "off"
jsdoc/tag-lines: "off"
"@typescript-eslint/restrict-template-expressions":
- "error"
- allowNumber: true

overrides:
- files: ["**/*.js"]
Expand Down
2 changes: 1 addition & 1 deletion bin/npm-publish.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env node
/* eslint-disable unicorn/prefer-module, unicorn/prefer-top-level-await */
/* eslint-disable @typescript-eslint/use-unknown-in-catch-callback-variable, unicorn/prefer-module, unicorn/prefer-top-level-await */
"use strict";

const process = require("node:process");
Expand Down
4 changes: 2 additions & 2 deletions dist/main.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/npm/call-npm-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ async function execNpm(
env: { ...process.env, ...environment },
});

npm.stdout.on("data", (data) => (stdout += data));
npm.stderr.on("data", (data) => (stderr += data));
npm.stdout.on("data", (data: string) => (stdout += data));
npm.stderr.on("data", (data: string) => (stderr += data));
npm.on("close", (code) => {
logger?.debug?.(`Received stdout: ${stdout}`);
logger?.debug?.(`Received stderr: ${stderr}`);
Expand Down

0 comments on commit f13415d

Please sign in to comment.