Skip to content

Commit 724afd6

Browse files
Bump @eslint/js from 9.38.0 to 10.0.1 (#1721)
* Bump @eslint/js from 9.38.0 to 10.0.1 Bumps [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) from 9.38.0 to 10.0.1. - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](https://github.com/eslint/eslint/commits/v10.0.1/packages/js) --- updated-dependencies: - dependency-name: "@eslint/js" dependency-version: 10.0.1 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * bump eslint to 10 and fix new no-useless-assignment findings * bump eslint-plugin-jest to 29 for eslint 10 peer support --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Patrick Kettner <patrickkettner@gmail.com>
1 parent db18810 commit 724afd6

6 files changed

Lines changed: 524 additions & 1251 deletions

File tree

api-samples/action/demo/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,7 @@ document
234234
chrome.action.setBadgeText({ text: '' });
235235

236236
// Randomly pick a new icon
237-
let index = lastIconIndex;
238-
index = Math.floor(Math.random() * EMOJI.length);
237+
let index = Math.floor(Math.random() * EMOJI.length);
239238
if (index === lastIconIndex) {
240239
// Dupe detected! Increment the index & modulo to make sure we don't go out of bounds
241240
index = (index + 1) % EMOJI.length;

api-samples/cookies/cookie-clearer/popup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function stringToUrl(input) {
5353
}
5454

5555
async function deleteDomainCookies(domain) {
56-
let cookiesDeleted = 0;
56+
let cookiesDeleted;
5757
try {
5858
const cookies = await chrome.cookies.getAll({ domain });
5959

api-samples/default_command_override/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ chrome.commands.onCommand.addListener(async (command) => {
1111
return tab.active;
1212
});
1313
const lastTab = tabs.length - 1;
14-
let newIndex = -1;
14+
let newIndex;
1515
if (command === 'flip-tabs-forward') {
1616
newIndex = activeIndex === lastTab ? 0 : activeIndex + 1;
1717
}

api-samples/power/background.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ function loadSavedState(callback) {
3838
* @param {string} newState New {StateEnum} to use.
3939
*/
4040
function setState(newState) {
41-
let imagePrefix = 'night';
42-
let title = '';
41+
let imagePrefix;
42+
let title;
4343

4444
switch (newState) {
4545
case StateEnum.DISABLED:

0 commit comments

Comments
 (0)