Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix strict equal lint errors
Browse files Browse the repository at this point in the history
duranb committed Nov 8, 2023
1 parent 25edf5e commit c4c5a05
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/activity/ActivityDirectiveChangelog.svelte
Original file line number Diff line number Diff line change
@@ -254,7 +254,7 @@
{formatParameterValue(activityRevisionChangeMap[i].name, activityRevisionChangeMap[i].currentValue)}
</div>
<div class="actions">
{#if i == 0}
{#if i === 0}
<span>Current Revision</span>
{:else}
<button
2 changes: 1 addition & 1 deletion src/components/activity/ActivityFormPanel.svelte
Original file line number Diff line number Diff line change
@@ -78,7 +78,7 @@
}
const revision: ActivityDirectiveRevision = event.detail;
const activityType = $activityTypes.find(type => type.name == $selectedActivityDirective?.type);
const activityType = $activityTypes.find(type => type.name === $selectedActivityDirective?.type);
const changedKeys: string[] = [];
const potentialChanges: Array<keyof ActivityDirective & keyof ActivityDirectiveRevision> = [
2 changes: 1 addition & 1 deletion src/utilities/modal.ts
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ export function modalBodyClickListener(): void {
export function modalBodyKeyListener(event: KeyboardEvent): void {
if (browser) {
const target: ModalElement | null = document.querySelector('#svelte-modal');
if (target && target.resolve && event.key == 'Escape' && target.getAttribute('data-dismissible') !== 'false') {
if (target && target.resolve && event.key === 'Escape' && target.getAttribute('data-dismissible') !== 'false') {
target.replaceChildren();
target.resolve({ confirm: false });
target.resolve = null;
2 changes: 1 addition & 1 deletion src/utilities/useActions.ts
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@ export function useActions(node: HTMLElement | SVGElement, actions: ActionArray)
},

update(actions: ActionArray) {
if (((actions && actions.length) || 0) != actionReturns.length) {
if (((actions && actions.length) || 0) !== actionReturns.length) {
throw new Error('You must not change the length of an actions array.');
}

2 changes: 1 addition & 1 deletion src/workers/workerHelpers.ts
Original file line number Diff line number Diff line change
@@ -318,7 +318,7 @@ function validateInteger(value: string, name: string, range: NumericRange | null
if ((error_string = validateFloat(value, name, range)) !== false) {
return error_string;
}
if (Number(value) % 1 != 0) {
if (Number(value) % 1 !== 0) {
return CustomErrorCodes.InvalidInteger(name, value);
}

0 comments on commit c4c5a05

Please sign in to comment.