mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
chore(ci): eslint + prettier → biome (#325)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// biome-ignore lint/suspicious/noShadowRestrictedNames: 🤷
|
||||
import { toString } from 'mdast-util-to-string';
|
||||
import getReadingTime from 'reading-time';
|
||||
|
||||
@@ -7,7 +8,7 @@ import getReadingTime from 'reading-time';
|
||||
* adapted from https://docs.astro.build/en/recipes/reading-time/
|
||||
*/
|
||||
export function remarkReadingTime() {
|
||||
return function (tree, { data }) {
|
||||
return (tree, { data }) => {
|
||||
const textOnPage = toString(tree);
|
||||
const readingTime = getReadingTime(textOnPage);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user