diff --git a/.github/workflows/ossar-analysis.yml b/.github/workflows/ossar-analysis.yml index d04773ca..baaee13b 100644 --- a/.github/workflows/ossar-analysis.yml +++ b/.github/workflows/ossar-analysis.yml @@ -38,7 +38,7 @@ jobs: # Run open source static analysis tools - name: Run OSSAR - uses: github/ossar-action@v1 + uses: github/ossar-action@v2.0.0 id: ossar # Upload results to the Security tab diff --git a/eslint.config.js b/eslint.config.js index 83a04806..14f37005 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -2,16 +2,17 @@ import globals from "globals"; import pluginJs from "@eslint/js"; import tseslint from "typescript-eslint"; + +/** @type {import('eslint').Linter.Config[]} */ export default [ { - files: ["**/*.{js,mjs,cjs,ts}"], + files: [ + "**/*.{js,mjs,cjs,ts}" + ] }, { languageOptions: { - globals: { - ...globals.browser, - ...globals.node - } + globals: globals.browser } }, pluginJs.configs.recommended, @@ -20,15 +21,15 @@ export default [ rules: { "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-unused-expressions": "off", - "@typescript-eslint/no-namespace": "off", "@typescript-eslint/no-unused-vars": [ - "error", // or "error" + "error", { - "argsIgnorePattern": "^_", - // "varsIgnorePattern": "^_", - // "caughtErrorsIgnorePattern": "^_" + "args": "none", + "varsIgnorePattern": "^_" } - ] + ], + "@typescript-eslint/no-namespace": "off", } - }, + } + ]; \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 91959f4f..c1f382ca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "packages/*" ], "devDependencies": { - "@eslint/js": "9.16.0", + "@eslint/js": "^9.16.0", "@hpcc-js/esbuild-plugins": "1.2.0", "@types/emscripten": "1.39.13", "@types/node": "22.10.1", @@ -24,8 +24,8 @@ "@vitest/coverage-v8": "2.1.8", "assemblyscript": "0.27.31", "chokidar-cli": "3.0.0", - "eslint": "9.16.0", - "globals": "15.13.0", + "eslint": "^9.16.0", + "globals": "^15.13.0", "happy-dom": "^15.11.7", "lerna": "8.1.9", "npm-run-all": "4.1.5", @@ -37,7 +37,7 @@ "typedoc": "0.27.4", "typedoc-plugin-markdown": "4.3.2", "typescript": "5.7.2", - "typescript-eslint": "8.18.0", + "typescript-eslint": "^8.18.0", "vitepress": "1.5.0", "vitest": "2.1.8" } diff --git a/package.json b/package.json index cea9c455..308b94c6 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ "update-major": "npm run update-major-root && lerna run update-major" }, "devDependencies": { - "@eslint/js": "9.16.0", + "@eslint/js": "^9.16.0", "@hpcc-js/esbuild-plugins": "1.2.0", "@types/emscripten": "1.39.13", "@types/node": "22.10.1", @@ -87,8 +87,8 @@ "@vitest/coverage-v8": "2.1.8", "assemblyscript": "0.27.31", "chokidar-cli": "3.0.0", - "eslint": "9.16.0", - "globals": "15.13.0", + "eslint": "^9.16.0", + "globals": "^15.13.0", "happy-dom": "^15.11.7", "lerna": "8.1.9", "npm-run-all": "4.1.5", @@ -100,7 +100,7 @@ "typedoc": "0.27.4", "typedoc-plugin-markdown": "4.3.2", "typescript": "5.7.2", - "typescript-eslint": "8.18.0", + "typescript-eslint": "^8.18.0", "vitepress": "1.5.0", "vitest": "2.1.8" }, @@ -118,4 +118,4 @@ "url": "https://github.com/hpcc-systems/hpcc-js-wasm/issues" }, "homepage": "https://hpcc-systems.github.io/hpcc-js-wasm/" -} \ No newline at end of file +} diff --git a/packages/expat/src/expat.ts b/packages/expat/src/expat.ts index ffa861a2..5588da23 100644 --- a/packages/expat/src/expat.ts +++ b/packages/expat/src/expat.ts @@ -144,7 +144,7 @@ export class StackParser implements IParser { return retVal; } - endElement(_tag: string): StackElement { + endElement(tag: string): StackElement { return this._stack.pop()!; }