@atom.io/template-react-realtime-text-editor 0.0.3 → 0.0.5
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/.oxlintrc.json +12 -0
- package/.turbo/turbo-build.log +5 -4
- package/CHANGELOG.md +16 -0
- package/README.md +4 -1
- package/_gitignore +1 -0
- package/dist/index.html +1 -1
- package/dprint.json +33 -0
- package/package.json +24 -14
- package/src/MarkdownWorkspace.tsx +1 -1
- package/tests/collaboration.test.tsx +1 -1
package/.oxlintrc.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
3
|
+
"extends": ["./node_modules/atom.io/oxlint.json"],
|
|
4
|
+
"plugins": ["typescript", "react"],
|
|
5
|
+
"rules": {
|
|
6
|
+
"react/jsx-key": "error",
|
|
7
|
+
"react/jsx-no-duplicate-props": "error",
|
|
8
|
+
"react/no-children-prop": "error",
|
|
9
|
+
"react/no-danger-with-children": "error",
|
|
10
|
+
"react/rules-of-hooks": "error"
|
|
11
|
+
}
|
|
12
|
+
}
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
$ tsc -b && vite build
|
|
2
|
-
[36mvite v8.2.
|
|
3
|
-
|
|
2
|
+
[36mvite v8.2.2 [32mbuilding client environment for production...[36m[39m
|
|
3
|
+
transforming...
|
|
4
|
+
✓ 66 modules transformed.
|
|
4
5
|
rendering chunks...
|
|
5
6
|
computing gzip size...
|
|
6
7
|
dist/index.html 0.51 kB │ gzip: 0.33 kB
|
|
7
8
|
dist/assets/index-DGIOrh2O.css 11.67 kB │ gzip: 2.61 kB
|
|
8
9
|
dist/assets/web-BP4kJorM.js 0.22 kB │ gzip: 0.17 kB
|
|
9
|
-
dist/assets/index-
|
|
10
|
+
dist/assets/index-B43W1mCI.js 317.28 kB │ gzip: 97.74 kB
|
|
10
11
|
|
|
11
|
-
[32m✓ built in
|
|
12
|
+
[32m✓ built in 209ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atom.io/template-react-realtime-text-editor
|
|
2
2
|
|
|
3
|
+
## 0.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 88f81c3: Give every released template a pinned, standalone Oxlint, ESLint, TypeScript, and dprint quality baseline with zero-warning scripts and a single canonical configuration shipped at the atom.io package root.
|
|
8
|
+
- Updated dependencies [98d897b]
|
|
9
|
+
- Updated dependencies [88f81c3]
|
|
10
|
+
- atom.io@0.52.2
|
|
11
|
+
|
|
12
|
+
## 0.0.4
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [a082cfd]
|
|
17
|
+
- atom.io@0.52.1
|
|
18
|
+
|
|
3
19
|
## 0.0.3
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -23,7 +23,10 @@ service in both development and preview modes.
|
|
|
23
23
|
- structural component styling checked by Lasertag.
|
|
24
24
|
|
|
25
25
|
Run `npm test` for the multi-client collaboration scenarios. Run `npm run lint`
|
|
26
|
-
to
|
|
26
|
+
to enforce ESLint, type-aware Oxlint, React hook call-order correctness, TypeScript, and
|
|
27
|
+
the Lasertag render-story/CSS relationship with zero warnings. Run
|
|
28
|
+
`npm run fmt:check` in CI and `npm run fmt` to apply the pinned dprint
|
|
29
|
+
configuration locally.
|
|
27
30
|
|
|
28
31
|
## Start Reading
|
|
29
32
|
|
package/_gitignore
CHANGED
package/dist/index.html
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
content="Mosaic, a realtime collaborative Markdown editor built with atom.io."
|
|
9
9
|
/>
|
|
10
10
|
<title>Mosaic · Shared Markdown</title>
|
|
11
|
-
<script type="module" crossorigin src="/assets/index-
|
|
11
|
+
<script type="module" crossorigin src="/assets/index-B43W1mCI.js"></script>
|
|
12
12
|
<link rel="stylesheet" crossorigin href="/assets/index-DGIOrh2O.css">
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
package/dprint.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://dprint.dev/schemas/v0.json",
|
|
3
|
+
"lineWidth": 81,
|
|
4
|
+
"useTabs": true,
|
|
5
|
+
"indentWidth": 2,
|
|
6
|
+
"includes": ["**/*.{ts,tsx,js,jsx,mjs,cjs,json,jsonc,md,mdx,css}"],
|
|
7
|
+
"excludes": [
|
|
8
|
+
"**/dist/**",
|
|
9
|
+
"**/node_modules/**",
|
|
10
|
+
"**/playwright-report/**",
|
|
11
|
+
"**/test-results/**"
|
|
12
|
+
],
|
|
13
|
+
"oxc": {
|
|
14
|
+
"associations": ["**/*.{ts,tsx,js,jsx,mjs,cjs}"],
|
|
15
|
+
"semicolons": "asNeeded",
|
|
16
|
+
"trailingCommas": "all"
|
|
17
|
+
},
|
|
18
|
+
"json": {
|
|
19
|
+
"associations": ["**/*.{json,jsonc}"]
|
|
20
|
+
},
|
|
21
|
+
"markdown": {
|
|
22
|
+
"associations": ["**/*.{md,mdx}"]
|
|
23
|
+
},
|
|
24
|
+
"malva": {
|
|
25
|
+
"associations": ["**/*.css"]
|
|
26
|
+
},
|
|
27
|
+
"plugins": [
|
|
28
|
+
"./node_modules/@dprint/oxc/plugin.wasm",
|
|
29
|
+
"./node_modules/@dprint/json/plugin.wasm",
|
|
30
|
+
"./node_modules/@dprint/markdown/plugin.wasm",
|
|
31
|
+
"./node_modules/dprint-plugin-malva/plugin.wasm"
|
|
32
|
+
]
|
|
33
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atom.io/template-react-realtime-text-editor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "A realtime text editor built with atom.io, React, and Lasertag.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -16,35 +16,45 @@
|
|
|
16
16
|
"node": ">=24.12.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
+
"atom.io": "0.52.2",
|
|
19
20
|
"react": "19.2.8",
|
|
20
21
|
"react-dom": "19.2.8",
|
|
21
22
|
"socket.io": "4.8.3",
|
|
22
23
|
"socket.io-client": "4.8.3",
|
|
23
|
-
"zod": "4.4
|
|
24
|
-
"atom.io": "0.52.0"
|
|
24
|
+
"zod": "4.5.4"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
+
"@dprint/json": "0.23.0",
|
|
28
|
+
"@dprint/markdown": "0.23.2",
|
|
29
|
+
"@dprint/oxc": "0.37.0",
|
|
27
30
|
"@testing-library/dom": "10.4.1",
|
|
28
|
-
"@testing-library/react": "16.3.
|
|
29
|
-
"@types/node": "26.
|
|
31
|
+
"@testing-library/react": "16.3.3",
|
|
32
|
+
"@types/node": "26.4.0",
|
|
30
33
|
"@types/react": "19.2.18",
|
|
31
|
-
"@types/react-dom": "19.2.
|
|
32
|
-
"@typescript-eslint/parser": "8.
|
|
33
|
-
"@vitejs/plugin-react": "6.
|
|
34
|
+
"@types/react-dom": "19.2.5",
|
|
35
|
+
"@typescript-eslint/parser": "8.68.0",
|
|
36
|
+
"@vitejs/plugin-react": "6.1.1",
|
|
34
37
|
"concurrently": "10.0.5",
|
|
35
|
-
"
|
|
36
|
-
"
|
|
38
|
+
"dprint": "0.56.1",
|
|
39
|
+
"dprint-plugin-malva": "0.16.0",
|
|
40
|
+
"eslint": "10.9.1",
|
|
41
|
+
"happy-dom": "20.12.0",
|
|
37
42
|
"lasertag": "0.7.0",
|
|
43
|
+
"oxlint": "1.80.0",
|
|
44
|
+
"oxlint-tsgolint": "7.0.2001",
|
|
38
45
|
"typescript": "7.0.2",
|
|
39
|
-
"vite": "8.2.
|
|
40
|
-
"vitest": "4.1.
|
|
46
|
+
"vite": "8.2.2",
|
|
47
|
+
"vitest": "4.1.11"
|
|
41
48
|
},
|
|
42
49
|
"scripts": {
|
|
43
50
|
"dev": "concurrently vite \"node --watch node/server.ts\"",
|
|
44
51
|
"build": "tsc -b && vite build",
|
|
45
|
-
"
|
|
46
|
-
"
|
|
52
|
+
"fmt": "dprint fmt .",
|
|
53
|
+
"fmt:check": "dprint check .",
|
|
54
|
+
"lint": "npm run lint:eslint && npm run lint:oxlint && npm run lint:lasertag && npm run lint:types",
|
|
55
|
+
"lint:eslint": "eslint --max-warnings 0 .",
|
|
47
56
|
"lint:lasertag": "lasertag check \"src/**/*.module.css\"",
|
|
57
|
+
"lint:oxlint": "oxlint --deny-warnings .",
|
|
48
58
|
"lint:types": "tsc -b",
|
|
49
59
|
"preview": "concurrently \"vite preview\" \"node node/server.ts\"",
|
|
50
60
|
"test": "vitest run",
|