mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
chore: lock @biomejs/biome version (#54161)
* chore: lock @biomejs/biome version * test: retry to commit * lock * lint: fix lint warning --------- Signed-off-by: lijianan <574980606@qq.com>
This commit is contained in:
@@ -58,7 +58,9 @@ function rehypeAntd(): UnifiedTransformer<HastRoot> {
|
||||
node.tagName === 'Table' &&
|
||||
/^components/.test(filename)
|
||||
) {
|
||||
if (!node.properties) return;
|
||||
if (!node.properties) {
|
||||
return;
|
||||
}
|
||||
node.properties.className ??= [];
|
||||
(node.properties.className as string[]).push('component-api-table');
|
||||
} else if (node.type === 'element' && (node.tagName === 'Link' || node.tagName === 'a')) {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import type { UnifiedTransformer } from 'dumi';
|
||||
import { unistUtilVisit } from 'dumi';
|
||||
import set from 'lodash/set';
|
||||
|
||||
let hastToString: typeof import('hast-util-to-string').toString;
|
||||
|
||||
// workaround to import pure esm module
|
||||
@@ -15,14 +16,17 @@ function rehypeChangelog(): UnifiedTransformer<any> {
|
||||
const { filename } = vFile.data.frontmatter as any;
|
||||
|
||||
// 只处理 changelog 文件
|
||||
if (!/^changelog\.\S+\.md$/i.test(filename)) return;
|
||||
if (!/^changelog\.\S+\.md$/i.test(filename)) {
|
||||
return;
|
||||
}
|
||||
|
||||
const nodesToWrap: { parent: any; startIdx: number }[] = [];
|
||||
const WRAPPER_FLAG = 'data-changelog-wrapped'; // 包裹容器唯一标识
|
||||
|
||||
unistUtilVisit.visit(tree, 'element', (node, idx, parent) => {
|
||||
if (node.properties?.[WRAPPER_FLAG]) return unistUtilVisit.SKIP;
|
||||
|
||||
if (node.properties?.[WRAPPER_FLAG]) {
|
||||
return unistUtilVisit.SKIP;
|
||||
}
|
||||
if (
|
||||
idx !== undefined &&
|
||||
parent &&
|
||||
|
||||
@@ -91,7 +91,10 @@ const RangePickerDemo: React.FC = () => {
|
||||
const [visible, setVisible] = React.useState(false);
|
||||
const [panelVisible, setPanelVisible] = React.useState(false);
|
||||
|
||||
const [dates, setDates] = React.useState<[Dayjs, Dayjs] | null>([dayjs(), dayjs().add(1, 'day')]);
|
||||
const [dates, setDates] = React.useState<[Dayjs, Dayjs] | null>(() => [
|
||||
dayjs(),
|
||||
dayjs().add(1, 'day'),
|
||||
]);
|
||||
|
||||
return (
|
||||
<Dropdown
|
||||
|
||||
@@ -166,7 +166,7 @@
|
||||
"@ant-design/v5-patch-for-react-19": "^1.0.2",
|
||||
"@antfu/eslint-config": "^4.15.0",
|
||||
"@antv/g6": "^4.8.24",
|
||||
"@biomejs/biome": "^2.0.0",
|
||||
"@biomejs/biome": "2.0.0",
|
||||
"@biomejs/cli-darwin-arm64": "2.0.0",
|
||||
"@codecov/webpack-plugin": "^1.4.0",
|
||||
"@codesandbox/sandpack-react": "^2.19.10",
|
||||
@@ -247,6 +247,7 @@
|
||||
"eslint": "^9.23.0",
|
||||
"eslint-plugin-compat": "^6.0.1",
|
||||
"eslint-plugin-jest": "^29.0.1",
|
||||
"eslint-plugin-jsdoc": "51.0.5",
|
||||
"eslint-plugin-jsx-a11y": "^6.10.0",
|
||||
"eslint-plugin-react-hooks": "^5.2.0",
|
||||
"eslint-plugin-react-refresh": "^0.4.14",
|
||||
|
||||
Reference in New Issue
Block a user