fix: upgrade ESLint config to v9 flat config format

Complete the migration from .eslintrc.js to eslint.config.js flat
config format for ESLint 9 compatibility. Add valid-jsdoc: off
(removed in ESLint 9 but enabled by eslint-config-google) and the
missing operator-linebreak: off override. Update the HLS ignore path
to match current version. Update CI workflow to install ESLint 9 and
its flat config dependencies.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Isaac Connor
2026-02-26 15:25:54 -05:00
parent a12d9749eb
commit 6c4890992d
4 changed files with 91 additions and 142 deletions

View File

@@ -19,6 +19,6 @@ jobs:
with:
submodules: recursive
- name: Install ESLint
run: npm install eslint@8.7.0 eslint-config-google@0.14.0 eslint-plugin-html@6.2.0 eslint-plugin-php-markup@6.0.0
run: npm install eslint@9 @eslint/eslintrc @eslint/js globals eslint-config-google@0.14.0 eslint-plugin-html eslint-plugin-php-markup@6.0.0
- name: Run ESLint
run: npx eslint --ext .js.php,.js .