chore(eslint): add browser globals to ESLint configuration
This commit is contained in:
parent
5d9000bb33
commit
b5e8d82bfa
1 changed files with 3 additions and 1 deletions
|
|
@ -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",
|
||||
},
|
||||
},
|
||||
);
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue