Skip to content

Commit

Permalink
chore: cleaning up code and fixing lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
katiestahl committed May 22, 2024
1 parent b8e3e08 commit 6ade751
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"build": "npm run lint && react-scripts build",
"test": "jest",
"eject": "react-scripts eject",
"lint": "eslint --fix --ext .js,.ts,.tsx ./src --ignore-path .gitignore --max-warnings=0 --config .eslintrc.js",
"lint": "eslint --fix --ext .js,.ts,.tsx ./src --ignore-path .gitignore --config .eslintrc.js",
"lint:warn": "eslint . --ext .js,.jsx,.ts,.tsx",
"prettier": "prettier --ignore-path .gitignore --write \"**/*.+(js|json|ts|tsx)\"",
"prettier-check": "prettier -c --ignore-path .gitignore \"**/*.+(js|json|ts|tsx)\"",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const BrowseCategories: React.FC = () => {
{renderedCategories?.map((cat: any, index: number) => {
if (cat.geneCount) {
return (
<Accordion>
<Accordion key={index}>
<AccordionSummary
style={{ padding: '0 10px' }}
expandIcon={<ExpandMoreIcon />}
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Browse/Sources/BrowseSources.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const BrowseSources = () => {
</Box>
<Box className="source-section">
<b>License: </b>
<a href={src.licenseLink} target="_blank">
<a href={src.licenseLink} target="_blank" rel="noreferrer">
{src.license}
</a>
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ interface Props {

export const AmbiguousResult: React.FC<Props> = ({
ambiguousTermData,
resultType,
}) => {
const [selectedTerm, setSelectedTerm] = useState<string[]>([]);
const [interactionResults, setInteractionResults] = useState<any[]>([]);
Expand Down
1 change: 1 addition & 0 deletions client/src/components/Shared/Buttons/ButtonAction.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react';
import './ButtonAction.scss';

interface Props {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ const ReleaseInformation: React.FC = () => {
DGIdb {currentRelease.name} (
{new Date(currentRelease.published_at).toLocaleString().split(',')[0]}
)&nbsp; &bull; &nbsp;
<a href={currentRelease.html_url} target="_blank">
<a href={currentRelease.html_url} target="_blank" rel="noreferrer">
Release Notes
</a>
&nbsp; &bull; &nbsp;
<a href="https://github.com/dgidb/dgidb-v5/releases/" target="_blank">
<a href="https://github.com/dgidb/dgidb-v5/releases/" target="_blank" rel="noreferrer">
History
</a>
</div>
Expand Down
1 change: 0 additions & 1 deletion client/src/pages/Browse/Browse.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// hooks/dependencies
import React, { useState, useContext, useEffect } from 'react';
import { BrowseCategories } from 'components/Browse/Categories';

// styles
Expand Down

0 comments on commit 6ade751

Please sign in to comment.