Skip to content

Commit b370f98

Browse files
committed
chore: init
1 parent 9da0eb8 commit b370f98

File tree

9 files changed

+227
-63
lines changed

9 files changed

+227
-63
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 SoonIter.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

biome.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3+
"organizeImports": {
4+
"enabled": true
5+
},
6+
"vcs": {
7+
"enabled": true,
8+
"defaultBranch": "main",
9+
"clientKind": "git",
10+
"useIgnoreFile": true
11+
},
12+
"formatter": {
13+
"indentStyle": "space"
14+
},
15+
"javascript": {
16+
"formatter": {
17+
"quoteStyle": "single"
18+
}
19+
},
20+
"css": {
21+
"formatter": {
22+
"enabled": true
23+
}
24+
},
25+
"linter": {
26+
"enabled": true,
27+
"rules": {
28+
"recommended": true,
29+
"style": {
30+
"noNonNullAssertion": "off"
31+
},
32+
"suspicious": {
33+
"noExplicitAny": "off"
34+
},
35+
"a11y": {
36+
"useKeyWithMouseEvents": "off",
37+
"useKeyWithClickEvents": "off"
38+
}
39+
}
40+
}
41+
}

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@
1414
"scripts": {
1515
"prepare": "npm run build",
1616
"dev": "rslib build -w",
17-
"build": "rslib build"
17+
"build": "rslib build",
18+
"test": "vitest run",
19+
"format": "biome format"
1820
},
1921
"devDependencies": {
2022
"react": "^18.2.0",
2123
"react-reconciler": "^0.29.0",
2224
"vitest": "^3.2.4",
25+
"@biomejs/biome": "^1.9.4",
2326
"@rslib/core": "0.15.1",
2427
"rsbuild-plugin-publint": "^0.3.3",
2528
"typescript": "^5.9.3",

pnpm-lock.yaml

Lines changed: 118 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './react/index';
1+
export * from './react/index';

src/react/reconciler.ts

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import createReconciler from 'react-reconciler';
2-
import {
3-
DefaultEventPriority
4-
} from 'react-reconciler/constants.js';
2+
import { DefaultEventPriority } from 'react-reconciler/constants.js';
53

64
const logger = {
75
debug(...args: any[]): void {
@@ -104,7 +102,21 @@ export const state: {
104102
// Render completion flag
105103

106104
// Create React Reconciler config
107-
const hostConfig: createReconciler.HostConfig<string, Props, MarkdownNode, MarkdownNode, TextNode, MarkdownNode, unknown, MarkdownNode | TextNode, HostContext, Props, unknown, unknown, -1> = {
105+
const hostConfig: createReconciler.HostConfig<
106+
string,
107+
Props,
108+
MarkdownNode,
109+
MarkdownNode,
110+
TextNode,
111+
MarkdownNode,
112+
unknown,
113+
MarkdownNode | TextNode,
114+
HostContext,
115+
Props,
116+
unknown,
117+
unknown,
118+
-1
119+
> = {
108120
// Basic capabilities
109121
supportsMutation: true,
110122
supportsPersistence: false,

0 commit comments

Comments
 (0)