summaryrefslogtreecommitdiffstats
path: root/eslint.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'eslint.config.js')
-rw-r--r--eslint.config.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/eslint.config.js b/eslint.config.js
index 054bd46..93ee895 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -112,5 +112,19 @@ module.exports = [
...globals.node
}
}
+ },
+ {
+ files: ['netlify-preview.js'],
+ rules: {
+ // allow use of console
+ 'no-console': 'off'
+ },
+ languageOptions: {
+ 'sourceType': 'commonjs',
+ globals: {
+ // Browser global variables
+ ...globals.node
+ }
+ }
}
];