Skip to content

Commit 73153c0

Browse files
committed
Add react support
1 parent 4aa6e2d commit 73153c0

28 files changed

+3986
-2988
lines changed

.c8rc.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
"EditorConfig.EditorConfig",
1313
"esbenp.prettier-vscode"
1414
],
15+
"forwardPorts": [8080],
16+
"portsAttributes": {
17+
"8080": { "label": "Examples" }
18+
},
1519
"postCreateCommand": "npm install",
1620
"remoteUser": "node"
1721
}

.eslintrc.json

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"root": true,
3-
"plugins": ["simple-import-sort", "unused-imports"],
43
"parserOptions": {
54
"sourceType": "module",
65
"ecmaVersion": "latest"
@@ -19,23 +18,28 @@
1918
}
2019
],
2120
"import/extensions": ["error", "ignorePackages"],
22-
"import/no-duplicates": ["error", { "prefer-inline": true }],
23-
"import/no-relative-parent-imports": "error",
21+
"import/no-duplicates": [
22+
"error",
23+
{
24+
"prefer-inline": true
25+
}
26+
],
2427
"simple-import-sort/imports": [
2528
"error",
2629
{
2730
"groups": [
2831
["^\\u0000"],
2932
["^node:"],
3033
["^@?\\w"],
31-
["@seamapi/react-query"],
32-
["^lib/"],
34+
["^@seamapi/react-query/"],
35+
["^fixtures/", "^lib/"],
3336
["^"],
3437
["^\\."]
3538
]
3639
}
3740
],
38-
"simple-import-sort/exports": "error"
41+
"simple-import-sort/exports": "error",
42+
"import/no-relative-parent-imports": "error"
3943
},
4044
"overrides": [
4145
{
@@ -44,7 +48,14 @@
4448
},
4549
{
4650
"files": ["*.ts", "*.tsx"],
47-
"extends": ["standard-with-typescript", "prettier"],
51+
"extends": [
52+
"standard-with-typescript",
53+
"standard-jsx",
54+
"standard-react",
55+
"plugin:react/jsx-runtime",
56+
"prettier"
57+
],
58+
"plugins": ["simple-import-sort", "unused-imports"],
4859
"parserOptions": {
4960
"project": "./tsconfig.json"
5061
},
@@ -56,7 +67,9 @@
5667
"fixStyle": "inline-type-imports"
5768
}
5869
],
59-
"@typescript-eslint/no-unused-vars": "off"
70+
"@typescript-eslint/no-unused-vars": "off",
71+
"react/function-component-definition": "error",
72+
"react-hooks/exhaustive-deps": "error"
6073
}
6174
}
6275
]

.github/stale.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/workflows/check.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,14 @@ jobs:
124124
node_version: ${{ matrix.node }}
125125
- name: Typecheck
126126
run: npm run typecheck
127+
docs:
128+
name: Docs
129+
runs-on: ubuntu-latest
130+
timeout-minutes: 30
131+
steps:
132+
- name: Checkout
133+
uses: actions/checkout@v4
134+
- name: Setup
135+
uses: ./.github/actions/setup
136+
- name: Build docs
137+
run: npm run docs:build

.gitignore

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,21 @@
1010
*.js
1111
*.js.map
1212
!src/**/*.d.ts
13-
!ava.config.js
13+
!examples/**/*.d.ts
14+
15+
# Yalc
16+
.yalc
17+
yalc.lock
18+
19+
# Vercel
20+
.vercel
21+
22+
# Vite
23+
*.timestamp-*
1424

1525
# Build directories
1626
package
27+
docs
1728

1829
# Environment versions file
1930
.versions

ava.config.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

examples/favicon.ico

4.19 KB
Binary file not shown.

examples/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<title>Seam React Query</title>
7+
</head>
8+
<body>
9+
<div id="root"></div>
10+
<script type="module" src="/src/main.tsx"></script>
11+
</body>
12+
</html>

examples/index.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)