Skip to content

Commit

Permalink
Update xo
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 13, 2021
1 parent a1e1c3f commit 28d4c75
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

import {ReactMarkdown} from './lib/react-markdown.js'

export {uriTransformer} from './lib/uri-transformer.js'

export default ReactMarkdown
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"type-coverage": "^2.0.0",
"typescript": "^4.0.0",
"uvu": "^0.5.0",
"xo": "^0.39.0"
"xo": "^0.44.0"
},
"scripts": {
"prepack": "npm run build && npm run format",
Expand Down
4 changes: 2 additions & 2 deletions test/loader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'path'
import {fileURLToPath} from 'url'
import path from 'node:path'
import {fileURLToPath} from 'node:url'
import {transformSync} from 'esbuild'

const {getFormat, transformSource} = createLoader()
Expand Down
9 changes: 4 additions & 5 deletions test/test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
* @typedef {import('../index.js').Components} Components
*/

import fs from 'node:fs'
import path from 'node:path'
import {test} from 'uvu'
import * as assert from 'uvu/assert'
import fs from 'fs'
import path from 'path'
import React from 'react'
import gfm from 'remark-gfm'
import {visit} from 'unist-util-visit'
Expand Down Expand Up @@ -1144,15 +1144,14 @@ test('should be able to render components with forwardRef in HOC', () => {
/**
* @param {(params: Props) => JSX.Element} Component
*/
const wrapper = (Component) => {
return React.forwardRef(
const wrapper = (Component) =>
React.forwardRef(
/**
* @param {Props} props
* @param {Ref} ref
*/
(props, ref) => <Component ref={ref} {...props} />
)
}

/**
* @param {Props} props
Expand Down

0 comments on commit 28d4c75

Please sign in to comment.