Skip to content

Commit 28d4c75

Browse files
committed
Update xo
1 parent a1e1c3f commit 28d4c75

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55

66
import {ReactMarkdown} from './lib/react-markdown.js'
7+
78
export {uriTransformer} from './lib/uri-transformer.js'
89

910
export default ReactMarkdown

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
"type-coverage": "^2.0.0",
121121
"typescript": "^4.0.0",
122122
"uvu": "^0.5.0",
123-
"xo": "^0.39.0"
123+
"xo": "^0.44.0"
124124
},
125125
"scripts": {
126126
"prepack": "npm run build && npm run format",

test/loader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import path from 'path'
2-
import {fileURLToPath} from 'url'
1+
import path from 'node:path'
2+
import {fileURLToPath} from 'node:url'
33
import {transformSync} from 'esbuild'
44

55
const {getFormat, transformSource} = createLoader()

test/test.jsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
* @typedef {import('../index.js').Components} Components
99
*/
1010

11+
import fs from 'node:fs'
12+
import path from 'node:path'
1113
import {test} from 'uvu'
1214
import * as assert from 'uvu/assert'
13-
import fs from 'fs'
14-
import path from 'path'
1515
import React from 'react'
1616
import gfm from 'remark-gfm'
1717
import {visit} from 'unist-util-visit'
@@ -1144,15 +1144,14 @@ test('should be able to render components with forwardRef in HOC', () => {
11441144
/**
11451145
* @param {(params: Props) => JSX.Element} Component
11461146
*/
1147-
const wrapper = (Component) => {
1148-
return React.forwardRef(
1147+
const wrapper = (Component) =>
1148+
React.forwardRef(
11491149
/**
11501150
* @param {Props} props
11511151
* @param {Ref} ref
11521152
*/
11531153
(props, ref) => <Component ref={ref} {...props} />
11541154
)
1155-
}
11561155

11571156
/**
11581157
* @param {Props} props

0 commit comments

Comments
 (0)