Skip to content

Commit

Permalink
chore: linting and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed Jul 26, 2024
1 parent 71a5b2a commit d3eac14
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
11 changes: 9 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,19 @@
},
"fmt": {
"useTabs": true,
"exclude": [".venv", "src", "examples", "README.md", "CONTRIBUTING.md"]
"exclude": [
".venv",
"src",
"examples",
"README.md",
"CONTRIBUTING.md",
"dist"
]
},
"lint": {
"rules": {
"exclude": ["prefer-const"]
},
"exclude": [".venv", "src", "examples"]
"exclude": [".venv", "src", "examples", "dist"]
}
}
8 changes: 2 additions & 6 deletions lib/clients/DataTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,7 @@ export class DataTable extends MosaicClient {
.orderby(
this.#orderby
.filter((o) => o.order !== "unset")
.map((o) =>
o.order === "asc" ? asc(o.field) : desc(o.field)
),
.map((o) => o.order === "asc" ? asc(o.field) : desc(o.field)),
);
this.#sql.value = query.clone().toString();
return query
Expand Down Expand Up @@ -412,9 +410,7 @@ function thcol(
});

signals.effect(() => {
sortButton.style.visibility = buttonVisible.value
? "visible"
: "hidden";
sortButton.style.visibility = buttonVisible.value ? "visible" : "hidden";
});

signals.effect(() => {
Expand Down

0 comments on commit d3eac14

Please sign in to comment.