style: add ban-ts-comment rule (#2738)

(cherry picked from commit 2e975e79dd)
This commit is contained in:
LongYinan
2023-06-09 11:55:23 +08:00
committed by himself65
parent 432e18fda8
commit 4b3353dc1d
16 changed files with 139 additions and 91 deletions
@@ -21,9 +21,9 @@ const page = blockSuiteWorkspace.createPage({ id: 'page0' });
const Editor: React.FC = () => {
const onLoad = useCallback((page: Page, editor: EditorContainer) => {
// @ts-ignore
// @ts-expect-error
globalThis.page = page;
// @ts-ignore
// @ts-expect-error
globalThis.editor = editor;
return () => void 0;
}, []);