Skip to content

Commit 1a3fa1d

Browse files
committed
fix: linter
1 parent 250dd48 commit 1a3fa1d

File tree

3 files changed

+69
-21
lines changed

3 files changed

+69
-21
lines changed

eslint.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import jsdoc from "eslint-plugin-jsdoc";
22
import eslintjs from "@eslint/js";
3+
import globals from "globals";
34

45
const {configs: eslintConfigs} = eslintjs;
56

@@ -8,9 +9,10 @@ export default [
89
eslintConfigs["recommended"],
910
{
1011
languageOptions: {
11-
// if we ever use more globals than this, pull in the `globals` package
1212
globals: {
13-
console: false
13+
console: false,
14+
...globals.browser, // EventTarget, Event
15+
...globals.nodeBuiltin,
1416
}
1517
},
1618
rules: {

package-lock.json

Lines changed: 64 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"esbuild": "^0.25.0",
6363
"eslint": "^8.56.0",
6464
"eslint-plugin-jsdoc": "^48.0.4",
65+
"globals": "^16.3.0",
6566
"mocha": "^10.2.0",
6667
"prettier": "^3.4.2",
6768
"typescript": "~5.7.3"

0 commit comments

Comments
 (0)