Skip to content

Commit a323406

Browse files
committed
Update dev-dependencies
1 parent 7e82f93 commit a323406

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@
3838
"tape": "^5.0.0",
3939
"to-vfile": "^7.0.0",
4040
"type-coverage": "^2.0.0",
41-
"typescript": "^4.0.0",
41+
"typescript": "^5.0.0",
4242
"unified": "^10.0.0",
4343
"unist-builder": "^3.0.0",
4444
"unist-util-remove-position": "^4.0.0",
45-
"xo": "^0.52.0"
45+
"xo": "^0.54.0"
4646
},
4747
"scripts": {
4848
"build": "npm run build --workspaces",
@@ -60,11 +60,14 @@
6060
"trailingComma": "none"
6161
},
6262
"xo": {
63-
"prettier": true
63+
"prettier": true,
64+
"rules": {
65+
"unicorn/prefer-logical-operator-over-ternary": "off"
66+
}
6467
},
6568
"remarkConfig": {
6669
"plugins": [
67-
"preset-wooorm"
70+
"remark-preset-wooorm"
6871
]
6972
},
7073
"typeCoverage": {

packages/remark-math/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {mathFromMarkdown, mathToMarkdown} from 'mdast-util-math'
1111
/**
1212
* Plugin to support math.
1313
*
14+
* @this {import('unified').Processor}
1415
* @type {import('unified').Plugin<[Options?] | void[], Root, Root>}
1516
*/
1617
export default function remarkMath(options = {}) {
@@ -25,7 +26,7 @@ export default function remarkMath(options = {}) {
2526
* @param {unknown} value
2627
*/
2728
function add(field, value) {
28-
const list = /** @type {unknown[]} */ (
29+
const list = /** @type {Array<unknown>} */ (
2930
// Other extensions
3031
/* c8 ignore next 2 */
3132
data[field] ? data[field] : (data[field] = [])

packages/remark-math/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,10 @@ See its readme for parse details:
153153
154154
> 👉 **Note**: Like code, the difference between “inline” and “block”,
155155
> is in the line endings:
156-
>
156+
>
157157
> ```markdown
158158
> $$inline$$
159-
>
159+
>
160160
> $$
161161
> block
162162
> $$

0 commit comments

Comments
 (0)