Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Mar 25, 2024
1 parent a27d335 commit 78160f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions lib/index.js
Expand Up @@ -84,7 +84,6 @@
import {unreachable} from 'devlop'
import {toJsxRuntime} from 'hast-util-to-jsx-runtime'
import {urlAttributes} from 'html-url-attributes'
// @ts-expect-error: untyped.
import {Fragment, jsx, jsxs} from 'react/jsx-runtime'
import remarkParse from 'remark-parse'
import remarkRehype from 'remark-rehype'
Expand Down Expand Up @@ -226,7 +225,9 @@ export function Markdown(options) {
Fragment,
components,
ignoreInvalidStyle: true,
// @ts-expect-error: to do: types.
jsx,
// @ts-expect-error: to do: types.
jsxs,
passKeys: true,
passNode: true
Expand Down Expand Up @@ -266,8 +267,8 @@ export function Markdown(options) {
let remove = allowedElements
? !allowedElements.includes(node.tagName)
: disallowedElements
? disallowedElements.includes(node.tagName)
: false
? disallowedElements.includes(node.tagName)
: false

if (!remove && allowElement && typeof index === 'number') {
remove = !allowElement(node, index, parent)
Expand Down
9 changes: 5 additions & 4 deletions package.json
Expand Up @@ -95,8 +95,8 @@
"@types/node": "^20.0.0",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"c8": "^8.0.0",
"esbuild": "^0.19.0",
"c8": "^9.0.0",
"esbuild": "^0.20.0",
"eslint-plugin-react": "^7.0.0",
"prettier": "^3.0.0",
"react": "^18.0.0",
Expand All @@ -108,7 +108,7 @@
"remark-toc": "^9.0.0",
"type-coverage": "^2.0.0",
"typescript": "^5.0.0",
"xo": "^0.56.0"
"xo": "^0.58.0"
},
"scripts": {
"build": "tsc --build --clean && tsc --build && type-coverage",
Expand Down Expand Up @@ -169,7 +169,8 @@
"prettier": true,
"rules": {
"complexity": "off",
"n/file-extension-in-import": "off"
"n/file-extension-in-import": "off",
"unicorn/prevent-abbreviations": "off"
}
}
}

0 comments on commit 78160f5

Please sign in to comment.