chore: make eslint happy (part 1) (#4890)

This commit is contained in:
Sukka
2025-09-30 14:19:49 +08:00
committed by GitHub
parent ecdeadfe1e
commit 0c88568cd7
8 changed files with 27 additions and 23 deletions
+3 -1
View File
@@ -24,6 +24,8 @@ export const RuleItem = (props: Props) => {
const proxyPolicy = rule.match(/[^,]+$/)?.[0] ?? "";
const ruleContent = rule.slice(ruleType.length + 1, -proxyPolicy.length - 1);
const $sortable = useSortable({ id: ruleRaw });
const {
attributes,
listeners,
@@ -32,7 +34,7 @@ export const RuleItem = (props: Props) => {
transition,
isDragging,
} = sortable
? useSortable({ id: ruleRaw })
? $sortable
: {
attributes: {},
listeners: {},