Skip to content
This repository was archived by the owner on Feb 14, 2024. It is now read-only.

Commit a2c34d9

Browse files
committed
Run linter
1 parent 819e2d4 commit a2c34d9

File tree

6 files changed

+13
-31
lines changed

6 files changed

+13
-31
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ The [xeus-python](https://github.com/jupyter-xeus/xeus-python) Python kernel for
66

77
![jupyterlite-xeus-python](https://user-images.githubusercontent.com/21197331/167814755-76975633-30f7-4f8e-8fdb-eeec98fa3fd1.gif)
88

9-
109
## Requirements
1110

1211
- JupyterLite >= 0.1.0a14

src/declarations.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
declare module '*.png' {
66
const value: string;
77
export default value;
8-
}
8+
}

src/worker.ts

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,50 +2,34 @@
22
// Copyright (c) JupyterLite Contributors
33
// Distributed under the terms of the Modified BSD License.
44

5-
6-
declare module globalThis {
7-
let Module:any;
5+
declare namespace globalThis {
6+
let Module: any;
87
}
9-
globalThis.Module = {}
10-
// // @ts-ignore
11-
// var document: any = {}
12-
13-
// globalThis.Module = Module
8+
globalThis.Module = {};
149

1510
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
1611
// @ts-ignore
1712
import createXeusModule from './xpython_wasm.js';
18-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
19-
// @ts-ignore
20-
// import populate from './python_data.js';
21-
// // import populate from './python_data.js';
22-
// // import populate from './python_data.js';
23-
// // console.log("populate",populate)
24-
25-
26-
// populate()
2713

2814
// We alias self to ctx and give it our newly created type
2915
const ctx: Worker = self as any;
3016
let raw_xkernel: any;
3117
let raw_xserver: any;
3218

33-
34-
3519
async function waitRunDependency() {
36-
const promise = new Promise((r:any) => {
37-
globalThis.Module.monitorRunDependencies = (n:number) => {
20+
const promise = new Promise((r: any) => {
21+
globalThis.Module.monitorRunDependencies = (n: number) => {
3822
if (n === 0) {
39-
console.log("all `RunDependencies` loaded")
23+
console.log('all `RunDependencies` loaded');
4024
r();
4125
}
4226
};
4327
});
4428
// If there are no pending dependencies left, monitorRunDependencies will
4529
// never be called. Since we can't check the number of dependencies,
4630
// manually trigger a call.
47-
globalThis.Module.addRunDependency("dummy");
48-
globalThis.Module.removeRunDependency("dummy");
31+
globalThis.Module.addRunDependency('dummy');
32+
globalThis.Module.removeRunDependency('dummy');
4933
return promise;
5034
}
5135

@@ -64,14 +48,13 @@ ctx.get_stdin = get_stdin;
6448
// @ts-ignore: breaks typedoc
6549
let resolveInputReply: any;
6650

67-
6851
async function loadCppModule(moduleFactory: any): Promise<any> {
6952
const options: any = {};
7053
globalThis.Module = await moduleFactory(options);
7154

7255
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
7356
// @ts-ignore
74-
await import("./python_data");
57+
await import('./python_data');
7558

7659
await waitRunDependency();
7760
raw_xkernel = new globalThis.Module.xkernel();

style/base.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
| Copyright (c) Thorsten Beier
33
| Copyright (c) Jupyter Development Team.
44
| Distributed under the terms of the Modified BSD License.
5-
|----------------------------------------------------------------------------*/
5+
|----------------------------------------------------------------------------*/

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
"types": []
2323
},
2424
"include": ["src/*"]
25-
}
25+
}

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
{
1212
from: 'src/python_data.data',
1313
to: '.'
14-
},
14+
}
1515
]
1616
})
1717
]

0 commit comments

Comments
 (0)