Skip to content

Commit

Permalink
style: eslint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
schoero committed Oct 20, 2023
1 parent 8205209 commit dabbeee
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions docs/table/table.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Inserts a table to the document.
const table = {
rows: [
{
backgroundColor: "#ECF0F1",
columns: [
{
text: "Row 1 cell 1"
Expand All @@ -59,8 +60,7 @@ const table = {
}, {
text: "Row 1 cell 3"
}
],
backgroundColor: "#ECF0F1"
]
}, {
columns: [
{
Expand Down
4 changes: 2 additions & 2 deletions src/pdf/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export class Table {
* const table = {
* rows: [
* {
* backgroundColor: "#ECF0F1",
* columns: [
* {
* text: "Row 1 cell 1"
Expand All @@ -116,8 +117,7 @@ export class Table {
* }, {
* text: "Row 1 cell 3"
* }
* ],
* backgroundColor: "#ECF0F1"
* ]
* }, {
* columns: [
* {
Expand Down
2 changes: 1 addition & 1 deletion src/shared/validator.test.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit dabbeee

Please sign in to comment.