Merge branch 'sidv/eslintv9' into sidv/eslintv9Typed

* sidv/eslintv9:
  chore: Remove unused variables
  chore: Remove cross-env from eslint
This commit is contained in:
Sidharth Vinod
2024-06-30 01:47:58 +05:30
19 changed files with 34 additions and 73 deletions

View File

@@ -242,7 +242,7 @@ export function transformMarkdownAst({
addEditLink,
removeYAML,
}: TransformMarkdownAstOptions) {
return (tree: Root, _file?: any): Root => {
return (tree: Root): Root => {
const astWithTransformedBlocks = flatmap(tree, (node: Code) => {
if (node.type !== 'code' || !node.lang) {
return [node]; // no transformation if this is not a code block