Skip to content

Commit cdd0637

Browse files
mfisher87nakul-py
authored andcommitted
Fix unexpected lint errors (#1024)
* Fix eslint error * Fix unexpected formatting errors
1 parent 0f842d4 commit cdd0637

File tree

10 files changed

+13
-22
lines changed

10 files changed

+13
-22
lines changed

packages/base/src/dialogs/ProcessingFormDialog.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ export interface IProcessingFormDialogOptions extends IBaseFormProps {
2828
/**
2929
* Wrapper component to handle OK button state
3030
*/
31-
export interface IProcessingFormWrapperProps
32-
extends IProcessingFormDialogOptions {
31+
export interface IProcessingFormWrapperProps extends IProcessingFormDialogOptions {
3332
okSignalPromise: PromiseDelegate<Signal<Dialog<any>, number>>;
3433
formErrorSignalPromise?: PromiseDelegate<Signal<Dialog<any>, boolean>>;
3534
}

packages/base/src/dialogs/symbology/symbologyDialog.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ export interface ISymbologyDialogProps {
1717
layerId?: string;
1818
}
1919

20-
export interface ISymbologyDialogWithAttributesProps
21-
extends ISymbologyDialogProps {
20+
export interface ISymbologyDialogWithAttributesProps extends ISymbologyDialogProps {
2221
selectableAttributesAndValues: Record<string, Set<any>>;
2322
}
2423

packages/base/src/formbuilder/objectform/layer/webGlLayerForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { IDict } from '@jupytergis/schema';
2+
import { ISubmitEvent } from '@rjsf/core';
23

34
import { LayerPropertiesForm } from './layerform';
4-
import { ISubmitEvent } from '@rjsf/core';
55

66
/**
77
* The form to modify a hillshade layer.

packages/base/src/panelview/components/layers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export const LayersBodyComponent: React.FC<IBodyProps> = props => {
150150
} else {
151151
// Check if new selection is the same type as previous selections
152152
const isSelectedSameType = Object.values(selectedValue).some(
153-
selection => (selection as ISelection).type === type,
153+
selection => selection.type === type,
154154
);
155155

156156
if (!isSelectedSameType) {

packages/schema/src/interfaces.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,10 @@ export interface IUserData {
266266
userData: User.IIdentity;
267267
}
268268

269-
export interface IJupyterGISDocumentWidget
270-
extends IDocumentWidget<SplitPanel, IJupyterGISModel> {
269+
export interface IJupyterGISDocumentWidget extends IDocumentWidget<
270+
SplitPanel,
271+
IJupyterGISModel
272+
> {
271273
readonly model: IJupyterGISModel;
272274
}
273275

packages/schema/src/model.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -934,8 +934,7 @@ export namespace JupyterGISModel {
934934
return Private.layerTreeRecursion(model.sharedModel.layerTree);
935935
}
936936

937-
export interface IOptions
938-
extends DocumentRegistry.IModelOptions<IJupyterGISDoc> {
937+
export interface IOptions extends DocumentRegistry.IModelOptions<IJupyterGISDoc> {
939938
annotationModel?: IAnnotationModel;
940939
settingRegistry?: ISettingRegistry;
941940
}

python/jupytergis_core/src/externalcommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import {
33
IJGISExternalCommandRegistry,
44
} from '@jupytergis/schema';
55

6-
export class JupyterGISExternalCommandRegistry
7-
implements IJGISExternalCommandRegistry
8-
{
6+
export class JupyterGISExternalCommandRegistry implements IJGISExternalCommandRegistry {
97
constructor() {
108
this._registry = new Set();
119
}

python/jupytergis_core/src/jgisplugin/modelfactory.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ import { ISettingRegistry } from '@jupyterlab/settingregistry';
1010
/**
1111
* A Model factory to create new instances of JupyterGISModel.
1212
*/
13-
export class JupyterGISModelFactory
14-
implements DocumentRegistry.IModelFactory<JupyterGISModel>
15-
{
13+
export class JupyterGISModelFactory implements DocumentRegistry.IModelFactory<JupyterGISModel> {
1614
constructor(options: JupyterGISModelFactory.IOptions) {
1715
this._annotationModel = options.annotationModel;
1816
this._settingRegistry = options.settingRegistry;

python/jupytergis_core/src/layerBrowserRegistry.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ import {
1010
* @class JupyterGISLayerBrowserRegistry
1111
* @implements IJGISLayerBrowserRegistry
1212
*/
13-
export class JupyterGISLayerBrowserRegistry
14-
implements IJGISLayerBrowserRegistry
15-
{
13+
export class JupyterGISLayerBrowserRegistry implements IJGISLayerBrowserRegistry {
1614
private _registry: IRasterLayerGalleryEntry[];
1715

1816
constructor() {

python/jupytergis_qgis/src/modelfactory.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ import { ISettingRegistry } from '@jupyterlab/settingregistry';
1010
/**
1111
* A Model factory to create new instances of JupyterGISModel.
1212
*/
13-
export class JupyterGISModelFactoryBase
14-
implements DocumentRegistry.IModelFactory<JupyterGISModel>
15-
{
13+
export class JupyterGISModelFactoryBase implements DocumentRegistry.IModelFactory<JupyterGISModel> {
1614
constructor(options: JupyterGISModelFactoryBase.IOptions) {
1715
this._annotationModel = options.annotationModel;
1816
}

0 commit comments

Comments
 (0)