Skip to content

Commit

Permalink
fix: eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cdias900 committed May 8, 2024
1 parent 7d23e69 commit 087c4b5
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/common/network.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
/* global navigator */
import { postMessageToHostedField } from './message';
import PayTheoryHostedFieldTransactional from '../components/pay-theory-hosted-field-transactional';
Expand Down
1 change: 1 addition & 0 deletions src/common/observe.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import * as messaging from './message';
import {
CashBarcodeObject,
Expand Down
1 change: 1 addition & 0 deletions src/field-set/payment-button.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint no-console: ["error", { allow: ["warn", "error"] }] */
// eslint-disable-next-line @typescript-eslint/no-unused-vars
/*global navigator*/
import common from '../common';
import * as valid from './validation';
Expand Down
1 change: 1 addition & 0 deletions src/field-set/payment-fields-v2.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint no-console: ["error", { allow: ["warn", "error"] }] */
/*global navigator*/
import common from '../common';
Expand Down
1 change: 1 addition & 0 deletions src/field-set/payment-qr.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint no-console: ["error", { allow: ["warn", "error"] }] */
// eslint-disable-next-line @typescript-eslint/no-unused-vars
/*global navigator*/
import common from '../common';
import * as valid from './validation';
Expand Down
2 changes: 2 additions & 0 deletions src/polyfill.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
/* global Blob globalThis global */
/*eslint no-extend-native: ["error", { "exceptions": ["String", "Array"] }]*/
//https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith
Expand Down Expand Up @@ -571,6 +572,7 @@ Response.redirect = function (url, status) {

export var DOMException = global.DOMException;
try {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const hasDomException = new DOMException();
} catch (err) {
DOMException = function (message, name) {
Expand Down
1 change: 1 addition & 0 deletions test/common.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import sinon from 'sinon';

export const api = 'pt-sandbox-demo-89f9afeeb9953508186f7cd1a721c269';
Expand Down
1 change: 1 addition & 0 deletions test/createPaymentFields.test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { html, fixture, expect, assert } from '@open-wc/testing';
import { aTimeout } from '@open-wc/testing-helpers';
import sinon from 'sinon';
Expand Down
1 change: 1 addition & 0 deletions test/credit-card.test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { html, fixture, expect, assert } from '@open-wc/testing';
import { aTimeout } from '@open-wc/testing-helpers';
import sinon from 'sinon';
Expand Down

0 comments on commit 087c4b5

Please sign in to comment.