mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-22 20:41:53 +03:00
style: add no-self-compare rule (#5092)
This commit is contained in:
parent
890e3e4435
commit
c1cf25d2d5
@ -126,6 +126,7 @@ const config = {
|
|||||||
'no-cond-assign': 'off',
|
'no-cond-assign': 'off',
|
||||||
'no-constant-binary-expression': 'error',
|
'no-constant-binary-expression': 'error',
|
||||||
'no-constructor-return': 'error',
|
'no-constructor-return': 'error',
|
||||||
|
'no-self-compare': 'error',
|
||||||
'react/prop-types': 'off',
|
'react/prop-types': 'off',
|
||||||
'react/jsx-no-useless-fragment': 'error',
|
'react/jsx-no-useless-fragment': 'error',
|
||||||
'@typescript-eslint/consistent-type-imports': 'error',
|
'@typescript-eslint/consistent-type-imports': 'error',
|
||||||
|
@ -24,13 +24,13 @@ export function createAffineAwarenessProvider(
|
|||||||
const socket = getIoManager().socket('/');
|
const socket = getIoManager().socket('/');
|
||||||
|
|
||||||
const awarenessBroadcast = ({
|
const awarenessBroadcast = ({
|
||||||
workspaceId,
|
workspaceId: wsId,
|
||||||
awarenessUpdate,
|
awarenessUpdate,
|
||||||
}: {
|
}: {
|
||||||
workspaceId: string;
|
workspaceId: string;
|
||||||
awarenessUpdate: string;
|
awarenessUpdate: string;
|
||||||
}) => {
|
}) => {
|
||||||
if (workspaceId !== workspaceId) {
|
if (wsId !== workspaceId) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
applyAwarenessUpdate(
|
applyAwarenessUpdate(
|
||||||
|
Loading…
Reference in New Issue
Block a user