Skip to content

Commit 1022b37

Browse files
committed
chore(eslint): add browser globals for docs JS files
1 parent f2e4487 commit 1022b37

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ dist/
1515
.env.*
1616
*.bak
1717

18-
main.js
18+
/main.js
1919

2020
docs/tailwind.css

eslint.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ export default tseslint.config(
1010
js.configs.recommended,
1111
...tseslint.configs.recommended,
1212

13+
{
14+
files: ['docs/**/*.js'],
15+
languageOptions: {
16+
globals: {
17+
...globals.browser,
18+
...globals.es2021,
19+
},
20+
},
21+
},
1322
{
1423
files: ['src/**/*.ts'],
1524
languageOptions: {

0 commit comments

Comments
 (0)