Skip to content

Commit 4fd14f9

Browse files
Migrate to ESLint 9 - Type and lint fixes
1 parent e954f9b commit 4fd14f9

343 files changed

Lines changed: 1053 additions & 951 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/app/src/cli/api/graphql/admin/generated/types.d.ts

Lines changed: 34 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,52 @@
1-
/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-explicit-any, tsdoc/syntax */
1+
/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-explicit-any, tsdoc/syntax, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */
22
import {JsonMapType} from '@shopify/cli-kit/node/toml'
3-
4-
export type Maybe<T> = T | null
5-
export type InputMaybe<T> = Maybe<T>
6-
export type Exact<T extends {[key: string]: unknown}> = {[K in keyof T]: T[K]}
7-
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {[SubKey in K]?: Maybe<T[SubKey]>}
8-
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {[SubKey in K]: Maybe<T[SubKey]>}
9-
export type MakeEmpty<T extends {[key: string]: unknown}, K extends keyof T> = {[_ in K]?: never}
10-
export type Incremental<T> = T | {[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never}
3+
export type Maybe<T> = T | null;
4+
export type InputMaybe<T> = Maybe<T>;
5+
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
6+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
7+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
8+
export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
9+
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
1110
/** All built-in and custom scalars, mapped to their actual values */
1211
export type Scalars = {
13-
ID: {input: string; output: string}
14-
String: {input: string; output: string}
15-
Boolean: {input: boolean; output: boolean}
16-
Int: {input: number; output: number}
17-
Float: {input: number; output: number}
12+
ID: { input: string; output: string; }
13+
String: { input: string; output: string; }
14+
Boolean: { input: boolean; output: boolean; }
15+
Int: { input: number; output: number; }
16+
Float: { input: number; output: number; }
1817
/**
1918
* An Amazon Web Services Amazon Resource Name (ARN), including the Region and account ID.
2019
* For more information, refer to [Amazon Resource Names](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
2120
*/
22-
ARN: {input: any; output: any}
21+
ARN: { input: any; output: any; }
2322
/**
2423
* Represents non-fractional signed whole numeric values. Since the value may
2524
* exceed the size of a 32-bit integer, it's encoded as a string.
2625
*/
27-
BigInt: {input: any; output: any}
26+
BigInt: { input: any; output: any; }
2827
/**
2928
* A string containing a hexadecimal representation of a color.
3029
*
3130
* For example, "#6A8D48".
3231
*/
33-
Color: {input: any; output: any}
32+
Color: { input: any; output: any; }
3433
/**
3534
* Represents an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)-encoded date string.
3635
* For example, September 7, 2019 is represented as `"2019-07-16"`.
3736
*/
38-
Date: {input: any; output: any}
37+
Date: { input: any; output: any; }
3938
/**
4039
* Represents an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)-encoded date and time string.
4140
* For example, 3:50 pm on September 7, 2019 in the time zone of UTC (Coordinated Universal Time) is
4241
* represented as `"2019-09-07T15:50:00Z`".
4342
*/
44-
DateTime: {input: any; output: any}
43+
DateTime: { input: any; output: any; }
4544
/**
4645
* A signed decimal number, which supports arbitrary precision and is serialized as a string.
4746
*
4847
* Example values: `"29.99"`, `"29.999"`.
4948
*/
50-
Decimal: {input: any; output: any}
49+
Decimal: { input: any; output: any; }
5150
/**
5251
* A string containing a strict subset of HTML code. Non-allowed tags will be stripped out.
5352
* Allowed tags:
@@ -63,14 +62,14 @@ export type Scalars = {
6362
*
6463
* Example value: `"Your current domain is <strong>example.myshopify.com</strong>."`
6564
*/
66-
FormattedString: {input: any; output: any}
65+
FormattedString: { input: any; output: any; }
6766
/**
6867
* A string containing HTML code. Refer to the [HTML spec](https://html.spec.whatwg.org/#elements-3) for a
6968
* complete list of HTML elements.
7069
*
7170
* Example value: `"<p>Grey cotton knit sweater.</p>"`
7271
*/
73-
HTML: {input: any; output: any}
72+
HTML: { input: any; output: any; }
7473
/**
7574
* A [JSON](https://www.json.org/json-en.html) object.
7675
*
@@ -86,37 +85,37 @@ export type Scalars = {
8685
* }
8786
* }`
8887
*/
89-
JSON: {input: JsonMapType | string; output: JsonMapType}
88+
JSON: { input: JsonMapType | string; output: JsonMapType; }
9089
/** A monetary value string without a currency symbol or code. Example value: `"100.57"`. */
91-
Money: {input: any; output: any}
90+
Money: { input: any; output: any; }
9291
/**
9392
* Represents a unique identifier in the Storefront API. A `StorefrontID` value can
9493
* be used wherever an ID is expected in the Storefront API.
9594
*
9695
* Example value: `"Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0LzEwMDc5Nzg1MTAw"`.
9796
*/
98-
StorefrontID: {input: any; output: any}
97+
StorefrontID: { input: any; output: any; }
9998
/**
10099
* Represents an [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986) and
101100
* [RFC 3987](https://datatracker.ietf.org/doc/html/rfc3987)-compliant URI string.
102101
*
103102
* For example, `"https://example.myshopify.com"` is a valid URL. It includes a scheme (`https`) and a host
104103
* (`example.myshopify.com`).
105104
*/
106-
URL: {input: string; output: string}
105+
URL: { input: string; output: string; }
107106
/**
108107
* An unsigned 64-bit integer. Represents whole numeric values between 0 and 2^64 - 1 encoded as a string of base-10 digits.
109108
*
110109
* Example value: `"50"`.
111110
*/
112-
UnsignedInt64: {input: any; output: any}
111+
UnsignedInt64: { input: any; output: any; }
113112
/**
114113
* Time between UTC time and a location's observed time, in the format `"+HH:MM"` or `"-HH:MM"`.
115114
*
116115
* Example value: `"-07:00"`.
117116
*/
118-
UtcOffset: {input: any; output: any}
119-
}
117+
UtcOffset: { input: any; output: any; }
118+
};
120119

121120
/** Metafield access permissions for the Admin API. */
122121
export type MetafieldAdminAccess =
@@ -129,7 +128,7 @@ export type MetafieldAdminAccess =
129128
/** The merchant and other apps have read-only access. */
130129
| 'PUBLIC_READ'
131130
/** The merchant and other apps have read and write access. */
132-
| 'PUBLIC_READ_WRITE'
131+
| 'PUBLIC_READ_WRITE';
133132

134133
/** Metafield access permissions for the Customer Account API. */
135134
export type MetafieldCustomerAccountAccess =
@@ -138,7 +137,7 @@ export type MetafieldCustomerAccountAccess =
138137
/** Read-only access. */
139138
| 'READ'
140139
/** Read and write access. */
141-
| 'READ_WRITE'
140+
| 'READ_WRITE';
142141

143142
/** Possible types of a metafield's owner resource. */
144143
export type MetafieldOwnerType =
@@ -195,14 +194,14 @@ export type MetafieldOwnerType =
195194
/** The Shop metafield owner type. */
196195
| 'SHOP'
197196
/** The Validation metafield owner type. */
198-
| 'VALIDATION'
197+
| 'VALIDATION';
199198

200199
/** Metafield access permissions for the Storefront API. */
201200
export type MetafieldStorefrontAccess =
202201
/** No access. */
203202
| 'NONE'
204203
/** Read-only access. */
205-
| 'PUBLIC_READ'
204+
| 'PUBLIC_READ';
206205

207206
/**
208207
* Metaobject access permissions for the Admin API. When the metaobject is app-owned, the owning app always has
@@ -218,11 +217,11 @@ export type MetaobjectAdminAccess =
218217
/** The merchant and other apps have read-only access. */
219218
| 'PUBLIC_READ'
220219
/** The merchant and other apps have read and write access. */
221-
| 'PUBLIC_READ_WRITE'
220+
| 'PUBLIC_READ_WRITE';
222221

223222
/** Metaobject access permissions for the Storefront API. */
224223
export type MetaobjectStorefrontAccess =
225224
/** No access. */
226225
| 'NONE'
227226
/** Read-only access. */
228-
| 'PUBLIC_READ'
227+
| 'PUBLIC_READ';
Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
1-
/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-explicit-any, tsdoc/syntax */
1+
/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-explicit-any, tsdoc/syntax, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */
22
import {JsonMapType} from '@shopify/cli-kit/node/toml'
3-
4-
export type Maybe<T> = T | null
5-
export type InputMaybe<T> = Maybe<T>
6-
export type Exact<T extends {[key: string]: unknown}> = {[K in keyof T]: T[K]}
7-
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {[SubKey in K]?: Maybe<T[SubKey]>}
8-
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {[SubKey in K]: Maybe<T[SubKey]>}
9-
export type MakeEmpty<T extends {[key: string]: unknown}, K extends keyof T> = {[_ in K]?: never}
10-
export type Incremental<T> = T | {[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never}
3+
export type Maybe<T> = T | null;
4+
export type InputMaybe<T> = Maybe<T>;
5+
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
6+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
7+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
8+
export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
9+
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
1110
/** All built-in and custom scalars, mapped to their actual values */
1211
export type Scalars = {
13-
ID: {input: string; output: string}
14-
String: {input: string; output: string}
15-
Boolean: {input: boolean; output: boolean}
16-
Int: {input: number; output: number}
17-
Float: {input: number; output: number}
12+
ID: { input: string; output: string; }
13+
String: { input: string; output: string; }
14+
Boolean: { input: boolean; output: boolean; }
15+
Int: { input: number; output: number; }
16+
Float: { input: number; output: number; }
1817
/**
1918
* Represents an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)-encoded date and time string.
2019
* For example, 3:50 pm on September 7, 2019 in the time zone of UTC (Coordinated Universal Time) is
2120
* represented as `"2019-09-07T15:50:00Z`".
2221
*/
23-
DateTime: {input: any; output: any}
22+
DateTime: { input: any; output: any; }
2423
/**
2524
* A [JSON](https://www.json.org/json-en.html) object.
2625
*
@@ -36,13 +35,13 @@ export type Scalars = {
3635
* }
3736
* }`
3837
*/
39-
JSON: {input: JsonMapType | string; output: JsonMapType}
38+
JSON: { input: JsonMapType | string; output: JsonMapType; }
4039
/**
4140
* Represents an [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986) and
4241
* [RFC 3987](https://datatracker.ietf.org/doc/html/rfc3987)-compliant URI string.
4342
*
4443
* For example, `"https://example.myshopify.com"` is a valid URL. It includes a scheme (`https`) and a host
4544
* (`example.myshopify.com`).
4645
*/
47-
URL: {input: string; output: string}
48-
}
46+
URL: { input: string; output: string; }
47+
};

packages/app/src/cli/api/graphql/app-management/generated/specifications.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/no-duplicate-type-constituents */
1+
/* eslint-disable @typescript-eslint/consistent-type-definitions */
22
import * as Types from './types.js'
33

44
import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core'
Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
1-
/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-explicit-any, tsdoc/syntax */
1+
/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-explicit-any, tsdoc/syntax, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */
22
import {JsonMapType} from '@shopify/cli-kit/node/toml'
3-
4-
export type Maybe<T> = T | null
5-
export type InputMaybe<T> = Maybe<T>
6-
export type Exact<T extends {[key: string]: unknown}> = {[K in keyof T]: T[K]}
7-
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {[SubKey in K]?: Maybe<T[SubKey]>}
8-
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {[SubKey in K]: Maybe<T[SubKey]>}
9-
export type MakeEmpty<T extends {[key: string]: unknown}, K extends keyof T> = {[_ in K]?: never}
10-
export type Incremental<T> = T | {[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never}
3+
export type Maybe<T> = T | null;
4+
export type InputMaybe<T> = Maybe<T>;
5+
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
6+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
7+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
8+
export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
9+
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
1110
/** All built-in and custom scalars, mapped to their actual values */
1211
export type Scalars = {
13-
ID: {input: string; output: string}
14-
String: {input: string; output: string}
15-
Boolean: {input: boolean; output: boolean}
16-
Int: {input: number; output: number}
17-
Float: {input: number; output: number}
12+
ID: { input: string; output: string; }
13+
String: { input: string; output: string; }
14+
Boolean: { input: boolean; output: boolean; }
15+
Int: { input: number; output: number; }
16+
Float: { input: number; output: number; }
1817
/**
1918
* Represents an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)-encoded date and time string.
2019
* For example, 3:50 pm on September 7, 2019 in the time zone of UTC (Coordinated Universal Time) is
2120
* represented as `"2019-09-07T15:50:00Z`".
2221
*/
23-
DateTime: {input: any; output: any}
22+
DateTime: { input: any; output: any; }
2423
/**
2524
* A [JSON](https://www.json.org/json-en.html) object.
2625
*
@@ -36,24 +35,24 @@ export type Scalars = {
3635
* }
3736
* }`
3837
*/
39-
JSON: {input: JsonMapType | string; output: JsonMapType}
38+
JSON: { input: JsonMapType | string; output: JsonMapType; }
4039
/**
4140
* Represents an [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986) and
4241
* [RFC 3987](https://datatracker.ietf.org/doc/html/rfc3987)-compliant URI string.
4342
*
4443
* For example, `"https://example.myshopify.com"` is a valid URL. It includes a scheme (`https`) and a host
4544
* (`example.myshopify.com`).
4645
*/
47-
URL: {input: string; output: string}
48-
}
46+
URL: { input: string; output: string; }
47+
};
4948

5049
/** The input fields used to create a new app version. */
5150
export type AppVersionInput = {
5251
/** The manifest from which to create the app version. */
53-
source?: InputMaybe<Scalars['JSON']['input']>
52+
source?: InputMaybe<Scalars['JSON']['input']>;
5453
/** URL referencing the source from which to create the app version. */
55-
sourceUrl?: InputMaybe<Scalars['URL']['input']>
56-
}
54+
sourceUrl?: InputMaybe<Scalars['URL']['input']>;
55+
};
5756

5857
/** Possible error codes that can be returned by AppManagement. */
5958
export type Code =
@@ -70,21 +69,21 @@ export type Code =
7069
/** A plugin error. */
7170
| 'PLUGIN'
7271
/** An unknown error. */
73-
| 'UNKNOWN'
72+
| 'UNKNOWN';
7473

7574
/** File extension for compressed files used for app sources. */
7675
export type SourceExtension =
7776
/** Brotli file extension. */
7877
| 'BR'
7978
/** ZIP file extension. */
80-
| 'ZIP'
79+
| 'ZIP';
8180

8281
/** The input fields for app version metadata. */
8382
export type VersionMetadataInput = {
8483
/** Message associated with this app version. */
85-
message?: InputMaybe<Scalars['String']['input']>
84+
message?: InputMaybe<Scalars['String']['input']>;
8685
/** Link to version control, if any. */
87-
sourceControlUrl?: InputMaybe<Scalars['URL']['input']>
86+
sourceControlUrl?: InputMaybe<Scalars['URL']['input']>;
8887
/** Version tag associated with this app version. */
89-
versionTag?: InputMaybe<Scalars['String']['input']>
90-
}
88+
versionTag?: InputMaybe<Scalars['String']['input']>;
89+
};

packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-cancel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/no-redundant-type-constituents */
1+
/* eslint-disable @typescript-eslint/consistent-type-definitions */
22
import * as Types from './types.js'
33

44
import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core'

packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-run-mutation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/no-redundant-type-constituents */
1+
/* eslint-disable @typescript-eslint/consistent-type-definitions */
22
import * as Types from './types.js'
33

44
import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core'

packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-run-query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/no-redundant-type-constituents */
1+
/* eslint-disable @typescript-eslint/consistent-type-definitions */
22
import * as Types from './types.js'
33

44
import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core'

packages/app/src/cli/api/graphql/bulk-operations/generated/get-bulk-operation-by-id.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/no-redundant-type-constituents */
1+
/* eslint-disable @typescript-eslint/consistent-type-definitions */
22
import * as Types from './types.js'
33

44
import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core'

packages/app/src/cli/api/graphql/bulk-operations/generated/list-bulk-operations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/no-redundant-type-constituents */
1+
/* eslint-disable @typescript-eslint/consistent-type-definitions */
22
import * as Types from './types.js'
33

44
import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core'

0 commit comments

Comments
 (0)