diff --git a/.eslintrc.json b/.eslintrc.json index c41d4dc..63bf1f3 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -7,6 +7,12 @@ "@typescript-eslint/no-unnecessary-condition": "off" } }, + { + "files": ["examples/**/*.js", "examples/**/*.ts"], + "rules": { + "no-undef": "off" + } + }, { "files": ["vite.config.ts", "vite.config.bundle.ts"], "parser": "@typescript-eslint/parser", diff --git a/docs/table/table.md b/docs/table/table.md index 3442c32..9090665 100644 --- a/docs/table/table.md +++ b/docs/table/table.md @@ -51,6 +51,7 @@ Inserts a table to the document. const table = { rows: [ { + backgroundColor: "#ECF0F1", columns: [ { text: "Row 1 cell 1" @@ -59,8 +60,7 @@ const table = { }, { text: "Row 1 cell 3" } - ], - backgroundColor: "#ECF0F1" + ] }, { columns: [ { diff --git a/src/pdf/table.ts b/src/pdf/table.ts index c2222a8..f0306d0 100644 --- a/src/pdf/table.ts +++ b/src/pdf/table.ts @@ -108,6 +108,7 @@ export class Table { * const table = { * rows: [ * { + * backgroundColor: "#ECF0F1", * columns: [ * { * text: "Row 1 cell 1" @@ -116,8 +117,7 @@ export class Table { * }, { * text: "Row 1 cell 3" * } - * ], - * backgroundColor: "#ECF0F1" + * ] * }, { * columns: [ * { diff --git a/src/shared/validator.test.ts b/src/shared/validator.test.ts index 3380c86..89ea215 100644 --- a/src/shared/validator.test.ts +++ b/src/shared/validator.test.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from "vitest"; -import { cleanData } from "swissqrbill:shared:cleaner"; import { resolveMessageParams, ValidationErrors } from "swissqrbill:errors"; +import { cleanData } from "swissqrbill:shared:cleaner"; import { validateData } from "swissqrbill:shared:validator"; import { additionalInformationInvalidType,