Skip to content

Commit d7d86b2

Browse files
authored
Eslint and CI fix (#177)
* test * fix eslint errors and warning * update node version for CI * fix prettier formatting
1 parent 3632ee6 commit d7d86b2

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

.eslintignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ dist
33
jest.config.js
44
.eslintrc.js
55
babel.config.js
6-
scripts
6+
scripts
7+
test-tarball/
8+
docs-site/
9+
examples/

.eslintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ module.exports = {
1515
sourceType: "module",
1616
},
1717
plugins: ["react", "@typescript-eslint"],
18+
settings: {
19+
react: {
20+
version: "detect",
21+
},
22+
},
1823
rules: {
1924
"react/no-unescaped-entities": 0,
2025
"@typescript-eslint/no-explicit-any": 0,

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
node-version: [20.x]
18+
node-version: [22.x]
1919
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2020

2121
steps:

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ See https://github.com/parallax/jsPDF/security/advisories/GHSA-9964-cph5-966m fo
66

77
- update jspdf to 4, cypress to 15 and use alternative image comparison for e2e (#175) (24fe10e)
88
- Bump js-yaml from 4.1.0 to 4.1.1 (#171) (ba1326c)
9-
- update release notes script and changelog (c80acd2)
9+
- update release notes script and changelog (c80acd2)
1010

1111

1212
# 2.0.3 (November 25, 2025)

cypress.config.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ export default defineConfig({
1212
setupNodeEvents(on) {
1313
on("task", {
1414
async compareFile(filename: string): Promise<ComparisonResult> {
15-
const actualPath = path.join(process.cwd(), "cypress", "downloads", filename);
15+
const actualPath = path.join(
16+
process.cwd(),
17+
"cypress",
18+
"downloads",
19+
filename
20+
);
1621
const snapshotDir = path.join(process.cwd(), "cypress", "baseline");
1722

1823
try {
@@ -40,7 +45,9 @@ export default defineConfig({
4045
} catch (error) {
4146
return {
4247
status: "failed",
43-
message: `PDF comparison error: ${error instanceof Error ? error.message : String(error)}`,
48+
message: `PDF comparison error: ${
49+
error instanceof Error ? error.message : String(error)
50+
}`,
4451
};
4552
}
4653
},

0 commit comments

Comments
 (0)