diff options
| author | Brandon Keiji <[email protected]> | 2025-04-21 23:10:25 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-22 06:10:25 +0000 |
| commit | 98fa8d2b5134dd919dffb7cb68a3f97dad0b159f (patch) | |
| tree | 1bf5b90cac7131459d5370f28ce569266284a864 /eslint.config.js | |
| parent | 1eeadcd85cad317f41744f44246e8ab26188d6aa (diff) | |
fix: support node globals in scripts (#109)
Diffstat (limited to 'eslint.config.js')
| -rw-r--r-- | eslint.config.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/eslint.config.js b/eslint.config.js index 16577628..4078fdff 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -173,6 +173,16 @@ export default tseslint.config( ], }, }, + // extra settings for scripts that we run directly with node + { + files: ['./scripts/**/*.js'], + languageOptions: { + globals: { + process: 'readonly', + console: 'readonly', + }, + }, + }, // Prettier config must be last prettierConfig, // Custom eslint rules for this repo |
