Skip to content

Commit

Permalink
add ignoring of ESLint's old warnings and error
Browse files Browse the repository at this point in the history
  • Loading branch information
aeworxet committed Jun 21, 2024
1 parent 2048b44 commit 70264db
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions apps/studio-next/src/components/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const OperationsNavigation: React.FunctionComponent<NavigationSectionProps> = ({
hash,
}) => {
const { navigationSvc } = useServices();

/* eslint-disable sonarjs/cognitive-complexity */
const operations = document.operations().all().map(
(operation) => {
const channels: React.ReactNode[] = [];
Expand Down Expand Up @@ -160,7 +160,7 @@ const OperationsNavigation: React.FunctionComponent<NavigationSectionProps> = ({
return channels;
},
);

/* eslint-enable sonarjs/cognitive-complexity */
return (
<>
<div
Expand Down
4 changes: 2 additions & 2 deletions apps/studio-next/src/components/Navigationv3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const OperationsNavigation: React.FunctionComponent<NavigationSectionProps> = ({
hash,
}) => {
const { navigationSvc } = useServices();

/* eslint-disable sonarjs/cognitive-complexity */
const operations = document.operations().all().map(
(operation) => {
const operations: React.ReactNode[] = [];
Expand Down Expand Up @@ -226,7 +226,7 @@ const OperationsNavigation: React.FunctionComponent<NavigationSectionProps> = ({
return operations;
},
);

/* eslint-enable sonarjs/cognitive-complexity */
return (
<>
<div
Expand Down
2 changes: 1 addition & 1 deletion apps/studio-next/src/components/common/Switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const Switch: React.FunctionComponent<SwitchProps> = ({
}) => {
const [toggle, setToggle] = useState(initToggle);

const onClickHandler = (e: any) => {
const onClickHandler = (e: any) => { // eslint-disable-line @typescript-eslint/no-unused-vars
const newValue = !toggle;
setToggle(newValue);
onChange(newValue);
Expand Down

0 comments on commit 70264db

Please sign in to comment.