summaryrefslogtreecommitdiff
path: root/eslint.config.js
diff options
context:
space:
mode:
authorBrandon Keiji <[email protected]>2025-04-21 23:10:25 -0700
committerGitHub <[email protected]>2025-04-22 06:10:25 +0000
commit98fa8d2b5134dd919dffb7cb68a3f97dad0b159f (patch)
tree1bf5b90cac7131459d5370f28ce569266284a864 /eslint.config.js
parent1eeadcd85cad317f41744f44246e8ab26188d6aa (diff)
fix: support node globals in scripts (#109)
Diffstat (limited to 'eslint.config.js')
-rw-r--r--eslint.config.js10
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