fix eslint and update eslint to 8.0.0

This commit is contained in:
Rohid
2024-08-31 01:34:01 +06:00
parent a87b17e48c
commit d7cd69783b
27 changed files with 5875 additions and 3876 deletions

View File

@@ -2,7 +2,7 @@ import React from 'react';
import { renderWithProviders } from '../utils/test-utils';
import MainList from './MainList';
jest.mock('webextension-polyfill', () => {
jest.mock<typeof import('webextension-polyfill')>('webextension-polyfill', () => {
return {
runtime: {
getManifest: () => {
@@ -13,8 +13,7 @@ jest.mock('webextension-polyfill', () => {
});
describe('MainList', () => {
let loggingEnabled: boolean;
let totalTimeLoggedToday: string;
let loggingEnabled: boolean, totalTimeLoggedToday: string;
beforeEach(() => {
loggingEnabled = false;
totalTimeLoggedToday = '1/1/1999';