Skip to content

Commit 8a6801b

Browse files
ra3orbladeclaude
andcommitted
fix: resolve 6 lint warnings (prefer-const, semi, no-multi-spaces)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent de3d3c2 commit 8a6801b

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/ts/component/block/chat/form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const ChatForm = observer(forwardRef<RefProps, Props>((props, ref) => {
7474
const spaceview = U.Space.getSpaceview();
7575
const electron = U.Common.getElectron();
7676

77-
let attachments = S.Chat.getAttachments(attachmentsSubId);
77+
const attachments = S.Chat.getAttachments(attachmentsSubId);
7878

7979
const setAttachments = (list: any[]) => {
8080
S.Chat.setAttachments(attachmentsSubId, list);

src/ts/component/block/dataview/filters/group.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ const DataviewFilterGroup = observer(forwardRef<{}, Props>((props, ref) => {
161161
<div className="head">
162162
<Label text={operatorName} />
163163
</div>
164-
)
164+
);
165165
};
166166

167167
const getItems = () => {

src/ts/component/block/dataview/view/board/card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const BoardCard = observer(forwardRef<I.RowRef, Props>((props, ref) => {
5353
};
5454

5555
const ids = selection?.get(I.SelectType.Record) || [];
56-
if (((e.ctrlKey || e.metaKey) && (ids.length > 1)) || keyboard.isSelectionClearDisabled) {
56+
if (((e.ctrlKey || e.metaKey) && (ids.length > 1)) || keyboard.isSelectionClearDisabled) {
5757
return;
5858
};
5959

src/ts/component/header/main/chat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const HeaderMainChat = observer(forwardRef<{}, I.HeaderComponent>((props, ref) =
112112
id="button-header-search"
113113
tooltipParam={{ text: translate('commonSearch'), caption: keyboard.getCaption('searchText'), typeY: I.MenuDirection.Bottom }}
114114
className="search withBackground"
115-
onClick={() => keyboard.onSearchText('', analytics.route.header)}
115+
onClick={() => keyboard.onSearchText('', analytics.route.header)}
116116
onDoubleClick={e => e.stopPropagation()}
117117
/>
118118

src/ts/component/menu/block/action.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const MenuBlockAction = observer(forwardRef<I.MenuRef, I.Menu>((props, ref) => {
112112
let hasColor = true;
113113
let hasBg = true;
114114
let hasCommon = true;
115-
let hasClipboard = true;
115+
const hasClipboard = true;
116116
let hasQuote = false;
117117

118118
for (const id of blockIds) {

src/ts/model/content/table.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { I } from 'Lib';
2-
import { observable, makeObservable } from 'mobx';
2+
import { observable, makeObservable } from 'mobx';
33

44
class BlockContentTableRow implements I.ContentTableRow {
55

0 commit comments

Comments
 (0)