Skip to content

Commit 85dc9ba

Browse files
authored
Merge pull request #1273 from mathjax/fix/eslint_package
Fixes problems with eslint
2 parents 9577a9d + c58d95f commit 85dc9ba

File tree

4 files changed

+36
-27
lines changed

4 files changed

+36
-27
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@
164164
]
165165
},
166166
"dependencies": {
167+
"@eslint/js": "^9.28.0",
167168
"@mathjax/mathjax-newcm-font": "0.4.3-beta.8",
168169
"@xmldom/xmldom": "^0.8.10",
169170
"mhchemparser": "^4.2.1",

pnpm-lock.yaml

Lines changed: 31 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

testsuite/src/setupTex.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ import {mathjax} from '#js/mathjax.js';
1313
import {OptionList} from '#js/util/Options.js';
1414
import {tmpJsonFile} from '#src/constants.js';
1515
import * as fs from 'fs';
16+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
1617
// @ts-ignore
1718
import {init} from '#source/node-main/node-main.mjs';
1819
import {expect} from '@jest/globals';
20+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
1921
// @ts-ignore
2022
import {source} from '#source/source.js';
2123

ts/input/tex/unicode/UnicodeConfiguration.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ const UnicodeMethods: { [key: string]: ParseMethod } = {
134134
let c = '';
135135
const text = parser.string.substring(parser.i);
136136
if (next === "'") {
137+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
137138
// @ts-ignore
138139
match = text.match(/^'([0-7]{1,7}) ?/u);
139140
if (match) {
@@ -145,6 +146,7 @@ const UnicodeMethods: { [key: string]: ParseMethod } = {
145146
c = String.fromCodePoint(parseInt(match[1], 16));
146147
}
147148
} else if (next === '`') {
149+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
148150
// @ts-ignore
149151
match = text.match(/^`(?:(\\\S)|(.))/u);
150152
if (match) {

0 commit comments

Comments
 (0)