- Refactor duplicated video event listener boilerplate in wireVideoEvents() into onVideoEvent() helper (viewer.js: -57 lines) - Fix 3 ESLint no-unused-vars warnings (bare catch instead of unused _e) - Fix 1 additional no-unused-vars: unused 'data' param in MANIFEST_LOADED - Remove dead 'Hls.cast' entry from playerRank map (no strategy produces it) - Remove deprecated .eslintignore file (ESLint v9 uses flat config only) - Add __tests__/ to ESLint ignores in flat config Net: -20 lines (46 ins, 66 del). 83/83 tests pass, lint clean (0 warnings)
This commit is contained in:
1 parent
e11be9a20a
commit
ae8608148d
6 files changed
+21
-42
No files matched your search
+1
-1
@@ -3,7 +3,7 @@ import globals from 'globals';
|
||||
|
||||
export default [
|
||||
{
|
||||
ignores: ['dist/', 'node_modules/'],
|
||||
ignores: ['dist/', 'node_modules/', '__tests__/'],
|
||||
},
|
||||
{
|
||||
files: ['**/*.js', '**/*.mjs'],
|
||||
|
||||
Reference in new issue
Block a user