Skip to content

Commit

Permalink
Update Emscripten and Node dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
curiousdannii committed Dec 14, 2024
1 parent 15834bb commit 1e8da12
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 43 deletions.
26 changes: 0 additions & 26 deletions .eslintrc.cjs

This file was deleted.

5 changes: 0 additions & 5 deletions bin/.eslintrc.cjs

This file was deleted.

12 changes: 4 additions & 8 deletions bin/emglken.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,24 +53,20 @@ const formats = [
},
]

async function run()
{
async function run() {
const argv = minimist(process.argv.slice(2))

const storyfile = argv._[0]

let format
for (const formatspec of formats)
{
if (formatspec.id === argv.vm || (!argv.vm && formatspec.extensions.test(storyfile)))
{
for (const formatspec of formats) {
if (formatspec.id === argv.vm || (!argv.vm && formatspec.extensions.test(storyfile))) {
format = formatspec
break
}
}

if (!format)
{
if (!format) {
console.error('Unknown storyfile format')
return
}
Expand Down
31 changes: 31 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import globals from 'globals'
import js from '@eslint/js'

export default [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 12,
globals: {
...globals.browser,
...globals.es2020,
...globals.node,
},
sourceType: 'module',
},
rules: {
'brace-style': ['error', 'stroustrup', {'allowSingleLine': true}],
'comma-dangle': ['error', 'always-multiline'],
curly: ['error'],
eqeqeq: ['error', 'always', {null: 'ignore'}],
indent: ['error', 4, {SwitchCase: 1}],
'linebreak-style': ['error', 'unix'],
'no-constant-condition': ['error', {checkLoops: false}],
'no-control-regex': ['off'],
'no-empty': ['error', {allowEmptyCatch: true}],
'prefer-const': ['error', {destructuring: 'all'}],
quotes: ['error', 'single'],
semi: ['error', 'never'],
},
},
]
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"dependencies": {
"lodash-es": "^4.17.21",
"minimist": "^1.2.6",
"mute-stream": "1.0.0"
"mute-stream": "2.0.0"
},
"devDependencies": {
"esbuild": "^0.20.0",
"eslint": "^8.16.0"
"esbuild": "^0.24.0",
"eslint": "^9.0.0"
},
"scripts": {
"build": "./build.sh",
Expand Down
2 changes: 1 addition & 1 deletion src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://doc.rust-lang.org/rustc/linker-plugin-lto.html

# LLVM version: 18~19
FROM emscripten/emsdk:3.1.63
FROM emscripten/emsdk:3.1.74

ENV CARGO_HOME=/.cargo \
PATH="/.cargo/bin:$PATH" \
Expand Down

0 comments on commit 1e8da12

Please sign in to comment.