mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-18 13:26:33 +01:00
FIX: eslint errors
This commit is contained in:
parent
93321f06fb
commit
170e5a742f
@ -4,7 +4,7 @@ import { Platform } from 'react-native';
|
||||
import loc from './loc';
|
||||
const prompt = require('./blue_modules/prompt');
|
||||
const currency = require('./blue_modules/currency');
|
||||
const BlueElectrum = require('./blue_modules/BlueElectrum'); // eslint-disable-line no-unused-vars
|
||||
const BlueElectrum = require('./blue_modules/BlueElectrum'); // eslint-disable-line @typescript-eslint/no-unused-vars
|
||||
const BlueApp = new AppStorage();
|
||||
// If attempt reaches 10, a wipe keychain option will be provided to the user.
|
||||
let unlockAttempt = 0;
|
||||
|
@ -158,6 +158,7 @@ class DeeplinkSchemaMatch {
|
||||
|
||||
const safelloStateToken = urlObject.query['safello-state-token'];
|
||||
let wallet;
|
||||
// eslint-disable-next-line no-unreachable-loop
|
||||
for (const w of context.wallets) {
|
||||
wallet = w;
|
||||
break;
|
||||
|
@ -348,6 +348,7 @@ export class HDSegwitBech32Transaction {
|
||||
|
||||
let add = 0;
|
||||
while (add <= 128) {
|
||||
// eslint-disable-next-line no-var
|
||||
var { tx, inputs, outputs, fee } = this._wallet.createTransaction(
|
||||
unconfirmedUtxos,
|
||||
[{ address: myAddress }],
|
||||
|
@ -162,7 +162,7 @@ export default class Lnurl {
|
||||
fixed: min === max,
|
||||
min,
|
||||
max,
|
||||
domain: data.callback.match(new RegExp('https://([^/]+)/'))[1],
|
||||
domain: data.callback.match(/https:\/\/([^/]+)\//)[1],
|
||||
metadata: data.metadata,
|
||||
description,
|
||||
image,
|
||||
|
@ -39,7 +39,6 @@ function DeviceQuickActions() {
|
||||
return data;
|
||||
};
|
||||
|
||||
|
||||
DeviceQuickActions.getEnabled = async () => {
|
||||
try {
|
||||
const isEnabled = await AsyncStorage.getItem(DeviceQuickActions.STORAGE_KEY);
|
||||
|
@ -16,7 +16,7 @@ const styles = StyleSheet.create({
|
||||
const Settings = () => {
|
||||
const { navigate } = useNavigation();
|
||||
// By simply having it here, it'll re-render the UI if language is changed
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const { language } = useContext(BlueStorageContext);
|
||||
|
||||
return (
|
||||
|
@ -44,7 +44,7 @@ describe('Entropy reducer and format', () => {
|
||||
it('handles 256 bits correctly', () => {
|
||||
let state = eReducer(undefined, { type: null }); // get init state
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
for (const i of [...Array(256)]) {
|
||||
state = eReducer(state, { type: 'push', value: 1, bits: 1 });
|
||||
}
|
||||
@ -143,7 +143,7 @@ describe('convertToBuffer function', () => {
|
||||
it('256 bits or 32bytes', () => {
|
||||
let state = eReducer(undefined, { type: null }); // get init state
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
for (const i of [...Array(256)]) {
|
||||
state = eReducer(state, { type: 'push', value: 1, bits: 1 });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user