Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
# --------------------------------------------------------------------
# BEGIN Standard MS Devcontainer for Typescript-Node

# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.155.1/containers/typescript-node/.devcontainer/base.Dockerfile
# [Choice] Node.js version: 14, 12, 10
ARG VARIANT="22-bullseye"
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:1-${VARIANT}
# See here for image contents: https://github.com/devcontainers/images/tree/main/src/typescript-node
# [Choice] Node.js version comes from the base devcontainer variant
ARG VARIANT="24-bookworm"
FROM mcr.microsoft.com/devcontainers/typescript-node:${VARIANT}

# [Optional] Uncomment if you want to install an additional version of node using nvm
# ARG EXTRA_NODE_VERSION=10
Expand All @@ -24,7 +24,7 @@ FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:1-${VARIANT}
# Install EMSDK to /emsdk just like the EMSDK Dockerfile: https://github.com/emscripten-core/emsdk/blob/master/docker/Dockerfile
ENV EMSDK /emsdk
# We pin the EMSDK version rather than 'latest' so that everyone is using the same compiler version
ENV EMSCRIPTEN_VERSION 4.0.5
ENV EMSCRIPTEN_VERSION 5.0.0

RUN git clone https://github.com/emscripten-core/emsdk.git $EMSDK

Expand Down Expand Up @@ -72,5 +72,5 @@ RUN echo 'export EM_NODE_JS="$EMSDK_NODE"' >> /etc/bash.bashrc

# Install wget, gnupg, and sha3sum
RUN apt-get update \
&& apt-get install -y wget gnupg libdigest-sha3-perl \
&& rm -rf /var/lib/apt/lists/*
&& apt-get install -y wget gnupg libdigest-sha3-perl default-jre-headless \
&& rm -rf /var/lib/apt/lists/*
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version
"args": {
"VARIANT": "22-bullseye"
"VARIANT": "24-bookworm"
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
Expand All @@ -17,4 +17,4 @@
"postCreateCommand": "npm ci",
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
}
}
57 changes: 57 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
"use strict";

const js = require("@eslint/js");
const globals = require("globals");

module.exports = [
{
ignores: [
".eslintrc.js",
"dist/**",
"examples/**",
"documentation/**",
"node_modules/**",
"out/**",
"src/shell-post.js",
"src/shell-pre.js",
"test/**"
]
},
js.configs.recommended,
{
files: ["**/*.js"],
languageOptions: {
ecmaVersion: 5,
sourceType: "script",
globals: {
...globals.browser,
...globals.node,
...globals.es2015,
Atomics: "readonly",
SharedArrayBuffer: "readonly"
}
},
rules: {
camelcase: "off",
"comma-dangle": "off",
"dot-notation": "off",
indent: ["error", 4, { SwitchCase: 1 }],
"max-len": ["error", { code: 80 }],
"no-bitwise": "off",
"no-cond-assign": ["error", "except-parens"],
"no-param-reassign": "off",
"no-throw-literal": "off",
"no-useless-assignment": "off",
"no-var": "off",
"no-unused-vars": ["error", { caughtErrors: "none" }],
"object-shorthand": "off",
"prefer-arrow-callback": "off",
"prefer-destructuring": "off",
"prefer-spread": "off",
"prefer-template": "off",
quotes: ["error", "double"],
strict: "off",
"vars-on-top": "off"
}
}
];
Loading
Loading