Skip to content

Commit

Permalink
fix(eslint): add message to no-restricted-globals
Browse files Browse the repository at this point in the history
  • Loading branch information
northword committed Sep 24, 2024
1 parent 66143e2 commit 7480463
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@ export default tseslint.config(
rules: {
"no-restricted-globals": [
"error",
"window",
"document",
"ZoteroPane",
{ message: "Use `Zotero.getMainWindow()` instead.", name: "window" },
{
message: "Use `Zotero.getMainWindow().document` instead.",
name: "document",
},
{
message: "Use `Zotero.getActiveZoteroPane()` instead.",
name: "ZoteroPane",
},
"Zotero_Tabs",
],

Expand Down

0 comments on commit 7480463

Please sign in to comment.