mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 01:31:08 +00:00
chore: enable no-unnecessary-type-assertion
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
"typescript/no-explicit-any": "error",
|
||||
"typescript/no-extraneous-class": "off",
|
||||
"typescript/no-unnecessary-type-arguments": "off",
|
||||
"typescript/no-unnecessary-type-assertion": "off",
|
||||
"typescript/no-unnecessary-type-conversion": "off",
|
||||
"typescript/no-unsafe-type-assertion": "off",
|
||||
"unicorn/consistent-function-scoping": "off",
|
||||
|
||||
@@ -291,8 +291,8 @@ function finalizeRecords(records: TopologyRecord[]) {
|
||||
return byRefs;
|
||||
}
|
||||
return (
|
||||
left.publicSpecifiers[0]!.localeCompare(right.publicSpecifiers[0]) ||
|
||||
left.exportNames[0]!.localeCompare(right.exportNames[0])
|
||||
left.publicSpecifiers[0].localeCompare(right.publicSpecifiers[0]) ||
|
||||
left.exportNames[0].localeCompare(right.exportNames[0])
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user