Skip to content

Commit fa1baa0

Browse files
committed
lint
1 parent 5b0e611 commit fa1baa0

5 files changed

Lines changed: 25 additions & 9914 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jupyter nbextension enable --py [--sys-prefix|--user|--system] ipywidgets_exampl
2525

2626
Create a dev environment:
2727
```bash
28-
conda create -n ipywidgets_example-dev -c conda-forge nodejs yarn python jupyterlab
28+
conda create -n ipywidgets_example-dev -c conda-forge nodejs npm python jupyterlab
2929
conda activate ipywidgets_example-dev
3030
```
3131

@@ -39,7 +39,7 @@ notebook / lab frontend. For lab, this is done by the command:
3939

4040
```
4141
jupyter labextension develop --overwrite .
42-
yarn run build
42+
npm run build
4343
```
4444

4545
For classic notebook, you need to run:
@@ -61,7 +61,7 @@ terminals to watch for changes in the extension's source and automatically rebui
6161

6262
```bash
6363
# Watch the source directory in one terminal, automatically rebuilding when needed
64-
yarn run watch
64+
npm run watch
6565
# Run JupyterLab in another terminal
6666
jupyter lab
6767
```

docs/environment.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

package.json

Lines changed: 21 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@datalayer-examples/ipywidgets-example",
2+
"name": "@datalayer-examples/ipywidgets",
33
"version": "0.1.0",
44
"description": "A Custom Jupyter Widget Library",
55
"keywords": [
@@ -29,141 +29,57 @@
2929
"url": "https://github.com/datalayer-examples/ipywidgets-example"
3030
},
3131
"scripts": {
32-
"build": "yarn run build:lib && yarn run build:nbextension && yarn run build:labextension:dev",
33-
"build:prod": "yarn run build:lib && yarn run build:nbextension && yarn run build:labextension",
32+
"build": "npm run build:lib && npm run build:nbextension && npm run build:labextension:dev",
33+
"build:prod": "npm run build:lib && npm run build:nbextension && npm run build:labextension",
3434
"build:labextension": "jupyter labextension build .",
3535
"build:labextension:dev": "jupyter labextension build --development True .",
3636
"build:lib": "tsc",
3737
"build:nbextension": "webpack",
38-
"clean": "yarn run clean:lib && yarn run clean:nbextension && yarn run clean:labextension",
38+
"clean": "npm run clean:lib && npm run clean:nbextension && npm run clean:labextension",
3939
"clean:lib": "rimraf lib",
4040
"clean:labextension": "rimraf ipywidgets_example/labextension",
4141
"clean:nbextension": "rimraf ipywidgets_example/nbextension/static/index.js",
4242
"lint": "eslint . --ext .ts,.tsx --fix",
4343
"lint:check": "eslint . --ext .ts,.tsx",
44-
"prepack": "yarn run build:lib",
44+
"prepack": "npm run build:lib",
4545
"test": "jest",
4646
"watch": "npm-run-all -p watch:*",
4747
"watch:lib": "tsc -w",
4848
"watch:nbextension": "webpack --watch --mode=development",
4949
"watch:labextension": "jupyter labextension watch ."
5050
},
5151
"dependencies": {
52-
"@jupyter-widgets/base": "^1.1.10 || ^2 || ^3 || ^4 || ^5 || ^6"
52+
"@jupyter-widgets/base": "^6.0.6"
5353
},
5454
"devDependencies": {
5555
"@babel/core": "^7.5.0",
5656
"@babel/preset-env": "^7.5.0",
57-
"@jupyter-widgets/base-manager": "1.0.3",
58-
"@jupyterlab/builder": "4.0.0-alpha.19",
59-
"@lumino/application": "2.0.0-beta.1",
60-
"@lumino/widgets": "2.0.0-beta.1",
57+
"@jupyterlab/builder": "^4.0.0",
58+
"@lumino/application": "^2.3.0",
59+
"@lumino/widgets": "^2.3.1",
6160
"@types/jest": "^26.0.0",
6261
"@types/webpack-env": "^1.13.6",
63-
"@typescript-eslint/eslint-plugin": "^3.6.0",
64-
"@typescript-eslint/parser": "^3.6.0",
62+
"@typescript-eslint/eslint-plugin": "^8.29.1",
63+
"@typescript-eslint/parser": "^8.29.1",
6564
"acorn": "^7.2.0",
6665
"css-loader": "^3.2.0",
67-
"eslint": "^7.4.0",
68-
"eslint-config-prettier": "^6.11.0",
69-
"eslint-plugin-prettier": "^3.1.4",
66+
"eslint": "^9.0.0",
67+
"eslint-config-prettier": "^10.1.2",
68+
"eslint-plugin-prettier": "^5.2.6",
7069
"fs-extra": "^7.0.0",
7170
"identity-obj-proxy": "^3.0.0",
72-
"jest": "^26.0.0",
73-
"mkdirp": "^0.5.1",
71+
"jest": "^29.4.3",
72+
"mkdirp": "^3.0.1",
7473
"npm-run-all": "^4.1.3",
7574
"prettier": "^2.0.5",
76-
"rimraf": "^2.6.2",
75+
"rimraf": "^6.0.1",
7776
"source-map-loader": "^1.1.3",
7877
"style-loader": "^1.0.0",
79-
"ts-jest": "^26.0.0",
78+
"ts-jest": "^29.0.5",
8079
"ts-loader": "^8.0.0",
81-
"typescript": "~4.1.3",
82-
"webpack": "^5.61.0",
83-
"webpack-cli": "^4.0.0"
84-
},
85-
"resolutions": {
86-
"**/@jupyter-widgets/base": "6.0.2",
87-
"**/@jupyter-widgets/controls": "5.0.3",
88-
"**/@jupyter-widgets/html-manager": "1.0.5",
89-
"**/@jupyter-widgets/jupyterlab-manager": "5.0.5",
90-
"**/@jupyter-widgets/output": "6.0.2",
91-
"**/@jupyterlab/application": "4.0.0-alpha.19",
92-
"**/@jupyterlab/apputils": "4.0.0-alpha.19",
93-
"**/@jupyterlab/attachments": "4.0.0-alpha.19",
94-
"**/@jupyterlab/cells": "4.0.0-alpha.19",
95-
"**/@jupyterlab/codeeditor": "4.0.0-alpha.19",
96-
"**/@jupyterlab/codemirror": "4.0.0-alpha.19",
97-
"**/@jupyterlab/completer": "4.0.0-alpha.19",
98-
"**/@jupyterlab/console": "4.0.0-alpha.19",
99-
"**/@jupyterlab/coreutils": "6.0.0-alpha.19",
100-
"**/@jupyterlab/docmanager": "4.0.0-alpha.19",
101-
"**/@jupyterlab/docprovider": "4.0.0-alpha.18",
102-
"**/@jupyterlab/docregistry": "4.0.0-alpha.19",
103-
"**/@jupyterlab/documentsearch": "4.0.0-alpha.19",
104-
"**/@jupyterlab/filebrowser": "4.0.0-alpha.19",
105-
"**/@jupyterlab/fileeditor": "4.0.0-alpha.19",
106-
"**/@jupyterlab/inspector": "4.0.0-alpha.19",
107-
"**/@jupyterlab/javascript-extension": "4.0.0-alpha.19",
108-
"**/@jupyterlab/json-extension": "4.0.0-alpha.19",
109-
"**/@jupyterlab/launcher": "4.0.0-alpha.19",
110-
"**/@jupyterlab/lsp": "4.0.0-alpha.19",
111-
"**/@jupyterlab/mainmenu": "4.0.0-alpha.19",
112-
"**/@jupyterlab/markdownviewer": "4.0.0-alpha.19",
113-
"**/@jupyterlab/markedparser-extension": "4.0.0-alpha.19",
114-
"**/@jupyterlab/mathjax2": "4.0.0-alpha.19",
115-
"**/@jupyterlab/nbconvert-css": "4.0.0-alpha.19",
116-
"**/@jupyterlab/nbformat": "4.0.0-alpha.19",
117-
"**/@jupyterlab/notebook": "4.0.0-alpha.19",
118-
"**/@jupyterlab/observables": "5.0.0-alpha.19",
119-
"**/@jupyterlab/outputarea": "4.0.0-alpha.19",
120-
"**/@jupyterlab/rendermime": "4.0.0-alpha.19",
121-
"**/@jupyterlab/rendermime-extension": "4.0.0-alpha.19",
122-
"**/@jupyterlab/rendermime-interfaces": "3.8.0-alpha.19",
123-
"**/@jupyterlab/services": "7.0.0-alpha.19",
124-
"**/@jupyterlab/settingregistry": "4.0.0-alpha.19",
125-
"**/@jupyterlab/statedb": "4.0.0-alpha.19",
126-
"**/@jupyterlab/terminal": "4.0.0-alpha.19",
127-
"**/@jupyterlab/theme-dark-extension": "4.0.0-alpha.19",
128-
"**/@jupyterlab/theme-light-extension": "4.0.0-alpha.19",
129-
"**/@jupyterlab/translation": "4.0.0-alpha.19",
130-
"**/@jupyterlab/ui-components": "4.0.0-alpha.34",
131-
"**/@lumino/algorithm": "2.0.0-beta.0",
132-
"**/@jupyter/ydoc": "0.3.1",
133-
"**/@lumino/application": "2.0.0-beta.1",
134-
"**/@lumino/collections": "2.0.0-beta.0",
135-
"**/@lumino/commands": "2.0.0-beta.1",
136-
"**/@lumino/coreutils": "2.0.0-beta.0",
137-
"**/@lumino/default-theme": "2.0.0-beta.1",
138-
"**/@lumino/disposable": "2.0.0-beta.1",
139-
"**/@lumino/domutils": "2.0.0-beta.0",
140-
"**/@lumino/dragdrop": "2.0.0-beta.1",
141-
"**/@lumino/keyboard": "2.0.0-beta.0",
142-
"**/@lumino/messaging": "2.0.0-beta.0",
143-
"**/@lumino/polling": "2.0.0-beta.1",
144-
"**/@lumino/properties": "2.0.0-beta.0",
145-
"**/@lumino/signaling": "2.0.0-beta.1",
146-
"**/@lumino/virtualdom": "2.0.0-beta.0",
147-
"**/@lumino/widgets": "2.0.0-beta.1",
148-
"**/@rjsf/core": "4.2.0",
149-
"**/@types/react": "18.0.27",
150-
"**/@types/react-dom": "18.0.10",
151-
"**/@primer/react": "35.15.1",
152-
"**/@primer/octicons-react": "17.9.0",
153-
"**/html-webpack-plugin": "5.3.1",
154-
"**/htmlparser2": "8.0.1",
155-
"**/react": "18.2.0",
156-
"**/react-dom": "18.2.0",
157-
"**/react-redux": "8.0.2",
158-
"**/redux": "4.1.0",
159-
"**/redux-observable": "1.2.0",
160-
"**/rxjs": "6.6.0",
161-
"**/typescript": "4.2.4",
162-
"**/webpack": "5.74.0",
163-
"**/webpack-cli": "4.10.0",
164-
"**/webpack-dev-server": "4.9.3",
165-
"**/y-websocket": "1.4.3",
166-
"**/yjs": "13.5.41"
80+
"typescript": "^5.8.3",
81+
"webpack": "^5.74.0",
82+
"webpack-cli": "^4.10.0"
16783
},
16884
"jupyterlab": {
16985
"extension": "lib/plugin",

src/plugin.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ const examplePlugin: IPlugin<Application<Widget>, void> = {
2121
requires: [IJupyterWidgetRegistry],
2222
activate: activateWidgetExtension,
2323
autoStart: true,
24-
} as unknown as IPlugin<Application<Widget>, void>;
25-
// the "as unknown as ..." typecast above is solely to support JupyterLab 1
26-
// and 2 in the same codebase and should be removed when we migrate to Lumino.
24+
} as IPlugin<Application<Widget>, void>;
2725

2826
export default examplePlugin;
2927

0 commit comments

Comments
 (0)