Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Apr 23, 2023
1 parent 7e82f93 commit a323406
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
"tape": "^5.0.0",
"to-vfile": "^7.0.0",
"type-coverage": "^2.0.0",
"typescript": "^4.0.0",
"typescript": "^5.0.0",
"unified": "^10.0.0",
"unist-builder": "^3.0.0",
"unist-util-remove-position": "^4.0.0",
"xo": "^0.52.0"
"xo": "^0.54.0"
},
"scripts": {
"build": "npm run build --workspaces",
Expand All @@ -60,11 +60,14 @@
"trailingComma": "none"
},
"xo": {
"prettier": true
"prettier": true,
"rules": {
"unicorn/prefer-logical-operator-over-ternary": "off"
}
},
"remarkConfig": {
"plugins": [
"preset-wooorm"
"remark-preset-wooorm"
]
},
"typeCoverage": {
Expand Down
3 changes: 2 additions & 1 deletion packages/remark-math/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {mathFromMarkdown, mathToMarkdown} from 'mdast-util-math'
/**
* Plugin to support math.
*
* @this {import('unified').Processor}
* @type {import('unified').Plugin<[Options?] | void[], Root, Root>}
*/
export default function remarkMath(options = {}) {
Expand All @@ -25,7 +26,7 @@ export default function remarkMath(options = {}) {
* @param {unknown} value
*/
function add(field, value) {
const list = /** @type {unknown[]} */ (
const list = /** @type {Array<unknown>} */ (
// Other extensions
/* c8 ignore next 2 */
data[field] ? data[field] : (data[field] = [])
Expand Down
4 changes: 2 additions & 2 deletions packages/remark-math/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ See its readme for parse details:
> 👉 **Note**: Like code, the difference between “inline” and “block”,
> is in the line endings:
>
>
> ```markdown
> $$inline$$
>
>
> $$
> block
> $$
Expand Down

0 comments on commit a323406

Please sign in to comment.