diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 9b1acfc2..67934b3f 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -39,7 +39,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -50,7 +50,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -64,4 +64,5 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 + \ No newline at end of file diff --git a/.github/workflows/ossar-analysis.yml b/.github/workflows/ossar-analysis.yml deleted file mode 100644 index d04773ca..00000000 --- a/.github/workflows/ossar-analysis.yml +++ /dev/null @@ -1,48 +0,0 @@ -# This workflow integrates a collection of open source static analysis tools -# with GitHub code scanning. For documentation, or to provide feedback, visit -# https://github.com/github/ossar-action -name: OSSAR - -on: - pull_request: - -jobs: - OSSAR-Scan: - # OSSAR runs on windows-latest. - # ubuntu-latest and macos-latest support coming soon - runs-on: windows-latest - - steps: - # Checkout your code repository to scan - - name: Checkout repository - uses: actions/checkout@v4 - with: - # We must fetch at least the immediate parents so that if this is - # a pull request then we can checkout the head. - fetch-depth: 2 - - # If this run was triggered by a pull request event, then checkout - # the head of the pull request instead of the merge commit. - - run: git checkout HEAD^2 - if: ${{ github.event_name == 'pull_request' }} - - # Ensure a compatible version of dotnet is installed. - # The [Microsoft Security Code Analysis CLI](https://aka.ms/mscadocs) is built with dotnet v3.1.201. - # A version greater than or equal to v3.1.201 of dotnet must be installed on the agent in order to run this action. - # GitHub hosted runners already have a compatible version of dotnet installed and this step may be skipped. - # For self-hosted runners, ensure dotnet version 3.1.201 or later is installed by including this action: - # - name: Install .NET - # uses: actions/setup-dotnet@v1 - # with: - # dotnet-version: '3.1.x' - - # Run open source static analysis tools - - name: Run OSSAR - uses: github/ossar-action@v1 - id: ossar - - # Upload results to the Security tab - - name: Upload OSSAR results - uses: github/codeql-action/upload-sarif@v2 - with: - sarif_file: ${{ steps.ossar.outputs.sarifFile }} 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..e9693ac5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,7 +26,7 @@ "chokidar-cli": "3.0.0", "eslint": "9.16.0", "globals": "15.13.0", - "happy-dom": "^15.11.7", + "happy-dom": "15.11.7", "lerna": "8.1.9", "npm-run-all": "4.1.5", "playwright": "1.49.1", diff --git a/package.json b/package.json index cea9c455..8da52179 100644 --- a/package.json +++ b/package.json @@ -89,7 +89,7 @@ "chokidar-cli": "3.0.0", "eslint": "9.16.0", "globals": "15.13.0", - "happy-dom": "^15.11.7", + "happy-dom": "15.11.7", "lerna": "8.1.9", "npm-run-all": "4.1.5", "playwright": "1.49.1", 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()!; }