Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Lint] npm run format #160

Merged
merged 1 commit into from
Jun 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .render-buildpacks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"buildpacks": [
"heroku/nodejs"
]
}
}
36 changes: 18 additions & 18 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"command": "npm start",
"name": "npm start",
"request": "launch",
"type": "node-terminal"
},
{
"command": "npm run debug",
"name": "npm debug",
"request": "launch",
"type": "node-terminal"
},
]
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"command": "npm start",
"name": "npm start",
"request": "launch",
"type": "node-terminal"
},
{
"command": "npm run debug",
"name": "npm debug",
"request": "launch",
"type": "node-terminal"
}
]
}
12 changes: 6 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"jshint.enable": false,
"eslint.enable": true,
"markdownlint.config":{
"MD041": false
}
}
"jshint.enable": false,
"eslint.enable": true,
"markdownlint.config": {
"MD041": false
}
}
2 changes: 1 addition & 1 deletion src/@types/augmentations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ declare module "express" {
}
}

declare module 'express-session' {
declare module "express-session" {
export interface SessionData {
user: AuthenticateUser;
}
Expand Down
288 changes: 145 additions & 143 deletions src/@types/texmath.d.ts
Original file line number Diff line number Diff line change
@@ -1,150 +1,152 @@
declare module 'markdown-it-texmath' {
declare module "markdown-it-texmath" {
export = texmath;
}

declare function texmath(md: any, options: any): void;
declare namespace texmath {
function mergeDelimiters(delims: any): {
inline: any[];
block: any[];
};
function inline(rule: any): (state: any, silent: any) => any;
function block(rule: any): (state: any, begLine: any, endLine: any, silent: any) => any;
function render(tex: any, displayMode: any, options: any): any;
function use(katex: any): typeof texmath;
let inlineRuleNames: string[];
let blockRuleNames: string[];
function $_pre(str: any, outerSpace: any, beg: any): boolean;
function $_post(str: any, outerSpace: any, end: any): boolean;
namespace rules {
namespace brackets {
let inline: {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
}[];
let block: {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
}[];
}
namespace doxygen {
let inline_1: {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
}[];
export { inline_1 as inline };
let block_1: {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
}[];
export { block_1 as block };
}
namespace gitlab {
let inline_2: {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
}[];
export { inline_2 as inline };
let block_2: {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
}[];
export { block_2 as block };
}
namespace julia {
let inline_3: ({
name: string;
rex: RegExp;
tmpl: string;
tag: string;
spaceEnclosed?: undefined;
pre?: undefined;
post?: undefined;
} | {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
spaceEnclosed: boolean;
pre: (str: any, outerSpace: any, beg: any) => boolean;
post: (str: any, outerSpace: any, end: any) => boolean;
})[];
export { inline_3 as inline };
let block_3: {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
}[];
export { block_3 as block };
}
namespace kramdown {
let inline_4: {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
}[];
export { inline_4 as inline };
let block_4: {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
}[];
export { block_4 as block };
}
namespace beg_end {
let inline_5: any[];
export { inline_5 as inline };
let block_5: {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
}[];
export { block_5 as block };
}
namespace dollars {
let inline_6: ({
name: string;
rex: RegExp;
tmpl: string;
tag: string;
displayMode: boolean;
pre: (str: any, outerSpace: any, beg: any) => boolean;
post: (str: any, outerSpace: any, end: any) => boolean;
outerSpace?: undefined;
} | {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
outerSpace: boolean;
pre: (str: any, outerSpace: any, beg: any) => boolean;
post: (str: any, outerSpace: any, end: any) => boolean;
displayMode?: undefined;
})[];
export { inline_6 as inline };
let block_6: {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
}[];
export { block_6 as block };
}
function mergeDelimiters(delims: any): {
inline: any[];
block: any[];
};
function inline(rule: any): (state: any, silent: any) => any;
function block(
rule: any,
): (state: any, begLine: any, endLine: any, silent: any) => any;
function render(tex: any, displayMode: any, options: any): any;
function use(katex: any): typeof texmath;
let inlineRuleNames: string[];
let blockRuleNames: string[];
function $_pre(str: any, outerSpace: any, beg: any): boolean;
function $_post(str: any, outerSpace: any, end: any): boolean;
namespace rules {
namespace brackets {
let inline: {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
}[];
let block: {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
}[];
}
namespace doxygen {
let inline_1: {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
}[];
export { inline_1 as inline };
let block_1: {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
}[];
export { block_1 as block };
}
namespace gitlab {
let inline_2: {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
}[];
export { inline_2 as inline };
let block_2: {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
}[];
export { block_2 as block };
}
namespace julia {
let inline_3: ({
name: string;
rex: RegExp;
tmpl: string;
tag: string;
spaceEnclosed?: undefined;
pre?: undefined;
post?: undefined;
} | {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
spaceEnclosed: boolean;
pre: (str: any, outerSpace: any, beg: any) => boolean;
post: (str: any, outerSpace: any, end: any) => boolean;
})[];
export { inline_3 as inline };
let block_3: {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
}[];
export { block_3 as block };
}
namespace kramdown {
let inline_4: {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
}[];
export { inline_4 as inline };
let block_4: {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
}[];
export { block_4 as block };
}
namespace beg_end {
let inline_5: any[];
export { inline_5 as inline };
let block_5: {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
}[];
export { block_5 as block };
}
namespace dollars {
let inline_6: ({
name: string;
rex: RegExp;
tmpl: string;
tag: string;
displayMode: boolean;
pre: (str: any, outerSpace: any, beg: any) => boolean;
post: (str: any, outerSpace: any, end: any) => boolean;
outerSpace?: undefined;
} | {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
outerSpace: boolean;
pre: (str: any, outerSpace: any, beg: any) => boolean;
post: (str: any, outerSpace: any, end: any) => boolean;
displayMode?: undefined;
})[];
export { inline_6 as inline };
let block_6: {
name: string;
rex: RegExp;
tmpl: string;
tag: string;
}[];
export { block_6 as block };
}
}
}
Loading
Loading