Skip to content

Commit 53fce6f

Browse files
committed
Update dev-dependencies
1 parent b62fa00 commit 53fce6f

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ export async function createStarryNight(grammars, options) {
435435
* `vscode-oniguruma`.
436436
*/
437437
async function createOniguruma(options) {
438-
const wasmBin = await getOniguruma(options || undefined)
439-
await vscodeOniguruma.loadWASM(wasmBin)
438+
const wasmBinary = await getOniguruma(options || undefined)
439+
await vscodeOniguruma.loadWASM(wasmBinary)
440440
return vscodeOniguruma
441441
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"@types/json-stable-stringify": "^1.0.0",
6464
"@types/mdast": "^4.0.0",
6565
"@types/node": "^20.0.0",
66-
"c8": "^8.0.0",
66+
"c8": "^9.0.0",
6767
"css": "^3.0.0",
6868
"generate-github-markdown-css": "^6.0.0",
6969
"hast-util-to-html": "^9.0.0",
@@ -75,7 +75,7 @@
7575
"type-coverage": "^2.0.0",
7676
"typescript": "^5.0.0",
7777
"unist-builder": "^4.0.0",
78-
"xo": "^0.56.0",
78+
"xo": "^0.57.0",
7979
"yaml": "^2.0.0"
8080
},
8181
"scripts": {

script/build.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,10 @@ const ruleSchema = {
223223
const grammarsBase = new URL('grammars/', gemBase)
224224
const grammarBasenames = await fs.readdir(grammarsBase)
225225
const scopes = grammarBasenames.flatMap(function (d) {
226-
const ext = path.extname(d)
226+
const extension = path.extname(d)
227227

228-
if (ext === '.json') {
229-
return path.basename(d, ext)
228+
if (extension === '.json') {
229+
return path.basename(d, extension)
230230
}
231231

232232
assert(d === 'version', d)

script/css.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,19 +128,19 @@ for (const fileName of fileNames) {
128128
const lightCss = light ? themeMap.get(light) : undefined
129129
const darkCss = dark ? themeMap.get(dark) : undefined
130130
/** @type {Array<string>} */
131-
const doc = []
131+
const document = []
132132

133133
if (lightCss && darkCss) {
134-
doc.push(
134+
document.push(
135135
lightCss,
136136
'@media (prefers-color-scheme: dark) {\n' + darkCss + '\n}'
137137
)
138138
} else {
139-
doc.push(lightCss || darkCss || '')
139+
document.push(lightCss || darkCss || '')
140140
}
141141

142142
for (const rule of selectorsMap.values()) {
143-
doc.push(rule)
143+
document.push(rule)
144144
}
145145

146146
writePromises.push(
@@ -150,7 +150,7 @@ for (const fileName of fileNames) {
150150
'/* This is a theme distributed by `starry-night`.\n' +
151151
' * It’s based on what GitHub uses on their site.\n' +
152152
' * See <https://github.com/wooorm/starry-night> for more info. */' +
153-
doc.join('\n\n'),
153+
document.join('\n\n'),
154154
{...prettierConfig, parser: 'css'}
155155
)
156156
)

script/preview.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {common, createStarryNight} from '../index.js'
1212

1313
const highlighter = await createStarryNight(common)
1414

15-
const doc = `<!doctype html>
15+
const document = `<!doctype html>
1616
<html lang=en>
1717
<title>Example</title>
1818
<link rel="stylesheet" href="https://esm.sh/github-markdown-css/github-markdown.css">
@@ -49,7 +49,7 @@ console.log(tree)`,
4949
</html>
5050
`
5151

52-
fs.writeFile(new URL('../media/preview.html', import.meta.url), doc)
52+
fs.writeFile(new URL('../media/preview.html', import.meta.url), document)
5353

5454
/**
5555
* @param {string} value

0 commit comments

Comments
 (0)