Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1238,11 +1238,11 @@ export default defineConfig([
// given a real tsconfig program, since these files intentionally sit
// outside any typed program.
{
files: ['*.config.ts', 'rollup.config.ts', 'jest.config.ts', 'eslint.config.ts', 'scripts/**/*.ts'],
files: ['*.config.ts', 'rollup.config.ts', 'jest.config.ts', 'eslint.config.ts', 'scripts/**/*.ts', 'scripts/**/*.mjs'],
...tseslint.configs.disableTypeChecked,
},
{
files: ['*.config.ts', 'rollup.config.ts', 'jest.config.ts', 'eslint.config.ts', 'scripts/**/*.ts'],
files: ['*.config.ts', 'rollup.config.ts', 'jest.config.ts', 'eslint.config.ts', 'scripts/**/*.ts', 'scripts/**/*.mjs'],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
Expand All @@ -1266,6 +1266,21 @@ export default defineConfig([
},
},

// scripts/webgpu-probe.mjs runs as a Node process that drives a Playwright
// page, but several of its callbacks are passed to `page.evaluate()` and
// execute inside the browser page instead — so the same file legitimately
// references both Node and browser globals. Layer `globals.browser` on top
// of the Node/scripts block above just for this file, rather than widening
// browser globals onto every `scripts/**` file.
{
files: ['scripts/webgpu-probe.mjs'],
languageOptions: {
globals: {
...globals.browser,
},
},
},

// create-exo-app: a Node CLI scaffolder with its own tsconfig. Console output is
// the tool's primary interface, so no-console is allowed here.
{
Expand Down
Loading
Loading