fix: add eqeqeq lint rule (#5106)

This commit is contained in:
LongYinan
2023-11-29 04:43:31 +00:00
parent a843dcd851
commit 923844f302
12 changed files with 18 additions and 16 deletions

View File

@@ -179,7 +179,7 @@ export const PlanCard = (props: PlanCardProps) => {
{detail.benefits.map((content, i) => (
<div key={i} className={styles.planBenefit}>
<div className={styles.planBenefitIcon}>
{detail.type == 'dynamic' ? (
{detail.type === 'dynamic' ? (
<BulledListIcon color="var(--affine-processing-color)" />
) : (
<DoneIcon

View File

@@ -85,7 +85,7 @@ const CollectionRenderer = ({
async (id: string) => {
await setting.updateCollection({
...collection,
allowList: collection.allowList?.filter(v => v != id),
allowList: collection.allowList?.filter(v => v !== id),
});
},
[collection, setting]

View File

@@ -194,7 +194,8 @@ export const WorkspaceLayoutInner = ({
const blockVersions = meta.get('blockVersions');
if (
!(blockVersions instanceof YMap) &&
blockVersions != null &&
blockVersions !== null &&
blockVersions !== undefined &&
typeof blockVersions === 'object'
) {
meta.set(