Skip to content

Commit 131366a

Browse files
committed
chore: add browser-specific ESLint configuration for public files
1 parent 6b92ca2 commit 131366a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

eslint.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,14 @@ export default defineConfig(
101101
},
102102
},
103103

104+
// Browser-specific configuration for public files
105+
{
106+
files: ['**/public/**/*.{js,jsx,mjs,cjs}'],
107+
languageOptions: {
108+
globals: { ...globals.browser, ...globals.es2021 },
109+
},
110+
},
111+
104112
// React specific configuration
105113
{
106114
files: ['**/*.{js,jsx,mjs,cjs,ts,tsx}'],

0 commit comments

Comments
 (0)