Skip to content

Commit db06730

Browse files
committed
Lint
1 parent 43e83c5 commit db06730

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

packages/.eslintrc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ module.exports = {
4040
ignoreGlobals: true,
4141
allow: [
4242
'cell_type',
43+
'config_schema',
4344
'execution_count',
4445
'language_info',
4546
'nbconvert_exporter',
@@ -52,7 +53,8 @@ module.exports = {
5253
'lsp_to_ce',
5354
'ce_to_cm',
5455
'cm_to_lsp',
55-
'lsp_to_cm'
56+
'lsp_to_cm',
57+
'workspace_configuration'
5658
]
5759
}
5860
],

packages/jupyterlab-lsp/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export * as SCHEMA from './_schema';
99
/** Component- and feature-specific APIs */
1010
export * from './api';
1111

12-
import { JSONExt } from '@lumino/coreutils';
1312
import { COMPLETION_THEME_MANAGER } from '@jupyter-lsp/completion-theme';
1413
import { plugin as THEME_MATERIAL } from '@jupyter-lsp/theme-material';
1514
import { plugin as THEME_VSCODE } from '@jupyter-lsp/theme-vscode';
@@ -27,6 +26,7 @@ import { ISettingRegistry } from '@jupyterlab/settingregistry';
2726
import { IStatusBar } from '@jupyterlab/statusbar';
2827
import { ITranslator, nullTranslator } from '@jupyterlab/translation';
2928
import { IFormRendererRegistry } from '@jupyterlab/ui-components';
29+
import { JSONExt } from '@lumino/coreutils';
3030

3131
import '../style/index.css';
3232

packages/jupyterlab-lsp/src/settings.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import { SettingsSchemaManager } from './settings';
2-
import { ISettingRegistry } from '@jupyterlab/settingregistry';
31
import { LanguageServerManager } from '@jupyterlab/lsp';
2+
import { ISettingRegistry } from '@jupyterlab/settingregistry';
43
import { JSONExt } from '@lumino/coreutils';
54

5+
import { SettingsSchemaManager } from './settings';
6+
67
const DEAULT_SERVER_PRIORITY = 50;
78

89
const SCHEMA: ISettingRegistry.ISchema = {
@@ -152,7 +153,7 @@ const COLLAPSED_PYRIGHT_SETTINGS = {
152153
}
153154
};
154155

155-
function map(object: Object) {
156+
function map(object: Record<string, any>) {
156157
return new Map(Object.entries(object));
157158
}
158159

0 commit comments

Comments
 (0)