Skip to content

Commit da217ac

Browse files
No Authortexodus
authored andcommitted
Apply lint & update lock file
Signed-off-by: Andrew Stein <[email protected]>
1 parent a67f121 commit da217ac

File tree

252 files changed

+7355
-9451
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

252 files changed

+7355
-9451
lines changed

examples/blocks/examples.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const LOCAL_EXAMPLES = [
3131
exports.LOCAL_EXAMPLES = LOCAL_EXAMPLES;
3232

3333
exports.get_examples = function get_examples(
34-
root = "https://perspective.finos.org/"
34+
root = "https://perspective.finos.org/",
3535
) {
3636
const standalone = [
3737
// {

examples/blocks/src/fractal/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function get_gui_params() {
9292
acc[x] = window[x].valueAsNumber;
9393
return acc;
9494
},
95-
{}
95+
{},
9696
);
9797
}
9898

@@ -152,6 +152,6 @@ window.iterations.addEventListener("input", set_runnable);
152152

153153
run.addEventListener(
154154
"click",
155-
make_run_click_callback(await perspective.worker(), {})
155+
make_run_click_callback(await perspective.worker(), {}),
156156
);
157157
run.dispatchEvent(new Event("click"));

examples/blocks/src/nypd/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ async function fetch_progress(url) {
6262
}
6363

6464
DARK_THEME = await fetch(
65-
"/node_modules/@finos/perspective-workspace/dist/css/pro-dark.css"
65+
"/node_modules/@finos/perspective-workspace/dist/css/pro-dark.css",
6666
).then((x) => x.text());
6767

6868
LIGHT_THEME = await fetch(
69-
"/node_modules/@finos/perspective-workspace/dist/css/pro.css"
69+
"/node_modules/@finos/perspective-workspace/dist/css/pro.css",
7070
).then((x) => x.text());
7171

7272
document.body.innerHTML = `
@@ -94,12 +94,12 @@ window.workspace.addEventListener(
9494
"workspace-new-view",
9595
({ detail: { widget } }) => {
9696
widget.viewer.setAttribute("theme", theme_style_node.dataset.theme);
97-
}
97+
},
9898
);
9999

100100
window.workspace.addTable(
101101
"ccrb",
102-
(async () => worker.table(await fetch_progress(DATA_URL)))()
102+
(async () => worker.table(await fetch_progress(DATA_URL)))(),
103103
// worker.table(await fetch_progress(DATA_URL))
104104
);
105105

examples/esbuild-example/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function build() {
3131

3232
fs.writeFileSync(
3333
path.join(__dirname, "dist/index.html"),
34-
fs.readFileSync(path.join(__dirname, "src/index.html")).toString()
34+
fs.readFileSync(path.join(__dirname, "src/index.html")).toString(),
3535
);
3636
}
3737

examples/esbuild-remote/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function build() {
3131

3232
fs.writeFileSync(
3333
path.join(__dirname, "dist/index.html"),
34-
fs.readFileSync(path.join(__dirname, "client/index.html")).toString()
34+
fs.readFileSync(path.join(__dirname, "client/index.html")).toString(),
3535
);
3636
}
3737

examples/react-example/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ await esbuild.build({
3434

3535
fs.writeFileSync(
3636
path.join(__dirname, "dist/index.html"),
37-
fs.readFileSync(path.join(__dirname, "src/index.html")).toString()
37+
fs.readFileSync(path.join(__dirname, "src/index.html")).toString(),
3838
);

packages/perspective-cli/src/html/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html>
33
<head>
44
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />

packages/perspective-cli/src/js/index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -129,41 +129,41 @@ program
129129
JSON.parse(
130130
fs
131131
.readFileSync(path.join(__dirname, "..", "..", "package.json"))
132-
.toString()
133-
).version
132+
.toString(),
133+
).version,
134134
)
135135
.description(
136-
"A convenient command-line client for Perspective.js. Can convert between Perspective supported format, or host a local web server."
136+
"A convenient command-line client for Perspective.js. Can convert between Perspective supported format, or host a local web server.",
137137
)
138138
.action(() => program.help());
139139

140140
program
141141
.command("convert [filename]")
142142
.description(
143-
"Convert a file into a new format. Reads from STDIN if no filename is provided."
143+
"Convert a file into a new format. Reads from STDIN if no filename is provided.",
144144
)
145145
.option(
146146
"-f, --format <format>",
147147
"Which output format to use: arrow, csv, columns, json.",
148148
/^(arrow|json|columns|csv)$/i,
149-
"arrow"
149+
"arrow",
150150
)
151151
.option(
152152
"-o, --output <filename>",
153-
"Filename to write to. If not supplied, writes to STDOUT."
153+
"Filename to write to. If not supplied, writes to STDOUT.",
154154
)
155155
.action(convert);
156156

157157
program
158158
.command("host [filename]")
159159
.description(
160-
"Host a file on a local Websocket/HTTP server using a server-side Perspective. Reads from STDIN if no filename is provided"
160+
"Host a file on a local Websocket/HTTP server using a server-side Perspective. Reads from STDIN if no filename is provided",
161161
)
162162
.option(
163163
"-p, --port <port>",
164164
"Which port to bind to.",
165165
(x) => parseInt(x),
166-
8080
166+
8080,
167167
)
168168
.option("-a, --assets <path>", "Host from a working directory")
169169
.option("-o, --open", "Open a browser automagically.")

packages/perspective-cli/test/js/superstore.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ test.describe("CLI", function () {
3232
test("Tests something", async ({ page }) => {
3333
await page.goto(`http://localhost:${port}/`);
3434
await page.waitForSelector(
35-
"perspective-viewer perspective-viewer-datagrid"
35+
"perspective-viewer perspective-viewer-datagrid",
3636
);
3737

3838
const json = await page.evaluate(async function () {

packages/perspective-jupyterlab/src/js/psp_widget.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export class PerspectiveWidget extends Widget {
186186
viewer.addEventListener(
187187
"contextmenu",
188188
(event) => event.stopPropagation(),
189-
false
189+
false,
190190
);
191191

192192
const div = document.createElement("div");

0 commit comments

Comments
 (0)