Skip to content

Commit 9ef5fed

Browse files
removed lint prefer-rest-params
1 parent ada7537 commit 9ef5fed

File tree

9 files changed

+0
-10
lines changed

9 files changed

+0
-10
lines changed

packages/destinations/web/google-ads/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export const destinationGoogleAds: Destination = {
2525
let func = fn || w.gtag;
2626
if (!w.gtag) {
2727
w.gtag = function gtag() {
28-
// eslint-disable-next-line prefer-rest-params
2928
(w.dataLayer as unknown[]).push(arguments);
3029
};
3130
func = func || w.gtag;

packages/destinations/web/google-ga4/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ export const destinationGoogleGA4: Destination = {
4040
let func = fn || w.gtag;
4141
if (!w.gtag) {
4242
w.gtag = function () {
43-
// eslint-disable-next-line prefer-rest-params
4443
(w.dataLayer as unknown[]).push(arguments);
4544
};
4645
func = func || w.gtag;

packages/destinations/web/plausible/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export const destinationPlausible: Destination = {
1818
w.plausible =
1919
w.plausible ||
2020
function () {
21-
// eslint-disable-next-line prefer-rest-params
2221
(w.plausible!.q = w.plausible!.q || []).push(arguments);
2322
};
2423
},

packages/sources/datalayer/src/__tests__/commands.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ describe('commands', () => {
66
let dataLayer: DataLayer;
77

88
const gtag: Gtag.Gtag = function () {
9-
// eslint-disable-next-line prefer-rest-params
109
dataLayer.push(arguments);
1110
};
1211

packages/sources/datalayer/src/__tests__/consent.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ describe('consent', () => {
88
let dataLayer: DataLayer;
99

1010
const gtag: Gtag.Gtag & WalkerOS.AnyFunction = function () {
11-
// eslint-disable-next-line prefer-rest-params
1211
dataLayer.push(arguments);
1312
};
1413

packages/sources/datalayer/src/__tests__/index.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ describe('source dataLayer', () => {
77
let dataLayer: DataLayer;
88

99
const gtag: Gtag.Gtag = function () {
10-
// eslint-disable-next-line prefer-rest-params
1110
dataLayer.push(arguments);
1211
};
1312

@@ -109,7 +108,6 @@ describe('source dataLayer', () => {
109108
'gtm.uniqueEventId': 1,
110109
},
111110
(function (...args: unknown[]) {
112-
// eslint-disable-next-line prefer-rest-params
113111
return arguments || args;
114112
})('event', 'arg', {
115113
foo: 'bar',

packages/sources/datalayer/src/__tests__/mapping.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ describe('mapping', () => {
77
let dataLayer: DataLayer;
88

99
const gtag: Gtag.Gtag & WalkerOS.AnyFunction = function () {
10-
// eslint-disable-next-line prefer-rest-params
1110
dataLayer.push(arguments);
1211
};
1312

packages/sources/walkerjs/src/lib/trigger.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export const createElb: (customLayer?: Elb.Layer) => Elb.Fn = (
2424
) => {
2525
return customLayer
2626
? function () {
27-
// eslint-disable-next-line prefer-rest-params
2827
customLayer.push(arguments);
2928
}
3029
: (elbOrg as Elb.Fn);

packages/utils/src/web/elb.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ import type { Elb } from '@elbwalker/types';
22

33
export const elb: Elb.Fn = function () {
44
const w = window as unknown as Record<string, unknown[]>;
5-
// eslint-disable-next-line prefer-rest-params
65
(w.elbLayer = w.elbLayer || []).push(arguments);
76
};

0 commit comments

Comments
 (0)