From b5e8d82bfa2e5802aedfe0c00f53c3f0819e3e64 Mon Sep 17 00:00:00 2001 From: C4illin Date: Fri, 4 Oct 2024 23:44:18 +0200 Subject: [PATCH] chore(eslint): add browser globals to ESLint configuration --- eslint.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eslint.config.js b/eslint.config.js index c19d233..0405ce8 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -8,6 +8,7 @@ import tailwind from "eslint-plugin-tailwindcss"; import globals from "globals"; import tseslint from "typescript-eslint"; + export default tseslint.config( js.configs.recommended, importPlugin.flatConfigs.recommended, @@ -32,6 +33,7 @@ export default tseslint.config( }, globals: { ...globals.node, + ...globals.browser, }, }, files: ["**/*.{js,mjs,cjs}"], @@ -52,4 +54,4 @@ export default tseslint.config( "import/no-named-as-default": "off", }, }, -); +); \ No newline at end of file