Skip to content

chore: migrate ESLint to flat config and add SARIF scanning#110

Merged
wrigjl merged 2 commits into
ReduxISU:ReduxAPI_GUIfrom
wrigjl:chore/migrate-eslint-flat-config
Jun 17, 2026
Merged

chore: migrate ESLint to flat config and add SARIF scanning#110
wrigjl merged 2 commits into
ReduxISU:ReduxAPI_GUIfrom
wrigjl:chore/migrate-eslint-flat-config

Conversation

@wrigjl

@wrigjl wrigjl commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replaces .eslintrc.json with eslint.config.js (ESLint 9 flat config format), required for ESLint 10 compatibility when upstream parser support lands
  • Updates lint script from next lint (removed in Next.js 16) to eslint .
  • Renames codeql.ymlcode-analysis.yml and adds an eslint job that uploads results to the GitHub Security tab via SARIF
  • Adds eslint-results.sarif to .gitignore

Notes

ESLint 10 was investigated but blocked by @babel/eslint-parser (bundled in Next.js) and @typescript-eslint not yet implementing addGlobals required by ESLint 10. Tracked upstream at babel/babel#17791 and typescript-eslint/typescript-eslint#11829. This flat config migration means bumping to ESLint 10 will be a one-line change once those are resolved.

Test plan

  • npm run lint runs ESLint and reports findings
  • npx eslint . --format @microsoft/eslint-formatter-sarif --output-file eslint-results.sarif produces a valid SARIF file
  • CI workflow runs both CodeQL and ESLint jobs

🤖 Generated with Claude Code

wrigjl and others added 2 commits June 17, 2026 12:43
Replace .eslintrc.json with eslint.config.js (ESLint flat config format)
and update the lint script to invoke eslint directly since next lint was
removed in Next.js 16.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Rename codeql.yml to code-analysis.yml and add an eslint job that runs
ESLint with SARIF output for upload to GitHub Security tab. Also ignore
the generated eslint-results.sarif artifact.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@wrigjl wrigjl merged commit 14516de into ReduxISU:ReduxAPI_GUI Jun 17, 2026
7 checks passed
@wrigjl wrigjl deleted the chore/migrate-eslint-flat-config branch June 17, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants