Skip to content

Commit 67d9661

Browse files
committed
fix: eslint errors
1 parent 151574c commit 67d9661

9 files changed

+10
-0
lines changed

src/common/network.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
12
/* global navigator */
23
import { postMessageToHostedField } from './message';
34
import PayTheoryHostedFieldTransactional from '../components/pay-theory-hosted-field-transactional';

src/common/observe.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-unused-vars */
12
import * as messaging from './message';
23
import {
34
CashBarcodeObject,

src/field-set/payment-button.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint no-console: ["error", { allow: ["warn", "error"] }] */
2+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
23
/*global navigator*/
34
import common from '../common';
45
import * as valid from './validation';

src/field-set/payment-fields-v2.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-unused-vars */
12
/* eslint no-console: ["error", { allow: ["warn", "error"] }] */
23
/*global navigator*/
34
import common from '../common';

src/field-set/payment-qr.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint no-console: ["error", { allow: ["warn", "error"] }] */
2+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
23
/*global navigator*/
34
import common from '../common';
45
import * as valid from './validation';

src/polyfill.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
12
/* global Blob globalThis global */
23
/*eslint no-extend-native: ["error", { "exceptions": ["String", "Array"] }]*/
34
//https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith
@@ -571,6 +572,7 @@ Response.redirect = function (url, status) {
571572

572573
export var DOMException = global.DOMException;
573574
try {
575+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
574576
const hasDomException = new DOMException();
575577
} catch (err) {
576578
DOMException = function (message, name) {

test/common.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
12
import sinon from 'sinon';
23

34
export const api = 'pt-sandbox-demo-89f9afeeb9953508186f7cd1a721c269';

test/createPaymentFields.test.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-unused-vars */
12
import { html, fixture, expect, assert } from '@open-wc/testing';
23
import { aTimeout } from '@open-wc/testing-helpers';
34
import sinon from 'sinon';

test/credit-card.test.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-unused-vars */
12
import { html, fixture, expect, assert } from '@open-wc/testing';
23
import { aTimeout } from '@open-wc/testing-helpers';
34
import sinon from 'sinon';

0 commit comments

Comments
 (0)