Skip to content

Commit

Permalink
Fix#18603 eslint errors in typings (oppia#18595)
Browse files Browse the repository at this point in the history
Fix eslint errors
  • Loading branch information
kapilag96 authored Jul 11, 2023
1 parent cba60dd commit 47fd013
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 48 deletions.
4 changes: 2 additions & 2 deletions typings/custom-element-defs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
// unit testing. See http://stackoverflow.com/a/29833832 for more
// details.
interface HTMLElement {
getControllerScope?: (() => ng.IScope),
getLocalControllerScope?: (() => ng.IController)
getControllerScope?: (() => ng.IScope);
getLocalControllerScope?: (() => ng.IController);
}
10 changes: 5 additions & 5 deletions typings/guppy-defs-f509e155dc66f6310737c328cbfbc35b85194be2.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface GuppyInitConfig {
debug?: Function;
error?: Function;
focus?: Function;
}
};
settings?: {
xml_content?: string;
autoreplace?: string;
Expand All @@ -30,7 +30,7 @@ interface GuppyInitConfig {
blacklist?: string[];
buttons?: string[];
cliptype?: string;
}
};
callback?: Function;
}

Expand Down Expand Up @@ -100,9 +100,9 @@ declare namespace Guppy {
name: string, symbol: Object, template?: string): void;
export function get_loc(
x: number, y: number, current_node?: Object, current_caret?: Object): {
current: Object,
caret: number,
pos: string
current: Object;
caret: number;
pos: string;
};
export let kb: Object;
export function make_button(url: string, cb: Function): HTMLImageElement;
Expand Down
8 changes: 4 additions & 4 deletions typings/karma-fixtures.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ interface KNN {
'fingerprint_data': {
[key: number]: {
class: number;
fingerprint: number[][]
}
fingerprint: number[][];
};
};
'token_to_id': {
[key: string]: number;
Expand Down Expand Up @@ -35,7 +35,7 @@ interface SVM {
type ClassifierAccuracyTest = {
'answer_group_index': number;
'answers': {
code: string
code: string;
}[];
}[];

Expand Down Expand Up @@ -195,7 +195,7 @@ interface RuleTemplates {
StartsWith: RuleDescription;
Contains: RuleDescription;
FuzzyEquals: RuleDescription;
}
};
}

interface KarmaFixtures {
Expand Down
4 changes: 2 additions & 2 deletions typings/pencil-code-embed-defs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// only class exported by the library.

interface SetupCode {
code: string,
type: string
code: string;
type: string;
}

declare class PencilCodeEmbed {
Expand Down
70 changes: 35 additions & 35 deletions typings/skulpt-defs-7b61d.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ interface SkulptPython {

interface SkulptMappings {
round$: {
classes: Object[],
classes: Object[];
2: null;
3: string;
};
Expand Down Expand Up @@ -96,39 +96,39 @@ interface SkulptCompiled {
}

interface SkulptDunderToSkulpt {
'__eq__': 'ob$eq',
'__ne__': 'ob$ne',
'__lt__': 'ob$lt',
'__le__': 'ob$le',
'__gt__': 'ob$gt',
'__ge__': 'ob$ge',
'__hash__': 'tp$hash',
'__abs__': 'nb$abs',
'__neg__': 'nb$negative',
'__pos__': 'nb$positive',
'__int__': 'nb$int_',
'__long__': 'nb$lng',
'__float__': 'nb$float_',
'__add__': 'nb$add',
'__radd__': 'nb$reflected_add',
'__sub__': 'nb$subtract',
'__rsub__': 'nb$reflected_subtract',
'__mul__': 'nb$multiply',
'__rmul__': 'nb$reflected_multiply',
'__div__': 'nb$divide',
'__rdiv__': 'nb$reflected_divide',
'__floordiv__': 'nb$floor_divide',
'__rfloordiv__': 'nb$reflected_floor_divide',
'__mod__': 'nb$remainder',
'__rmod__': 'nb$reflected_remainder',
'__divmod__': 'nb$divmod',
'__rdivmod__': 'nb$reflected_divmod',
'__pow__': 'nb$power',
'__rpow__': 'nb$reflected_power',
'__contains__': 'sq$contains',
'__len__': ['sq$length', 1],
'__get__': ['tp$descr_get', 3],
'__set__': ['tp$descr_set', 3]
'__eq__': 'ob$eq';
'__ne__': 'ob$ne';
'__lt__': 'ob$lt';
'__le__': 'ob$le';
'__gt__': 'ob$gt';
'__ge__': 'ob$ge';
'__hash__': 'tp$hash';
'__abs__': 'nb$abs';
'__neg__': 'nb$negative';
'__pos__': 'nb$positive';
'__int__': 'nb$int_';
'__long__': 'nb$lng';
'__float__': 'nb$float_';
'__add__': 'nb$add';
'__radd__': 'nb$reflected_add';
'__sub__': 'nb$subtract';
'__rsub__': 'nb$reflected_subtract';
'__mul__': 'nb$multiply';
'__rmul__': 'nb$reflected_multiply';
'__div__': 'nb$divide';
'__rdiv__': 'nb$reflected_divide';
'__floordiv__': 'nb$floor_divide';
'__rfloordiv__': 'nb$reflected_floor_divide';
'__mod__': 'nb$remainder';
'__rmod__': 'nb$reflected_remainder';
'__divmod__': 'nb$divmod';
'__rdivmod__': 'nb$reflected_divmod';
'__pow__': 'nb$power';
'__rpow__': 'nb$reflected_power';
'__contains__': 'sq$contains';
'__len__': ['sq$length', 1];
'__get__': ['tp$descr_get', 3];
'__set__': ['tp$descr_set', 3];
}

interface SkulptFFI {
Expand All @@ -146,7 +146,7 @@ interface SkulptInternalPy {
'src/classmethod.py': string;
'src/property.py': string;
'src/staticmethod.py': string;
}
};
}

interface SkulptMisceval {
Expand Down

0 comments on commit 47fd013

Please sign in to comment.