Skip to content

Commit 232a676

Browse files
shellylnrunarberg
authored andcommitted
Fix dependencies vulnerabilities.
Update eslint rules settings. Update ascii2mathml to v0.6.x and fix for importing to receive default export.
1 parent c3e33d7 commit 232a676

File tree

4 files changed

+3969
-16
lines changed

4 files changed

+3969
-16
lines changed

.eslintrc

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,18 @@
66
"rules": {
77
"array-bracket-spacing": [ 2, "always" ],
88
"block-scoped-var": 2,
9-
"brace-style": [ 2, "1tbs", { allowSingleLine: true } ],
9+
"brace-style": [ 2, "1tbs", { "allowSingleLine": true } ],
1010
"comma-dangle": [ 2, "never" ],
1111
"comma-spacing": 2,
1212
"comma-style": 2,
13-
"consistent-this": [ 2, self ],
13+
"consistent-this": [ 2, "self" ],
1414
"consistent-return": 2,
1515
"curly": 2,
1616
"dot-notation": 2,
1717
"eol-last": 2,
1818
"eqeqeq": 2,
1919
"guard-for-in": 2,
2020
"handle-callback-err": 2,
21-
"indent": [ 2, 2, { "VariableDeclarator": { "var": 2, "let": 2, "const": 3 } } ],
2221
"max-depth": [ 1, 6 ],
2322
"max-nested-callbacks": [ 1, 4 ],
2423
"max-len": [ 2, 120, 1000 ],
@@ -39,7 +38,6 @@
3938
"no-div-regex": 2,
4039
"no-empty": 2,
4140
"no-empty-character-class": 2,
42-
"no-empty-label": 2,
4341
"no-else-return": 2,
4442
"no-eq-null": 2,
4543
"no-ex-assign": 2,
@@ -96,16 +94,15 @@
9694
"radix": 2,
9795
"semi": 2,
9896
"semi-spacing": [ 2, { "before": false, "after": true } ],
99-
"space-after-keywords": [ 2, "always" ],
97+
"keyword-spacing": [ 2, { "before": true, "after": true } ],
10098
"space-before-blocks": 2,
10199
"space-in-parens": [ 2, "never" ],
102100
"space-infix-ops": 2,
103-
"space-return-throw-case": 2,
104101
"space-unary-ops": 2,
105102
"spaced-comment": [ 2, "always", { "exceptions": [ "/" ] } ],
106103
"strict": [ 2, "global" ],
107104
"use-isnan": 2,
108105
"yoda": 2,
109-
"valid-typeof": 2,
106+
"valid-typeof": 2
110107
}
111108
}

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ function makeMath_block(open, close) {
202202
function makeMathRenderer(renderingOptions) {
203203
if (ascii2mathml === null) {
204204
try {
205-
ascii2mathml = require('ascii2mathml');
205+
ascii2mathml = require('ascii2mathml').default;
206206
} catch (e) {
207207
return renderingOptions && renderingOptions.display === 'block' ?
208208
function(tokens, idx) {

0 commit comments

Comments
 (0)