@@ -1366,6 +1366,99 @@ ruleTesterWithTypes.run(RULE_NAME, rule, {
1366
1366
} ,
1367
1367
] ,
1368
1368
} ,
1369
+ // TODO: Add support for Atomico
1370
+ // {
1371
+ // code: /* tsx */ `
1372
+ // import { c, useState } from "atomico";
1373
+
1374
+ // function component(){
1375
+ // const [ count, setCount ] = useState(0);
1376
+ // return <host>{ count }</host>;
1377
+ // }
1378
+
1379
+ // export const Counter = c(counter);
1380
+ // `,
1381
+ // errors: [
1382
+ // {
1383
+ // data: {
1384
+ // name: "component",
1385
+ // forwardRef: false,
1386
+ // hookCalls: 1,
1387
+ // memo: false,
1388
+ // },
1389
+ // messageId: "FUNCTION_COMPONENT",
1390
+ // },
1391
+ // ],
1392
+ // settings: {
1393
+ // "react-x": {
1394
+ // importSource: "atomico",
1395
+ // },
1396
+ // },
1397
+ // },
1398
+ // TODO: Add support for Atomico
1399
+ // {
1400
+ // code: /* tsx */ `
1401
+ // import { Props, c } from "atomico"; // 2.5kB
1402
+
1403
+ // function component({ name }:Props<typeof component.props>) {
1404
+ // return <host shadowDom>Hello, {name}</host>;
1405
+ // }
1406
+
1407
+ // component.props = {
1408
+ // name: String,
1409
+ // };
1410
+
1411
+ // export const Component = c(component);
1412
+ // `,
1413
+ // errors: [
1414
+ // {
1415
+ // data: {
1416
+ // name: "component",
1417
+ // forwardRef: false,
1418
+ // hookCalls: 0,
1419
+ // memo: false,
1420
+ // },
1421
+ // messageId: "FUNCTION_COMPONENT",
1422
+ // },
1423
+ // ],
1424
+ // settings: {
1425
+ // "react-x": {
1426
+ // importSource: "atomico",
1427
+ // },
1428
+ // },
1429
+ // },
1430
+ // TODO: Add support for Atomico
1431
+ // {
1432
+ // code: /* tsx */ `
1433
+ // import { Props, c } from "atomico"; // 2.5kB
1434
+
1435
+ // function component({ name }:Props<typeof component.props>) {
1436
+ // return <host shadowDom>Hello, {name}</host>;
1437
+ // }
1438
+
1439
+ // component.props = {
1440
+ // name: String,
1441
+ // };
1442
+
1443
+ // customElements.define("my-component", c(component));
1444
+ // `,
1445
+ // errors: [
1446
+ // {
1447
+ // data: {
1448
+ // name: "component",
1449
+ // forwardRef: false,
1450
+ // hookCalls: 0,
1451
+ // memo: false,
1452
+ // },
1453
+ // messageId: "FUNCTION_COMPONENT",
1454
+ // },
1455
+ // ],
1456
+ // settings: {
1457
+ // "react-x": {
1458
+ // importSource: "atomico",
1459
+ // },
1460
+ // },
1461
+ // },
1369
1462
] ,
1370
1463
valid : [
1371
1464
...allFunctions ,
0 commit comments