Skip to content

Commit

Permalink
Add "ok" comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Feb 9, 2025
1 parent 07fb70f commit cd0d366
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions no-restricted-syntax.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,24 @@ export const string = selection?.toString(); // Ok

// eslint-disable-next-line no-restricted-syntax -- necessary to define rule
browser.runtime.getURL("options.html");
chrome.runtime.getURL("options.html");
chrome.runtime.getURL("options.html"); // Ok

// eslint-disable-next-line no-restricted-syntax -- necessary to define rule
browser.tabs.query({ active: true });
chrome.tabs.query({ active: true });
chrome.tabs.query({ active: true }); // Ok

// eslint-disable-next-line no-restricted-syntax -- necessary to define rule
browser.scripting.getRegisteredContentScripts();
chrome.scripting.getRegisteredContentScripts();
chrome.scripting.getRegisteredContentScripts(); // Ok

// eslint-disable-next-line no-restricted-syntax -- necessary to define rule
chrome.runtime.sendMessage("good soup");
browser.runtime.sendMessage("good soup");
browser.runtime.sendMessage("good soup"); // Ok

// eslint-disable-next-line no-restricted-syntax -- necessary to define rule
chrome.tabs.sendMessage(1, "u e e a i");
browser.tabs.sendMessage(1, "u e e a i");
browser.tabs.sendMessage(1, "u e e a i"); // Ok

// eslint-disable-next-line no-restricted-syntax -- necessary to define rule
chrome.runtime.onMessage.addListener(() => undefined);
browser.runtime.onMessage.addListener(() => undefined);
browser.runtime.onMessage.addListener(() => undefined); // Ok

0 comments on commit cd0d366

Please sign in to comment.