Skip to content

Commit

Permalink
fix lint stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Leouarz committed Jul 26, 2023
1 parent 4013e5a commit 22b0259
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/page-settings/src/Metadata/NetworkSpecs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,18 @@ function NetworkSpecs ({ chainInfo, className }: Props): React.ReactElement<Prop
}
}, [chainInfo, systemChain]);

const _onClearStore = () => {
store.clearAll()
console.log('Store cleared')
}
function _onClearStore(){

Check failure on line 82 in packages/page-settings/src/Metadata/NetworkSpecs.tsx

View workflow job for this annotation

GitHub Actions / pr (lint)

Missing space before function parentheses

Check failure on line 82 in packages/page-settings/src/Metadata/NetworkSpecs.tsx

View workflow job for this annotation

GitHub Actions / pr (lint)

Missing space before opening brace
store.clearAll();
console.log('Store cleared');
};

Check failure on line 85 in packages/page-settings/src/Metadata/NetworkSpecs.tsx

View workflow job for this annotation

GitHub Actions / pr (lint)

Expected blank line before this statement

Check failure on line 85 in packages/page-settings/src/Metadata/NetworkSpecs.tsx

View workflow job for this annotation

GitHub Actions / pr (lint)

Unnecessary semicolon

Check failure on line 85 in packages/page-settings/src/Metadata/NetworkSpecs.tsx

View workflow job for this annotation

GitHub Actions / pr (lint)

Unnecessary semicolon


Check failure on line 87 in packages/page-settings/src/Metadata/NetworkSpecs.tsx

View workflow job for this annotation

GitHub Actions / pr (lint)

More than 1 blank line not allowed
const _onChangeColor = useCallback(
(color: string): void => setNetworkSpecs({ color }),
[]
);


Check failure on line 93 in packages/page-settings/src/Metadata/NetworkSpecs.tsx

View workflow job for this annotation

GitHub Actions / pr (lint)

More than 1 blank line not allowed
const _onSetRandomColor = useCallback(
(event: React.MouseEvent<unknown>): void => {
event.preventDefault();
Expand Down

0 comments on commit 22b0259

Please sign in to comment.