diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2024-04-13 09:04:18 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2024-04-13 09:44:25 +0200 |
| commit | 0c6aad8d28d9398dc36c70149e221f3af62203cc (patch) | |
| tree | 82feb54ad7f30d39be2d28b8a3a111a4d7698f76 /eslint.config.js | |
| parent | 69e11ac3fa82228ee544cc5423f344d84d1569f8 (diff) | |
| download | gohugo-theme-ed-0c6aad8d28d9398dc36c70149e221f3af62203cc.tar.gz | |
Replace Go script with Node.js implementation
Diffstat (limited to 'eslint.config.js')
| -rw-r--r-- | eslint.config.js | 14 |
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 + } + } } ]; |
