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 globals from "globals";
|
||||||
import tseslint from "typescript-eslint";
|
import tseslint from "typescript-eslint";
|
||||||
|
|
||||||
|
|
||||||
export default tseslint.config(
|
export default tseslint.config(
|
||||||
js.configs.recommended,
|
js.configs.recommended,
|
||||||
importPlugin.flatConfigs.recommended,
|
importPlugin.flatConfigs.recommended,
|
||||||
|
|
@ -32,6 +33,7 @@ export default tseslint.config(
|
||||||
},
|
},
|
||||||
globals: {
|
globals: {
|
||||||
...globals.node,
|
...globals.node,
|
||||||
|
...globals.browser,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
files: ["**/*.{js,mjs,cjs}"],
|
files: ["**/*.{js,mjs,cjs}"],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue