Skip to content

Commit

Permalink
Fix eslint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Duddino committed Oct 2, 2024
1 parent 88174c9 commit 4c094e5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion scripts/__mocks__/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class TestNetwork {
* @param{number} blockHeight
* @param{boolean} skipCoinstake
*/
(blockHeight, skipCoinstake = false) => {
(blockHeight, _skipCoinstake = false) => {
if (!this.#mapBlocks.has(blockHeight)) {
throw new Error('Requested block does not exist!');
}
Expand Down
5 changes: 2 additions & 3 deletions scripts/composables/use_masternode.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { ref, watch, toRaw, reactive } from 'vue';
import { ref, watch, toRaw } from 'vue';
import { defineStore } from 'pinia';
import Masternode from '../masternode.js';
import { Database } from '../database.js';
import { getEventEmitter } from '../event_bus.js';

export const useMasternode = defineStore('masternode', () => {
/**
* @type{import('vue').Ref<Masternode?>}
* @type{import('vue').Ref<import('../masternode.js').default?>}
*/
const masternode = ref(null);
const localProposals = ref([]);
Expand Down
1 change: 0 additions & 1 deletion scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import.meta.webpackContext('@fontsource/montserrat/', {
regExp: /\.css$/,
});
import './global.js';
import { getNetwork } from './network.js';

// Export global functions to the MPW namespace so we can use them in html
export {
Expand Down
3 changes: 1 addition & 2 deletions scripts/network.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { cChainParams } from './chain_params.js';
import { createAlert } from './misc.js';
import {
debugLog,
debugTimerEnd,
Expand All @@ -10,7 +9,7 @@ import { sleep } from './utils.js';
import { getEventEmitter } from './event_bus.js';
import { setExplorer, fAutoSwitch } from './settings.js';
import { cNode } from './settings.js';
import { ALERTS, tr, translation } from './i18n.js';
import { tr, translation } from './i18n.js';
import { Transaction } from './transaction.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion scripts/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { COutpoint, Transaction } from './transaction.js';
import { confirmPopup, createAlert, isShieldAddress } from './misc.js';
import { cChainParams } from './chain_params.js';
import { COIN } from './chain_params.js';
import { ALERTS, tr, translation } from './i18n.js';
import { ALERTS, translation } from './i18n.js';
import { encrypt } from './aes-gcm.js';
import { Database } from './database.js';
import { RECEIVE_TYPES } from './contacts-book.js';
Expand Down
1 change: 1 addition & 0 deletions test_setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ document.body.innerHTML = `
// Mock indexDB
vi.stubGlobal('indexedDB', new IDBFactory());

// eslint-disable-next-line
process.env.TZ = 'UTC';

0 comments on commit 4c094e5

Please sign in to comment.