diff --git a/lib/ast-to-react.js b/lib/ast-to-react.js index 31a06a19..2134381a 100644 --- a/lib/ast-to-react.js +++ b/lib/ast-to-react.js @@ -444,6 +444,6 @@ function flattenPosition(pos) { ':', pos.end.column ] - .map((d) => String(d)) + .map(String) .join('') } diff --git a/lib/complex-types.ts b/lib/complex-types.ts index c639e7ae..5319a88b 100644 --- a/lib/complex-types.ts +++ b/lib/complex-types.ts @@ -4,7 +4,7 @@ import type {Element} from 'hast' /* File for types which are not handled correctly in JSDoc mode */ -export interface ReactMarkdownProps { +export type ReactMarkdownProps = { node: Element children: ReactNode[] /** diff --git a/package.json b/package.json index 6573f0fb..5ddd578b 100644 --- a/package.json +++ b/package.json @@ -104,7 +104,7 @@ "@types/react-dom": "^18.0.0", "@types/react-is": "^17.0.0", "c8": "^7.0.0", - "esbuild": "^0.14.0", + "esbuild": "^0.15.0", "eslint-config-xo-react": "^0.27.0", "eslint-plugin-es": "^4.0.0", "eslint-plugin-react": "^7.0.0", @@ -114,15 +114,15 @@ "react": "^18.0.0", "react-dom": "^18.0.0", "rehype-raw": "^6.0.0", - "remark-cli": "^10.0.0", + "remark-cli": "^11.0.0", "remark-gfm": "^3.0.0", "remark-preset-wooorm": "^9.0.0", "remark-toc": "^8.0.0", "rimraf": "^3.0.0", "type-coverage": "^2.0.0", - "typescript": "~4.4.0", + "typescript": "^4.0.0", "uvu": "^0.5.0", - "xo": "^0.48.0" + "xo": "^0.52.0" }, "scripts": { "prepack": "npm run build && npm run format", @@ -195,7 +195,7 @@ "test/**/*.jsx" ], "rules": { - "node/file-extension-in-import": "off", + "n/file-extension-in-import": "off", "react/no-children-prop": "off", "react/prop-types": "off" }