Skip to content

Commit

Permalink
fix: Ossar tests failing with new eslint file format
Browse files Browse the repository at this point in the history
Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
  • Loading branch information
GordonSmith committed Dec 10, 2024
1 parent 9e83548 commit 809dcd6
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ossar-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
25 changes: 13 additions & 12 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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",
}
},
}

];
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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"
},
Expand All @@ -118,4 +118,4 @@
"url": "https://github.com/hpcc-systems/hpcc-js-wasm/issues"
},
"homepage": "https://hpcc-systems.github.io/hpcc-js-wasm/"
}
}
2 changes: 1 addition & 1 deletion packages/expat/src/expat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export class StackParser implements IParser {
return retVal;
}

endElement(_tag: string): StackElement {
endElement(tag: string): StackElement {
return this._stack.pop()!;
}

Expand Down

0 comments on commit 809dcd6

Please sign in to comment.