simulator/eslint.config.mjs
import js from "@eslint/js";
import globals from "globals";
export default [
js.configs.recommended,
{ files: ["**/*.js", "**/*.mjs"],
languageOptions: { ecmaVersion: 2023, sourceType: "module", globals: { ...globals.browser, ...globals.node } },
rules: {
"no-unused-vars": ["error", { args: "after-used", argsIgnorePattern: "^_", caughtErrors: "all", caughtErrorsIgnorePattern: "^_" }],
"eqeqeq": ["error", "always", { null: "ignore" }],
"no-implicit-globals": "error", "no-eval": "error", "no-implied-eval": "error", "no-new-func": "error",
"no-script-url": "error", "no-shadow": "error", "no-use-before-define": ["error", { functions: false }],
"no-unsafe-optional-chaining": "error", "no-constant-binary-expression": "error", "no-self-compare": "error",
"no-unmodified-loop-condition": "error", "no-unreachable-loop": "error", "no-promise-executor-return": "error",
"no-template-curly-in-string": "error", "array-callback-return": "error", "default-case-last": "error",
"no-fallthrough": "error", "no-param-reassign": "off", "prefer-const": "error", "no-var": "error",
"no-console": "off"
} } ];
Source and scopePublished from Smart-NOA-Controller/simulator/eslint.config.mjs at revision 6e5b205e3843. Full source text is retained; HTML presentation does not establish independent clinical review. In-memory simulation with no patient, monitor or pump interface; not clinically validated.