Skip to content

Commit bef7468

Browse files
committed
Replace var (eslint no-var)
1 parent 84c55b8 commit bef7468

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/app/components/elements/markup/latexRendering.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ interface Search {
173173
function startMatch(match: RegExpMatchArray): Search {
174174
const key: string = match[0];
175175
// @ts-ignore
176-
var delim = matchers[key];
176+
const delim = matchers[key];
177177
if (delim != null) { // a start delimiter
178178
return {
179179
end: delim.end, endPattern: new RegExp(endPattern(delim.end), "g"), mode: delim.mode, pcount: 0,

src/react-app-env.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ declare module "bootstrap";
6868
declare module "math-random-seed";
6969
declare module "highlightjs-vba";
7070

71-
declare var MathJax: any;
72-
declare var ISAAC_SITE: string;
73-
declare var REACT_APP_API_VERSION: string;
71+
declare let MathJax: any;
72+
declare let ISAAC_SITE: string;
73+
declare let REACT_APP_API_VERSION: string;
7474
declare const ENV_QUIZ_FEATURE_FLAG: boolean;
75-
declare var EDITOR_PREVIEW: boolean;
75+
declare let EDITOR_PREVIEW: boolean;
7676

7777
declare module "inequality-grammar" {
7878
export const parseMathsExpression: (exp: string) => (any[]) | ParsingError;

0 commit comments

Comments
 (0)