Skip to content

Commit 13c8000

Browse files
authored
Merge pull request #279 from bollwyvl/upgrade-dev-tools
Upgrade dev tools [squash]
2 parents 494b711 + 2d57358 commit 13c8000

File tree

35 files changed

+654
-313
lines changed

35 files changed

+654
-313
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ envs
2424
examples/app/build
2525
examples/app/schemas
2626
examples/app/themes
27+
htmlcov
2728
jupyterlab/geckodriver
2829
jupyterlab/schemas
2930
jupyterlab/staging/index.js

atest/Keywords.robot

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,18 @@ Tear Down Everything
6666
Terminate All Processes kill=${True}
6767

6868
Wait For Splash
69-
Wait Until Page Contains Element ${SPLASH} timeout=180s
70-
Wait Until Page Does Not Contain Element ${SPLASH} timeout=180s
69+
Go To ${URL}lab?reset&token=${TOKEN}
70+
Set Window Size 1024 768
71+
Wait Until Page Contains Element ${SPLASH} timeout=30s
72+
Wait Until Page Does Not Contain Element ${SPLASH} timeout=10s
7173
Execute Javascript window.onbeforeunload \= function (){}
7274

7375
Open JupyterLab
7476
Set Environment Variable MOZ_HEADLESS ${HEADLESS}
7577
${firefox} = Which firefox
7678
${geckodriver} = Which geckodriver
7779
Create WebDriver Firefox executable_path=${geckodriver} firefox_binary=${firefox} service_log_path=${OUTPUT DIR}${/}geckodriver.log
78-
Wait Until Keyword Succeeds 20x 3s Go To ${URL}lab?reset&token=${TOKEN}
79-
Set Window Size 1024 768
80-
Wait For Splash
80+
Wait Until Keyword Succeeds 3x 5s Wait For Splash
8181

8282
Close JupyterLab
8383
Close All Browsers
@@ -95,7 +95,7 @@ Reset Application State
9595
Accept Default Dialog Option
9696
Ensure All Kernels Are Shut Down
9797
Lab Command Reset Application State
98-
Wait For Splash
98+
Wait Until Keyword Succeeds 3x 5s Wait For Splash
9999

100100
Accept Default Dialog Option
101101
[Documentation] Accept a dialog, if it exists

binder/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies:
1010
- jupyterlab >=2,<3.0.0a0
1111
- notebook >=4.3.1
1212
# build dependencies
13-
- nodejs
13+
- nodejs >=10,<14
1414
# for python language server (and development)
1515
- black
1616
- flake8 >=3.5

ci/env-test.yml.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ dependencies:
3030
- firefox
3131
- geckodriver
3232
- robotframework-seleniumlibrary
33-
- robotframework <3.2
33+
- robotframework >=3.2

docs/Architecture.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"import IPython\n",
2323
"\n",
2424
"\n",
25-
"\n",
2625
"@IPython.core.magic.register_line_cell_magic\n",
2726
"def dot(line, cell=None):\n",
2827
" src = graphviz.Source(pathlib.Path(line).read_text() if line else cell)._repr_svg_()\n",
@@ -171,4 +170,4 @@
171170
},
172171
"nbformat": 4,
173172
"nbformat_minor": 4
174-
}
173+
}

package.json

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
{
22
"dependencies": {},
33
"devDependencies": {
4+
"@typescript-eslint/eslint-plugin": "^2.27.0",
5+
"@typescript-eslint/parser": "^2.27.0",
46
"bash-language-server": "^1.6.1",
57
"dictionary-en": "^3.0.0",
68
"dockerfile-language-server-nodejs": "^0.0.22",
7-
"eslint": "^5.16.0",
8-
"eslint-config-prettier": "^4.1.0",
9-
"eslint-plugin-prettier": "^3.0.1",
9+
"eslint-config-prettier": "^6.7.0",
10+
"eslint-plugin-jest": "^23.8.2",
11+
"eslint-plugin-prettier": "^3.1.1",
12+
"eslint-plugin-react": "^7.19.0",
13+
"eslint": "^6.8.0",
1014
"husky": "^3.0.9",
1115
"javascript-typescript-langserver": "^2.11.3",
1216
"lerna": "^3.13.2",
1317
"precise-commits": "^1.0.2",
14-
"prettier": "^1.19.1",
15-
"tslint": "^5.15.0",
16-
"tslint-config-prettier": "^1.18.0",
17-
"tslint-plugin-prettier": "^2.0.1",
18-
"tslint-react": "^4.0.0",
19-
"typescript": "~3.7.2",
18+
"prettier": "^2.0.5",
19+
"typescript": "~3.9.5",
2020
"unified-language-server": "^0.3.0",
2121
"vscode-css-languageserver-bin": "^1.4.0",
2222
"vscode-html-languageserver-bin": "^1.4.0",
@@ -29,7 +29,9 @@
2929
}
3030
},
3131
"prettier": {
32-
"singleQuote": true
32+
"arrowParens": "avoid",
33+
"singleQuote": true,
34+
"trailingComma": "none"
3335
},
3436
"private": true,
3537
"scripts": {
@@ -42,13 +44,13 @@
4244
"bundle": "lerna run --parallel bundle",
4345
"clean": "lerna run --parallel clean",
4446
"lab:link": "lerna run lab:link",
45-
"lint:check": "jlpm prettier:check && jlpm tslint:check",
46-
"lint": "jlpm prettier && jlpm tslint",
47+
"lint:check": "jlpm prettier:check && jlpm eslint:check",
48+
"lint": "jlpm prettier && jlpm eslint",
4749
"prettier:check": "prettier --check '**/*{.ts,.tsx,.js,.jsx,.css,.json,.md,.yml}'",
48-
"test": "lerna run --stream --concurrency=1 test",
4950
"prettier": "prettier --write '**/*{.ts,.tsx,.js,.jsx,.css,.json,.md,.yml}'",
50-
"tslint": "tslint --fix -c ./packages/tslint.json --project ./packages/tsconfigbase.json 'packages/**/*{.ts,.tsx}'",
51-
"tslint:check": "tslint -c ./packages/tslint.json --project ./packages/tsconfigbase.json 'packages/**/*{.ts,.tsx}'"
51+
"eslint": "eslint --config packages/.eslintrc.js --ext .js,.jsx,.ts,.tsx --fix packages",
52+
"eslint:check": "eslint --config packages/.eslintrc.js --ext .js,.jsx,.ts,.tsx packages",
53+
"test": "lerna run --stream --concurrency=1 test"
5254
},
5355
"workspaces": {
5456
"packages": [

packages/.eslintrc.js

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es6: true,
5+
commonjs: true,
6+
node: true,
7+
'jest/globals': true
8+
},
9+
root: true,
10+
extends: [
11+
'eslint:recommended',
12+
'plugin:@typescript-eslint/eslint-recommended',
13+
'plugin:@typescript-eslint/recommended',
14+
'prettier/@typescript-eslint',
15+
'plugin:react/recommended',
16+
'plugin:jest/recommended'
17+
],
18+
ignorePatterns: [
19+
'**/node_modules/**/*',
20+
'**/lib/**/*',
21+
'**/_*.ts',
22+
'**/_*.d.ts',
23+
'**/typings/**/*.d.ts',
24+
'**/dist/*'
25+
],
26+
parser: '@typescript-eslint/parser',
27+
parserOptions: {
28+
project: 'packages/tsconfig.eslint.json'
29+
},
30+
plugins: ['@typescript-eslint', 'jest'],
31+
rules: {
32+
'@typescript-eslint/ban-ts-ignore': 'warn',
33+
'@typescript-eslint/camelcase': 'off',
34+
'@typescript-eslint/explicit-function-return-type': 'off',
35+
'@typescript-eslint/interface-name-prefix': [
36+
'error',
37+
{ prefixWithI: 'always' }
38+
],
39+
'@typescript-eslint/no-empty-interface': 'off',
40+
'@typescript-eslint/no-explicit-any': 'off',
41+
'@typescript-eslint/no-floating-promises': ['error', { ignoreVoid: true }],
42+
'@typescript-eslint/no-inferrable-types': 'off',
43+
'@typescript-eslint/no-namespace': 'off',
44+
'@typescript-eslint/no-non-null-assertion': 'off',
45+
'@typescript-eslint/no-unused-vars': ['warn', { args: 'none' }],
46+
'@typescript-eslint/no-use-before-define': 'off',
47+
'@typescript-eslint/no-var-requires': 'off',
48+
'jest/expect-expect': 'off',
49+
'jest/no-export': 'warn',
50+
'jest/no-jest-import': 'off',
51+
'jest/no-try-expect': 'warn',
52+
'no-case-declarations': 'warn',
53+
'no-control-regex': 'warn',
54+
'no-inner-declarations': 'off',
55+
'no-prototype-builtins': 'off',
56+
'no-undef': 'warn',
57+
'no-useless-escape': 'off',
58+
'prefer-const': 'off',
59+
// deviations from jupyterlab, should probably be fixed
60+
'@typescript-eslint/triple-slash-reference': 'off',
61+
'jest/no-test-callback': 'off',
62+
'jest/valid-expect': 'off',
63+
'no-async-promise-executor': 'off',
64+
'prefer-spread': 'off',
65+
'react/display-name': 'off'
66+
},
67+
settings: {
68+
react: {
69+
version: 'detect'
70+
}
71+
}
72+
};

packages/jupyterlab-go-to-definition/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ let local = {
2020
transformIgnorePatterns: ['/node_modules/(?!(@jupyterlab/.*)/)']
2121
};
2222

23-
for (option of reuseFromUpstream) {
23+
for (const option of reuseFromUpstream) {
2424
local[option] = upstream[option];
2525
}
2626

packages/jupyterlab-go-to-definition/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"jest-junit": "^8.0.0",
7070
"rimraf": "^2.6.1",
7171
"ts-jest": "^24.0.2",
72-
"typescript": "~3.7.2",
72+
"typescript": "~3.9.5",
7373
"@babel/preset-env": "^7.4.3"
7474
},
7575
"jupyterlab": {

packages/jupyterlab-go-to-definition/src/editors/codemirror/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export class CodeMirrorExtension extends CodeMirrorTokensProvider
190190
usagesBeforeTarget += 1;
191191
}
192192

193-
let nextSibling = sibling.previousSibling;
193+
let nextSibling = sibling.previousSibling as Node;
194194

195195
while (nextSibling == null) {
196196
while (!sibling.previousSibling) {

0 commit comments

Comments
 (0)