Skip to content

Commit 1e8da12

Browse files
committed
Update Emscripten and Node dependencies
1 parent 15834bb commit 1e8da12

6 files changed

+39
-43
lines changed

.eslintrc.cjs

-26
This file was deleted.

bin/.eslintrc.cjs

-5
This file was deleted.

bin/emglken.js

+4-8
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,20 @@ const formats = [
5353
},
5454
]
5555

56-
async function run()
57-
{
56+
async function run() {
5857
const argv = minimist(process.argv.slice(2))
5958

6059
const storyfile = argv._[0]
6160

6261
let format
63-
for (const formatspec of formats)
64-
{
65-
if (formatspec.id === argv.vm || (!argv.vm && formatspec.extensions.test(storyfile)))
66-
{
62+
for (const formatspec of formats) {
63+
if (formatspec.id === argv.vm || (!argv.vm && formatspec.extensions.test(storyfile))) {
6764
format = formatspec
6865
break
6966
}
7067
}
7168

72-
if (!format)
73-
{
69+
if (!format) {
7470
console.error('Unknown storyfile format')
7571
return
7672
}

eslint.config.js

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import globals from 'globals'
2+
import js from '@eslint/js'
3+
4+
export default [
5+
js.configs.recommended,
6+
{
7+
languageOptions: {
8+
ecmaVersion: 12,
9+
globals: {
10+
...globals.browser,
11+
...globals.es2020,
12+
...globals.node,
13+
},
14+
sourceType: 'module',
15+
},
16+
rules: {
17+
'brace-style': ['error', 'stroustrup', {'allowSingleLine': true}],
18+
'comma-dangle': ['error', 'always-multiline'],
19+
curly: ['error'],
20+
eqeqeq: ['error', 'always', {null: 'ignore'}],
21+
indent: ['error', 4, {SwitchCase: 1}],
22+
'linebreak-style': ['error', 'unix'],
23+
'no-constant-condition': ['error', {checkLoops: false}],
24+
'no-control-regex': ['off'],
25+
'no-empty': ['error', {allowEmptyCatch: true}],
26+
'prefer-const': ['error', {destructuring: 'all'}],
27+
quotes: ['error', 'single'],
28+
semi: ['error', 'never'],
29+
},
30+
},
31+
]

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
"dependencies": {
2323
"lodash-es": "^4.17.21",
2424
"minimist": "^1.2.6",
25-
"mute-stream": "1.0.0"
25+
"mute-stream": "2.0.0"
2626
},
2727
"devDependencies": {
28-
"esbuild": "^0.20.0",
29-
"eslint": "^8.16.0"
28+
"esbuild": "^0.24.0",
29+
"eslint": "^9.0.0"
3030
},
3131
"scripts": {
3232
"build": "./build.sh",

src/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See https://doc.rust-lang.org/rustc/linker-plugin-lto.html
33

44
# LLVM version: 18~19
5-
FROM emscripten/emsdk:3.1.63
5+
FROM emscripten/emsdk:3.1.74
66

77
ENV CARGO_HOME=/.cargo \
88
PATH="/.cargo/bin:$PATH" \

0 commit comments

Comments
 (0)