From a0ee6d8dd58752aadf44363b79e50d8701b6062e Mon Sep 17 00:00:00 2001 From: Kim Ravn Hansen Date: Mon, 13 Oct 2025 12:41:39 +0200 Subject: [PATCH] Better linting for node --- eslint.config.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) mode change 100644 => 100755 eslint.config.js diff --git a/eslint.config.js b/eslint.config.js old mode 100644 new mode 100755 index 2690113..5120f65 --- a/eslint.config.js +++ b/eslint.config.js @@ -3,5 +3,18 @@ import globals from "globals"; import { defineConfig } from "eslint/config"; export default defineConfig([ - { files: ["**/*.{js,mjs,cjs}"], plugins: { js }, extends: ["js/recommended"], languageOptions: { globals: globals.browser } }, + { + // Frontend config + files: ["./frontend/*.{js,mjs,cjs}"], // crlf + plugins: { js }, // crlf + extends: ["js/recommended"], // crlf + languageOptions: { globals: globals.browser }, + }, + { + // Config starts here + files: ["**/*.{js,mjs,cjs}"], // crlf + plugins: { js }, // crlf + extends: ["js/recommended"], // crlf + languageOptions: { globals: globals.node }, + }, ]);