attio 0.0.1-experimental.20250619 → 0.0.1-experimental.20250625
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/build/client/create-client-build-config.js +1 -1
- package/lib/client/components/avatar.d.ts +8 -2
- package/lib/client/components/combobox.d.ts +2 -0
- package/lib/client/record-widget.d.ts +4 -0
- package/lib/commands/version/list.js +3 -3
- package/lib/template/biome.jsonc +59 -0
- package/lib/template/eslint.attio.config.js +41 -0
- package/lib/template/package.json +18 -13
- package/lib/template/src/hello-world-action.tsx +3 -2
- package/lib/template/src/hello-world-dialog.tsx +2 -1
- package/lib/template/src/stoic-quote.tsx +1 -1
- package/lib/template/tsconfig.json +4 -8
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lint.cjs +28 -17
- package/package.json +3 -3
- package/schema.graphql +285 -89
- package/lib/template/eslint.config.js +0 -57
package/schema.graphql
CHANGED
|
@@ -1,37 +1,79 @@
|
|
|
1
|
-
"""
|
|
1
|
+
"""
|
|
2
|
+
An object in the workspace.
|
|
3
|
+
"""
|
|
2
4
|
interface IObject {
|
|
3
|
-
"""
|
|
5
|
+
"""
|
|
6
|
+
The name of the object.
|
|
7
|
+
"""
|
|
4
8
|
name: String!
|
|
5
9
|
|
|
6
|
-
"""
|
|
10
|
+
"""
|
|
11
|
+
The slug of the object.
|
|
12
|
+
"""
|
|
7
13
|
slug: String!
|
|
8
14
|
record(
|
|
9
|
-
"""
|
|
15
|
+
"""
|
|
16
|
+
ID of the record.
|
|
17
|
+
"""
|
|
10
18
|
id: String!
|
|
11
19
|
): Record
|
|
12
20
|
records(
|
|
13
|
-
"""
|
|
21
|
+
"""
|
|
22
|
+
IDs of the records.
|
|
23
|
+
"""
|
|
14
24
|
ids: [String!]!
|
|
15
25
|
): [Record]!
|
|
16
26
|
}
|
|
17
27
|
|
|
18
|
-
"""
|
|
28
|
+
"""
|
|
29
|
+
A record in the workspace.
|
|
30
|
+
"""
|
|
19
31
|
interface Record {
|
|
20
|
-
"""
|
|
32
|
+
"""
|
|
33
|
+
The id of the record.
|
|
34
|
+
"""
|
|
21
35
|
id: ID!
|
|
22
36
|
attribute(
|
|
23
|
-
"""
|
|
37
|
+
"""
|
|
38
|
+
Slug of the attribute
|
|
39
|
+
"""
|
|
24
40
|
slug: String!
|
|
25
41
|
): AttributeValue
|
|
26
42
|
|
|
27
|
-
"""
|
|
43
|
+
"""
|
|
44
|
+
The URL of the record in Attio.
|
|
45
|
+
"""
|
|
28
46
|
url: String!
|
|
29
47
|
|
|
30
|
-
"""
|
|
48
|
+
"""
|
|
49
|
+
The record's object.
|
|
50
|
+
"""
|
|
31
51
|
object: IObject!
|
|
32
52
|
}
|
|
33
53
|
|
|
34
|
-
union AttributeValue =
|
|
54
|
+
union AttributeValue =
|
|
55
|
+
| RecordReferenceValue
|
|
56
|
+
| MultiRecordReferenceValue
|
|
57
|
+
| PersonalNameValue
|
|
58
|
+
| TextValue
|
|
59
|
+
| DateValue
|
|
60
|
+
| TimestampValue
|
|
61
|
+
| NumberValue
|
|
62
|
+
| MultiEmailAddressValue
|
|
63
|
+
| DomainValue
|
|
64
|
+
| MultiDomainValue
|
|
65
|
+
| LocationValue
|
|
66
|
+
| InteractionValue
|
|
67
|
+
| SelectValue
|
|
68
|
+
| MultiSelectValue
|
|
69
|
+
| StatusValue
|
|
70
|
+
| CheckboxValue
|
|
71
|
+
| RatingValue
|
|
72
|
+
| PhoneNumberValue
|
|
73
|
+
| MultiPhoneNumberValue
|
|
74
|
+
| CurrencyValue
|
|
75
|
+
| ActorReferenceValue
|
|
76
|
+
| MultiActorReferenceValue
|
|
35
77
|
|
|
36
78
|
type RecordReferenceValue {
|
|
37
79
|
value: Record
|
|
@@ -155,32 +197,44 @@ type ActorReferenceValue {
|
|
|
155
197
|
value: Actor
|
|
156
198
|
}
|
|
157
199
|
|
|
158
|
-
"""
|
|
200
|
+
"""
|
|
201
|
+
An actor inside Attio.
|
|
202
|
+
"""
|
|
159
203
|
union Actor = User | SystemActor | APITokenActor | App | Workflow
|
|
160
204
|
|
|
161
|
-
"""
|
|
205
|
+
"""
|
|
206
|
+
An Attio user.
|
|
207
|
+
"""
|
|
162
208
|
type User {
|
|
163
209
|
id: String!
|
|
164
210
|
email: String!
|
|
165
211
|
name: String!
|
|
166
212
|
}
|
|
167
213
|
|
|
168
|
-
"""
|
|
214
|
+
"""
|
|
215
|
+
A system inside Attio.
|
|
216
|
+
"""
|
|
169
217
|
type SystemActor {
|
|
170
218
|
type: String!
|
|
171
219
|
}
|
|
172
220
|
|
|
173
|
-
"""
|
|
221
|
+
"""
|
|
222
|
+
An Attio API token.
|
|
223
|
+
"""
|
|
174
224
|
type APITokenActor {
|
|
175
225
|
type: String!
|
|
176
226
|
}
|
|
177
227
|
|
|
178
|
-
"""
|
|
228
|
+
"""
|
|
229
|
+
An Attio app.
|
|
230
|
+
"""
|
|
179
231
|
type App {
|
|
180
232
|
type: String!
|
|
181
233
|
}
|
|
182
234
|
|
|
183
|
-
"""
|
|
235
|
+
"""
|
|
236
|
+
An Attio workflow.
|
|
237
|
+
"""
|
|
184
238
|
type Workflow {
|
|
185
239
|
type: String!
|
|
186
240
|
}
|
|
@@ -189,44 +243,68 @@ type MultiActorReferenceValue {
|
|
|
189
243
|
values: [Actor!]!
|
|
190
244
|
}
|
|
191
245
|
|
|
192
|
-
"""
|
|
246
|
+
"""
|
|
247
|
+
An object in the workspace.
|
|
248
|
+
"""
|
|
193
249
|
type Object implements IObject {
|
|
194
|
-
"""
|
|
250
|
+
"""
|
|
251
|
+
The name of the object.
|
|
252
|
+
"""
|
|
195
253
|
name: String!
|
|
196
254
|
|
|
197
|
-
"""
|
|
255
|
+
"""
|
|
256
|
+
The slug of the object.
|
|
257
|
+
"""
|
|
198
258
|
slug: String!
|
|
199
259
|
record(
|
|
200
|
-
"""
|
|
260
|
+
"""
|
|
261
|
+
ID of the record.
|
|
262
|
+
"""
|
|
201
263
|
id: String!
|
|
202
264
|
): Record
|
|
203
265
|
records(
|
|
204
|
-
"""
|
|
266
|
+
"""
|
|
267
|
+
IDs of the records.
|
|
268
|
+
"""
|
|
205
269
|
ids: [String!]!
|
|
206
270
|
): [Record]!
|
|
207
271
|
}
|
|
208
272
|
|
|
209
|
-
"""
|
|
273
|
+
"""
|
|
274
|
+
A record for a custom object.
|
|
275
|
+
"""
|
|
210
276
|
type CustomRecord implements Record {
|
|
211
|
-
"""
|
|
277
|
+
"""
|
|
278
|
+
The id of the record.
|
|
279
|
+
"""
|
|
212
280
|
id: ID!
|
|
213
281
|
attribute(
|
|
214
|
-
"""
|
|
282
|
+
"""
|
|
283
|
+
Slug of the attribute
|
|
284
|
+
"""
|
|
215
285
|
slug: String!
|
|
216
286
|
): AttributeValue
|
|
217
287
|
|
|
218
|
-
"""
|
|
288
|
+
"""
|
|
289
|
+
The URL of the record in Attio.
|
|
290
|
+
"""
|
|
219
291
|
url: String!
|
|
220
292
|
|
|
221
|
-
"""
|
|
293
|
+
"""
|
|
294
|
+
The record's object.
|
|
295
|
+
"""
|
|
222
296
|
object: IObject!
|
|
223
297
|
}
|
|
224
298
|
|
|
225
299
|
type Query {
|
|
226
|
-
"""
|
|
300
|
+
"""
|
|
301
|
+
The objects inside the workspace.
|
|
302
|
+
"""
|
|
227
303
|
objects: [IObject]
|
|
228
304
|
object(
|
|
229
|
-
"""
|
|
305
|
+
"""
|
|
306
|
+
Slug of the object.
|
|
307
|
+
"""
|
|
230
308
|
slug: String!
|
|
231
309
|
): IObject
|
|
232
310
|
people: people!
|
|
@@ -235,73 +313,111 @@ type Query {
|
|
|
235
313
|
workspaces: workspaces!
|
|
236
314
|
users: users!
|
|
237
315
|
person(
|
|
238
|
-
"""
|
|
316
|
+
"""
|
|
317
|
+
The ID of the person record.
|
|
318
|
+
"""
|
|
239
319
|
id: String!
|
|
240
320
|
): Person
|
|
241
321
|
company(
|
|
242
|
-
"""
|
|
322
|
+
"""
|
|
323
|
+
The ID of the company record.
|
|
324
|
+
"""
|
|
243
325
|
id: String!
|
|
244
326
|
): Company
|
|
245
327
|
deal(
|
|
246
|
-
"""
|
|
328
|
+
"""
|
|
329
|
+
The ID of the deal record.
|
|
330
|
+
"""
|
|
247
331
|
id: String!
|
|
248
332
|
): Deal
|
|
249
333
|
workspace(
|
|
250
|
-
"""
|
|
334
|
+
"""
|
|
335
|
+
The ID of the workspace record.
|
|
336
|
+
"""
|
|
251
337
|
id: String!
|
|
252
338
|
): WorkspaceRecord
|
|
253
339
|
userRecord(
|
|
254
|
-
"""
|
|
340
|
+
"""
|
|
341
|
+
The ID of the user record.
|
|
342
|
+
"""
|
|
255
343
|
id: String!
|
|
256
344
|
): UserRecord
|
|
257
345
|
record(
|
|
258
|
-
"""
|
|
346
|
+
"""
|
|
347
|
+
The ID of the record.
|
|
348
|
+
"""
|
|
259
349
|
id: String!
|
|
260
350
|
|
|
261
|
-
"""
|
|
351
|
+
"""
|
|
352
|
+
Slug of the record's object.
|
|
353
|
+
"""
|
|
262
354
|
object: String!
|
|
263
355
|
): Record
|
|
264
356
|
records(
|
|
265
|
-
"""
|
|
357
|
+
"""
|
|
358
|
+
IDs of the records.
|
|
359
|
+
"""
|
|
266
360
|
ids: [String!]!
|
|
267
361
|
|
|
268
|
-
"""
|
|
362
|
+
"""
|
|
363
|
+
Slug of the record's object.
|
|
364
|
+
"""
|
|
269
365
|
object: String!
|
|
270
366
|
): [Record]!
|
|
271
367
|
currentUser: User!
|
|
272
368
|
currentWorkspace: Workspace!
|
|
273
369
|
}
|
|
274
370
|
|
|
275
|
-
"""
|
|
371
|
+
"""
|
|
372
|
+
The person object in the workspace.
|
|
373
|
+
"""
|
|
276
374
|
type people implements IObject {
|
|
277
|
-
"""
|
|
375
|
+
"""
|
|
376
|
+
The name of the object.
|
|
377
|
+
"""
|
|
278
378
|
name: String!
|
|
279
379
|
|
|
280
|
-
"""
|
|
380
|
+
"""
|
|
381
|
+
The slug of the object.
|
|
382
|
+
"""
|
|
281
383
|
slug: String!
|
|
282
384
|
record(
|
|
283
|
-
"""
|
|
385
|
+
"""
|
|
386
|
+
ID of the person record.
|
|
387
|
+
"""
|
|
284
388
|
id: String!
|
|
285
389
|
): Person
|
|
286
390
|
records(
|
|
287
|
-
"""
|
|
391
|
+
"""
|
|
392
|
+
IDs of the person records.
|
|
393
|
+
"""
|
|
288
394
|
ids: [String!]!
|
|
289
395
|
): [Person]!
|
|
290
396
|
}
|
|
291
397
|
|
|
292
|
-
"""
|
|
398
|
+
"""
|
|
399
|
+
A person record.
|
|
400
|
+
"""
|
|
293
401
|
type Person implements Record {
|
|
294
|
-
"""
|
|
402
|
+
"""
|
|
403
|
+
The id of the record.
|
|
404
|
+
"""
|
|
295
405
|
id: ID!
|
|
296
406
|
attribute(
|
|
297
|
-
"""
|
|
407
|
+
"""
|
|
408
|
+
Slug of the attribute
|
|
409
|
+
"""
|
|
298
410
|
slug: String!
|
|
299
411
|
): AttributeValue
|
|
300
412
|
|
|
301
|
-
"""
|
|
413
|
+
"""
|
|
414
|
+
The URL of the record in Attio.
|
|
415
|
+
"""
|
|
302
416
|
url: String!
|
|
303
417
|
|
|
304
|
-
"""
|
|
418
|
+
"""
|
|
419
|
+
The record's object.
|
|
420
|
+
"""
|
|
305
421
|
object: IObject!
|
|
306
422
|
name: PersonalName
|
|
307
423
|
email_addresses: [String!]!
|
|
@@ -331,19 +447,29 @@ type Person implements Record {
|
|
|
331
447
|
created_by: Actor
|
|
332
448
|
}
|
|
333
449
|
|
|
334
|
-
"""
|
|
450
|
+
"""
|
|
451
|
+
A company record.
|
|
452
|
+
"""
|
|
335
453
|
type Company implements Record {
|
|
336
|
-
"""
|
|
454
|
+
"""
|
|
455
|
+
The id of the record.
|
|
456
|
+
"""
|
|
337
457
|
id: ID!
|
|
338
458
|
attribute(
|
|
339
|
-
"""
|
|
459
|
+
"""
|
|
460
|
+
Slug of the attribute
|
|
461
|
+
"""
|
|
340
462
|
slug: String!
|
|
341
463
|
): AttributeValue
|
|
342
464
|
|
|
343
|
-
"""
|
|
465
|
+
"""
|
|
466
|
+
The URL of the record in Attio.
|
|
467
|
+
"""
|
|
344
468
|
url: String!
|
|
345
469
|
|
|
346
|
-
"""
|
|
470
|
+
"""
|
|
471
|
+
The record's object.
|
|
472
|
+
"""
|
|
347
473
|
object: IObject!
|
|
348
474
|
domains: [String!]!
|
|
349
475
|
name: String
|
|
@@ -376,19 +502,29 @@ type Company implements Record {
|
|
|
376
502
|
created_by: Actor
|
|
377
503
|
}
|
|
378
504
|
|
|
379
|
-
"""
|
|
505
|
+
"""
|
|
506
|
+
A deal record.
|
|
507
|
+
"""
|
|
380
508
|
type Deal implements Record {
|
|
381
|
-
"""
|
|
509
|
+
"""
|
|
510
|
+
The id of the record.
|
|
511
|
+
"""
|
|
382
512
|
id: ID!
|
|
383
513
|
attribute(
|
|
384
|
-
"""
|
|
514
|
+
"""
|
|
515
|
+
Slug of the attribute
|
|
516
|
+
"""
|
|
385
517
|
slug: String!
|
|
386
518
|
): AttributeValue
|
|
387
519
|
|
|
388
|
-
"""
|
|
520
|
+
"""
|
|
521
|
+
The URL of the record in Attio.
|
|
522
|
+
"""
|
|
389
523
|
url: String!
|
|
390
524
|
|
|
391
|
-
"""
|
|
525
|
+
"""
|
|
526
|
+
The record's object.
|
|
527
|
+
"""
|
|
392
528
|
object: IObject!
|
|
393
529
|
name: String
|
|
394
530
|
stage: Status
|
|
@@ -401,19 +537,29 @@ type Deal implements Record {
|
|
|
401
537
|
created_by: Actor
|
|
402
538
|
}
|
|
403
539
|
|
|
404
|
-
"""
|
|
540
|
+
"""
|
|
541
|
+
A workspace record.
|
|
542
|
+
"""
|
|
405
543
|
type WorkspaceRecord implements Record {
|
|
406
|
-
"""
|
|
544
|
+
"""
|
|
545
|
+
The id of the record.
|
|
546
|
+
"""
|
|
407
547
|
id: ID!
|
|
408
548
|
attribute(
|
|
409
|
-
"""
|
|
549
|
+
"""
|
|
550
|
+
Slug of the attribute
|
|
551
|
+
"""
|
|
410
552
|
slug: String!
|
|
411
553
|
): AttributeValue
|
|
412
554
|
|
|
413
|
-
"""
|
|
555
|
+
"""
|
|
556
|
+
The URL of the record in Attio.
|
|
557
|
+
"""
|
|
414
558
|
url: String!
|
|
415
559
|
|
|
416
|
-
"""
|
|
560
|
+
"""
|
|
561
|
+
The record's object.
|
|
562
|
+
"""
|
|
417
563
|
object: IObject!
|
|
418
564
|
workspace_id: String
|
|
419
565
|
name: String
|
|
@@ -425,19 +571,29 @@ type WorkspaceRecord implements Record {
|
|
|
425
571
|
created_by: Actor
|
|
426
572
|
}
|
|
427
573
|
|
|
428
|
-
"""
|
|
574
|
+
"""
|
|
575
|
+
A user record.
|
|
576
|
+
"""
|
|
429
577
|
type UserRecord implements Record {
|
|
430
|
-
"""
|
|
578
|
+
"""
|
|
579
|
+
The id of the record.
|
|
580
|
+
"""
|
|
431
581
|
id: ID!
|
|
432
582
|
attribute(
|
|
433
|
-
"""
|
|
583
|
+
"""
|
|
584
|
+
Slug of the attribute
|
|
585
|
+
"""
|
|
434
586
|
slug: String!
|
|
435
587
|
): AttributeValue
|
|
436
588
|
|
|
437
|
-
"""
|
|
589
|
+
"""
|
|
590
|
+
The URL of the record in Attio.
|
|
591
|
+
"""
|
|
438
592
|
url: String!
|
|
439
593
|
|
|
440
|
-
"""
|
|
594
|
+
"""
|
|
595
|
+
The record's object.
|
|
596
|
+
"""
|
|
441
597
|
object: IObject!
|
|
442
598
|
person: Person
|
|
443
599
|
primary_email_address: String
|
|
@@ -447,70 +603,110 @@ type UserRecord implements Record {
|
|
|
447
603
|
created_by: Actor
|
|
448
604
|
}
|
|
449
605
|
|
|
450
|
-
"""
|
|
606
|
+
"""
|
|
607
|
+
The company object in the workspace.
|
|
608
|
+
"""
|
|
451
609
|
type companies implements IObject {
|
|
452
|
-
"""
|
|
610
|
+
"""
|
|
611
|
+
The name of the object.
|
|
612
|
+
"""
|
|
453
613
|
name: String!
|
|
454
614
|
|
|
455
|
-
"""
|
|
615
|
+
"""
|
|
616
|
+
The slug of the object.
|
|
617
|
+
"""
|
|
456
618
|
slug: String!
|
|
457
619
|
record(
|
|
458
|
-
"""
|
|
620
|
+
"""
|
|
621
|
+
ID of the company record.
|
|
622
|
+
"""
|
|
459
623
|
id: String!
|
|
460
624
|
): Company
|
|
461
625
|
records(
|
|
462
|
-
"""
|
|
626
|
+
"""
|
|
627
|
+
IDs of the company records.
|
|
628
|
+
"""
|
|
463
629
|
ids: [String!]!
|
|
464
630
|
): [Company]!
|
|
465
631
|
}
|
|
466
632
|
|
|
467
|
-
"""
|
|
633
|
+
"""
|
|
634
|
+
The deal object in the workspace.
|
|
635
|
+
"""
|
|
468
636
|
type deals implements IObject {
|
|
469
|
-
"""
|
|
637
|
+
"""
|
|
638
|
+
The name of the object.
|
|
639
|
+
"""
|
|
470
640
|
name: String!
|
|
471
641
|
|
|
472
|
-
"""
|
|
642
|
+
"""
|
|
643
|
+
The slug of the object.
|
|
644
|
+
"""
|
|
473
645
|
slug: String!
|
|
474
646
|
record(
|
|
475
|
-
"""
|
|
647
|
+
"""
|
|
648
|
+
ID of the deal record.
|
|
649
|
+
"""
|
|
476
650
|
id: String!
|
|
477
651
|
): Deal
|
|
478
652
|
records(
|
|
479
|
-
"""
|
|
653
|
+
"""
|
|
654
|
+
IDs of the deal records.
|
|
655
|
+
"""
|
|
480
656
|
ids: [String!]!
|
|
481
657
|
): [Deal]!
|
|
482
658
|
}
|
|
483
659
|
|
|
484
|
-
"""
|
|
660
|
+
"""
|
|
661
|
+
The workspace object in the workspace.
|
|
662
|
+
"""
|
|
485
663
|
type workspaces implements IObject {
|
|
486
|
-
"""
|
|
664
|
+
"""
|
|
665
|
+
The name of the object.
|
|
666
|
+
"""
|
|
487
667
|
name: String!
|
|
488
668
|
|
|
489
|
-
"""
|
|
669
|
+
"""
|
|
670
|
+
The slug of the object.
|
|
671
|
+
"""
|
|
490
672
|
slug: String!
|
|
491
673
|
record(
|
|
492
|
-
"""
|
|
674
|
+
"""
|
|
675
|
+
ID of the workspace record.
|
|
676
|
+
"""
|
|
493
677
|
id: String!
|
|
494
678
|
): WorkspaceRecord
|
|
495
679
|
records(
|
|
496
|
-
"""
|
|
680
|
+
"""
|
|
681
|
+
IDs of the workspace records.
|
|
682
|
+
"""
|
|
497
683
|
ids: [String!]!
|
|
498
684
|
): [WorkspaceRecord]!
|
|
499
685
|
}
|
|
500
686
|
|
|
501
|
-
"""
|
|
687
|
+
"""
|
|
688
|
+
The user object in the workspace.
|
|
689
|
+
"""
|
|
502
690
|
type users implements IObject {
|
|
503
|
-
"""
|
|
691
|
+
"""
|
|
692
|
+
The name of the object.
|
|
693
|
+
"""
|
|
504
694
|
name: String!
|
|
505
695
|
|
|
506
|
-
"""
|
|
696
|
+
"""
|
|
697
|
+
The slug of the object.
|
|
698
|
+
"""
|
|
507
699
|
slug: String!
|
|
508
700
|
record(
|
|
509
|
-
"""
|
|
701
|
+
"""
|
|
702
|
+
ID of the user record.
|
|
703
|
+
"""
|
|
510
704
|
id: String!
|
|
511
705
|
): UserRecord
|
|
512
706
|
records(
|
|
513
|
-
"""
|
|
707
|
+
"""
|
|
708
|
+
IDs of the user records.
|
|
709
|
+
"""
|
|
514
710
|
ids: [String!]!
|
|
515
711
|
): [UserRecord]!
|
|
516
712
|
}
|
|
@@ -519,4 +715,4 @@ type Workspace {
|
|
|
519
715
|
id: String!
|
|
520
716
|
name: String!
|
|
521
717
|
slug: String!
|
|
522
|
-
}
|
|
718
|
+
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
const {FlatCompat} = require("@eslint/eslintrc")
|
|
2
|
-
const js = require("@eslint/js")
|
|
3
|
-
const reactPlugin = require("eslint-plugin-react")
|
|
4
|
-
const reactHooksPlugin = require("eslint-plugin-react-hooks")
|
|
5
|
-
const typescriptEslintPlugin = require("@typescript-eslint/eslint-plugin")
|
|
6
|
-
const typescriptParser = require("@typescript-eslint/parser")
|
|
7
|
-
const attio = require("attio/lint")
|
|
8
|
-
|
|
9
|
-
const compat = new FlatCompat({
|
|
10
|
-
baseDirectory: __dirname,
|
|
11
|
-
recommendedConfig: js.configs.recommended,
|
|
12
|
-
})
|
|
13
|
-
|
|
14
|
-
module.exports = [
|
|
15
|
-
...compat.extends("eslint:recommended"),
|
|
16
|
-
...compat.extends("plugin:react/recommended"),
|
|
17
|
-
...compat.extends("plugin:@typescript-eslint/recommended"),
|
|
18
|
-
{
|
|
19
|
-
languageOptions: {
|
|
20
|
-
parser: typescriptParser,
|
|
21
|
-
parserOptions: {
|
|
22
|
-
ecmaFeatures: {
|
|
23
|
-
jsx: true,
|
|
24
|
-
},
|
|
25
|
-
ecmaVersion: 12,
|
|
26
|
-
sourceType: "module",
|
|
27
|
-
project: ["./tsconfig.json"],
|
|
28
|
-
tsconfigRootDir: __dirname,
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
plugins: {
|
|
32
|
-
"react": reactPlugin,
|
|
33
|
-
"react-hooks": reactHooksPlugin,
|
|
34
|
-
"@typescript-eslint": typescriptEslintPlugin,
|
|
35
|
-
attio,
|
|
36
|
-
},
|
|
37
|
-
rules: {
|
|
38
|
-
"react/jsx-key": "error",
|
|
39
|
-
"react-hooks/rules-of-hooks": "error",
|
|
40
|
-
"react-hooks/exhaustive-deps": "error",
|
|
41
|
-
"@typescript-eslint/no-unused-vars": "error",
|
|
42
|
-
"@typescript-eslint/ban-ts-comment": "off",
|
|
43
|
-
"attio/attio-client-import": "error",
|
|
44
|
-
"attio/server-default-export": "error",
|
|
45
|
-
"attio/form-submit-button": "error",
|
|
46
|
-
"attio/widget-text-children": "error",
|
|
47
|
-
},
|
|
48
|
-
settings: {
|
|
49
|
-
react: {
|
|
50
|
-
version: "detect",
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
ignores: ["node_modules/", "dist/"],
|
|
56
|
-
},
|
|
57
|
-
]
|