Skip to content

Commit 57d570f

Browse files
committed
fixup: fix deps and lints
1 parent 454f22d commit 57d570f

File tree

8 files changed

+45
-215
lines changed

8 files changed

+45
-215
lines changed

.eslintrc.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@ rules:
3131
jsdoc/tag-lines: "off"
3232
"@typescript-eslint/restrict-template-expressions":
3333
- "error"
34-
- allowNumber: true
34+
- allowAny: false
35+
allowBoolean: false
36+
allowNullish: false
37+
allowNumber: true
38+
allowRegExp: false
39+
allowNever: false
40+
"@typescript-eslint/no-unnecessary-type-parameters": "off"
3541

3642
overrides:
3743
- files: ["**/*.js"]

.github/dependabot.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@ updates:
1919
development:
2020
dependency-type: "development"
2121

22-
# TODO(mcous, 2024-07-06): update to ESLint v9 + flat config
2322
ignore:
23+
# TODO(mcous, 2024-07-06): update to ESLint v9 + flat config
2424
- dependency-name: "eslint"
2525
versions: [">=9"]
26+
# rimraf dropped support for ESLint v18
27+
- dependency-name: "rimraf"
28+
versions: [">=6"]
2629

2730
# Update GitHub Actions dependencies
2831
- package-ecosystem: "github-actions"

action.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable @typescript-eslint/no-floating-promises, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call */
1+
/* eslint-disable @typescript-eslint/no-floating-promises, @typescript-eslint/no-require-imports, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call */
22
"use strict";
33

44
const { main } = require("./dist/main.js");

bin/npm-publish.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env node
2-
/* eslint-disable @typescript-eslint/use-unknown-in-catch-callback-variable, unicorn/prefer-module, unicorn/prefer-top-level-await */
2+
/* eslint-disable @typescript-eslint/no-require-imports, @typescript-eslint/use-unknown-in-catch-callback-variable, unicorn/prefer-module, unicorn/prefer-top-level-await */
33
"use strict";
44

55
const process = require("node:process");

dist/main.js.map

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+28-207
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"eslint-plugin-unicorn": "^55.0.0",
7373
"prettier": "^3.0.3",
7474
"prettier-plugin-jsdoc": "^1.1.1",
75-
"rimraf": "^6.0.1",
75+
"rimraf": "^5.0.9",
7676
"typescript": "^5.2.2",
7777
"vitest": "^2.0.5",
7878
"vitest-when": "^0.4.0"

src/compare-and-publish/compare-and-publish.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export async function compareAndPublish(
6262
const isDryRun = options.dryRun.value;
6363
const comparison = compareVersions(version, viewCall.successData, options);
6464
const publishCall =
65-
comparison.type ?? isDryRun
65+
(comparison.type ?? isDryRun)
6666
? await callNpmCli(PUBLISH, publishArguments, cliOptions)
6767
: { successData: undefined, errorCode: undefined, error: undefined };
6868

0 commit comments

Comments
 (0)