There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
style: add no-self-compare rule (#5092)
LongYinanc1cf25d2d548
diff --git a/.eslintrc.js b/.eslintrc.jsindex 31e36813f7..73b7e97c36 100644--- a/.eslintrc.js+++ b/.eslintrc.js@@ -126,6 +126,7 @@ const config = {'no-cond-assign': 'off','no-constant-binary-expression': 'error','no-constructor-return': 'error',+ 'no-self-compare': 'error','react/prop-types': 'off','react/jsx-no-useless-fragment': 'error','@typescript-eslint/consistent-type-imports': 'error',diff --git a/packages/frontend/workspace/src/providers/awareness/affine/index.ts b/packages/frontend/workspace/src/providers/awareness/affine/index.tsindex 41d652e983..d6d0b9d393 100644--- a/packages/frontend/workspace/src/providers/awareness/affine/index.ts+++ b/packages/frontend/workspace/src/providers/awareness/affine/index.ts@@ -24,13 +24,13 @@ export function createAffineAwarenessProvider(const socket = getIoManager().socket('/');const awarenessBroadcast = ({- workspaceId,+ workspaceId: wsId,awarenessUpdate,}: {workspaceId: string;awarenessUpdate: string;}) => {- if (workspaceId !== workspaceId) {+ if (wsId !== workspaceId) {return;}applyAwarenessUpdate(