Skip to content

Commit 1b96f21

Browse files
committed
Fix eslint
* Ignore jupyterlab_widgets labextension * Fix eslint config of jupyterlab_widgets to be consistent with top level * Add some parser options so that eslint can find the correct tsconfig file.
1 parent a027642 commit 1b96f21

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ npm-debug.log
2424
!.vscode/extensions.json
2525

2626
widgetsnbextension/widgetsnbextension/static
27+
jupyterlab_widgets/jupyterlab_widgets/labextension/
2728

2829
index.built.js
2930
index.built.js.map

jupyterlab_widgets/.eslintrc.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ module.exports = {
77
],
88
parser: '@typescript-eslint/parser',
99
parserOptions: {
10-
project: 'tsconfig.json',
11-
sourceType: 'module'
10+
project: './tsconfig.json',
11+
sourceType: 'module',
12+
tsconfigRootDir: __dirname
1213
},
1314
plugins: ['@typescript-eslint'],
1415
rules: {
@@ -20,6 +21,8 @@ module.exports = {
2021
'@typescript-eslint/no-explicit-any': 'off',
2122
'@typescript-eslint/no-namespace': 'off',
2223
'@typescript-eslint/no-use-before-define': 'off',
24+
'@typescript-eslint/camelcase': 'off',
25+
'@typescript-eslint/no-non-null-assertion': 'off',
2326
'@typescript-eslint/quotes': [
2427
'error',
2528
'single',

0 commit comments

Comments
 (0)