Commit aaaba63
[Snyk] Security upgrade eslint from 8.57.1 to 10.0.0 (#14038)
* fix: tools/bundle-bug-finder/package.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-AJV-15274295
* Migrate bundle-bug-finder to ESLint 10 flat config
ESLint 10 dropped support for `.eslintrc` files. Replace with
`eslint.config.js` flat config. Remove Babel parser dependencies
since the default espree parser handles the `no-undef` use case.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix error masking in validate-bundle cleanup
Wrap cleanup `Deno.removeSync` calls in try-catch so that failures
to remove files that don't yet exist (e.g. when validation fails
before creating them) don't mask the real error.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Use ecmaVersion "latest" for bundled JS parsing
The bundled quarto.js contains import attributes (`with { type: "json" }`)
which require ES2025+. Use "latest" so espree tracks the spec automatically.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Update package/src/common/validate-bundle.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Christophe Dervieux <cderv@posit.co>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 76b9460 commit aaaba63
4 files changed
Lines changed: 23 additions & 14 deletions
File tree
- package/src/common
- tools/bundle-bug-finder
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
70 | 78 | | |
71 | | - | |
72 | 79 | | |
73 | 80 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 6 | + | |
8 | 7 | | |
9 | 8 | | |
0 commit comments