Skip to content

Commit b3335c3

Browse files
committed
Update xo
1 parent 9560481 commit b3335c3

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

lib/runtime-html.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Export `JSX` as a global for TypeScript.
2-
export * from './jsx-automatic.js'
32
import {runtime} from './runtime.js'
43
import {h} from './html.js'
4+
5+
export * from './jsx-automatic.js'
56
export const {Fragment, jsx, jsxs} = runtime(h)

lib/runtime-svg.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Export `JSX` as a global for TypeScript.
2-
export * from './jsx-automatic.js'
32
import {runtime} from './runtime.js'
43
import {s} from './svg.js'
4+
5+
export * from './jsx-automatic.js'
56
export const {Fragment, jsx, jsxs} = runtime(s)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"type-coverage": "^2.0.0",
8282
"typescript": "^4.0.0",
8383
"unist-builder": "^3.0.0",
84-
"xo": "^0.39.0"
84+
"xo": "^0.42.0"
8585
},
8686
"scripts": {
8787
"prepack": "npm run build && npm run format",

script/build.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import fs from 'fs'
2-
import path from 'path'
1+
import fs from 'node:fs'
2+
import path from 'node:path'
33
import {svgTagNames} from 'svg-tag-names'
44

55
const casing = svgTagNames.filter((d) => d !== d.toLowerCase())

script/generate-jsx.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import fs from 'fs'
2-
import path from 'path'
1+
import fs from 'node:fs'
2+
import path from 'node:path'
33
import babel from '@babel/core'
44
import {Parser} from 'acorn'
55
import acornJsx from 'acorn-jsx'

0 commit comments

Comments
 (0)