diff --git a/biome.json b/biome.json index ad2d24df3d..1cfddd614a 100644 --- a/biome.json +++ b/biome.json @@ -40,7 +40,6 @@ "linter": { "rules": { "style": { - "useNumberNamespace": "off", "useNodejsImportProtocol": "off", "noNonNullAssertion": "off" }, @@ -51,9 +50,7 @@ }, "correctness": { "useUniqueElementIds": "off", - "useExhaustiveDependencies": "off", - "noUnusedFunctionParameters": "off", - "noUnusedVariables": "off" + "useExhaustiveDependencies": "off" }, "suspicious": { "noTsIgnore": "off", @@ -90,11 +87,7 @@ "includes": ["**/*.test.ts", "**/*.test.tsx", "tests/**/*", "scripts/**/*", ".dumi/**/*"], "linter": { "rules": { - "style": { - "noParameterAssign": "off" - }, "suspicious": { - "noThenProperty": "off", "noImplicitAnyLet": "off" }, "complexity": { @@ -102,8 +95,7 @@ }, "a11y": { "useValidAnchor": "off", - "useAnchorContent": "off", - "useKeyWithClickEvents": "off" + "useAnchorContent": "off" } } } @@ -117,8 +109,7 @@ }, "a11y": { "useValidAnchor": "off", - "useAnchorContent": "off", - "useKeyWithClickEvents": "off" + "useAnchorContent": "off" } } } diff --git a/components/form/FormItemInput.tsx b/components/form/FormItemInput.tsx index 42c436a354..6b19799b2c 100644 --- a/components/form/FormItemInput.tsx +++ b/components/form/FormItemInput.tsx @@ -90,7 +90,7 @@ const FormItemInput: React.FC = (pr // Pass to sub FormItem should not with col info const subFormContext = React.useMemo(() => { - const { labelCol, wrapperCol, ...rest } = formContext; + const { labelCol: _labelCol, wrapperCol: _wrapperCol, ...rest } = formContext; return rest; }, [formContext]); diff --git a/components/tooltip/index.tsx b/components/tooltip/index.tsx index bcf3e1d935..f459d03f35 100644 --- a/components/tooltip/index.tsx +++ b/components/tooltip/index.tsx @@ -153,7 +153,7 @@ const InternalTooltip = React.forwardRef((props, ref) builtinPlacements, arrowPointAtCenter = false, autoAdjustOverflow = true, - motion, + motion: _motion, getPopupContainer, placement = 'top', mouseEnterDelay = 0.1, diff --git a/index-style-only.js b/index-style-only.js index baae4922f2..c7feeda45b 100644 --- a/index-style-only.js +++ b/index-style-only.js @@ -1,5 +1,5 @@ function pascalCase(name) { - return name.charAt(0).toUpperCase() + name.slice(1).replace(/-(\w)/g, (m, n) => n.toUpperCase()); + return name.charAt(0).toUpperCase() + name.slice(1).replace(/-(\w)/g, (_m, n) => n.toUpperCase()); } // Just import style for https://github.com/ant-design/ant-design/issues/3745