Biome 2.0 with format (#510)

* execute migrate command

* migrate to v2

* update config

* supress linter error
This commit is contained in:
Katsuyuki Karasawa
2025-06-18 23:01:28 +09:00
committed by GitHub
parent dd929f87f1
commit 9130765d45
25 changed files with 96 additions and 73 deletions
+2 -2
View File
@@ -2,14 +2,14 @@ import { h } from "hastscript";
import { visit } from "unist-util-visit";
export function parseDirectiveNode() {
return (tree, { data }) => {
return (tree, { _data }) => {
visit(tree, (node) => {
if (
node.type === "containerDirective" ||
node.type === "leafDirective" ||
node.type === "textDirective"
) {
// biome-ignore lint/suspicious/noAssignInExpressions: <explanation>
// biome-ignore lint/suspicious/noAssignInExpressions: <check later>
const data = node.data || (node.data = {});
node.attributes = node.attributes || {};
if (