summaryrefslogtreecommitdiffstats
path: root/eslint.config.js
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2024-04-13 09:04:18 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2024-04-13 09:44:25 +0200
commit0c6aad8d28d9398dc36c70149e221f3af62203cc (patch)
tree82feb54ad7f30d39be2d28b8a3a111a4d7698f76 /eslint.config.js
parent69e11ac3fa82228ee544cc5423f344d84d1569f8 (diff)
downloadgohugo-theme-ed-0c6aad8d28d9398dc36c70149e221f3af62203cc.tar.gz
Replace Go script with Node.js implementation
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
+ }
+ }
}
];