@atom.io/template-react-realtime-text-editor 0.0.4 → 0.0.6

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 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
+ }
@@ -1,11 +1,12 @@
1
1
  $ tsc -b && vite build
2
- vite v8.2.1 building client environment for production...
3
- 
2
+ vite v8.2.2 building client environment for production...
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-BYs2Jp9P.js 317.24 kB │ gzip: 97.75 kB
10
+ dist/assets/index-Bj168TSW.js 317.26 kB │ gzip: 97.73 kB
10
11
 
11
- ✓ built in 275ms
12
+ ✓ built in 406ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atom.io/template-react-realtime-text-editor
2
2
 
3
+ ## 0.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [d001b21]
8
+ - Updated dependencies [21f9a44]
9
+ - atom.io@0.52.3
10
+
11
+ ## 0.0.5
12
+
13
+ ### Patch Changes
14
+
15
+ - 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.
16
+ - Updated dependencies [98d897b]
17
+ - Updated dependencies [88f81c3]
18
+ - atom.io@0.52.2
19
+
3
20
  ## 0.0.4
4
21
 
5
22
  ### 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 check TypeScript, ESLint, and the Lasertag render-story/CSS relationship.
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
@@ -3,3 +3,4 @@ dist
3
3
  .turbo
4
4
  *.local
5
5
  *.log
6
+ *.tsbuildinfo
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-BYs2Jp9P.js"></script>
11
+ <script type="module" crossorigin src="/assets/index-Bj168TSW.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.4",
3
+ "version": "0.0.6",
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.3",
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.3",
24
- "atom.io": "0.52.1"
24
+ "zod": "4.5.4"
25
25
  },
26
26
  "devDependencies": {
27
+ "@dprint/json": "0.23.0",
28
+ "@dprint/markdown": "0.23.3",
29
+ "@dprint/oxc": "0.38.0",
27
30
  "@testing-library/dom": "10.4.1",
28
- "@testing-library/react": "16.3.2",
29
- "@types/node": "26.2.0",
31
+ "@testing-library/react": "16.3.3",
32
+ "@types/node": "26.4.1",
30
33
  "@types/react": "19.2.18",
31
- "@types/react-dom": "19.2.4",
32
- "@typescript-eslint/parser": "8.67.0",
33
- "@vitejs/plugin-react": "6.0.5",
34
+ "@types/react-dom": "19.2.7",
35
+ "@typescript-eslint/parser": "8.69.0",
36
+ "@vitejs/plugin-react": "6.1.1",
34
37
  "concurrently": "10.0.5",
35
- "eslint": "10.8.1",
36
- "happy-dom": "20.11.2",
37
- "lasertag": "0.7.0",
38
+ "dprint": "0.57.1",
39
+ "dprint-plugin-malva": "0.16.0",
40
+ "eslint": "10.9.1",
41
+ "happy-dom": "20.13.2",
42
+ "lasertag": "0.8.0",
43
+ "oxlint": "1.81.0",
44
+ "oxlint-tsgolint": "7.0.2001",
38
45
  "typescript": "7.0.2",
39
- "vite": "8.2.1",
40
- "vitest": "4.1.10"
46
+ "vite": "8.2.2",
47
+ "vitest": "5.0.0"
41
48
  },
42
49
  "scripts": {
43
50
  "dev": "concurrently vite \"node --watch node/server.ts\"",
44
51
  "build": "tsc -b && vite build",
45
- "lint": "npm run lint:eslint && npm run lint:lasertag && npm run lint:types",
46
- "lint:eslint": "eslint .",
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",
@@ -16,7 +16,7 @@ import {
16
16
 
17
17
  import {
18
18
  lineAndColumnAt,
19
- Markdown,
19
+ type Markdown,
20
20
  markdownAtom,
21
21
  markdownCharacterCountSelector,
22
22
  markdownWordCountSelector,
@@ -7,7 +7,7 @@ import * as RTTest from "atom.io/realtime-testing"
7
7
 
8
8
  import { markdownAtomRegistration } from "../node/mosaic-atom.ts"
9
9
  import {
10
- Markdown,
10
+ type Markdown,
11
11
  markdownAtom,
12
12
  markdownWordCountSelector,
13
13
  type MarkdownPresence,