Skip to content

Commit

Permalink
More lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Dec 12, 2024
1 parent 824eb7f commit ca064c7
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 21 deletions.
14 changes: 0 additions & 14 deletions app/.eslintrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useEffect, useState } from "react";
export default function App() {
const [result, setResult] = useState<unknown>();
useEffect(() => {
// eslint-disable-next-line @typescript-eslint/no-floating-promises
(async () => {
try {
const res = await fetchTranscripts({

Check failure on line 10 in app/src/App.tsx

View workflow job for this annotation

GitHub Actions / Lint, build, and test on node 22.x and ubuntu-latest

Unsafe assignment of an error typed value

Check failure on line 10 in app/src/App.tsx

View workflow job for this annotation

GitHub Actions / Lint, build, and test on node 22.x and ubuntu-latest

Unsafe call of a(n) `error` type typed value
Expand All @@ -15,7 +16,6 @@ export default function App() {
gene: "DMD",
urltemplate: "tracks/All_Genes/{refseq}/trackData.jsonz",
});
console.log(res);
setResult(res);
} catch (e) {
console.error(e);
Expand Down
4 changes: 1 addition & 3 deletions lib/src/NCListFeature.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-explicit-any,@typescript-eslint/no-unsafe-assignment,@typescript-eslint/prefer-nullish-coalescing,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-return,@typescript-eslint/no-unsafe-call */
import {
Feature,
SimpleFeatureSerialized,
Expand All @@ -15,7 +16,6 @@ export default class NCListFeature implements Feature {

private uniqueId: string;


constructor(
private ncFeature: any,
parent?: Feature,
Expand All @@ -42,11 +42,9 @@ export default class NCListFeature implements Feature {
return mapped;
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
get(attrName: string): any {
const attr = this.ncFeature.get(this.jb2TagToJb1Tag(attrName));
if (attr && attrName === "subfeatures") {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return attr.map((subfeature: any) => new NCListFeature(subfeature, this));
}
return attr;
Expand Down
1 change: 1 addition & 0 deletions lib/src/components/GenericGeneSeqPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default function GenericGeneSeqPanel(props: {
const [model] = useState(SequenceFeatureDetailsF().create({}));

useEffect(() => {
// eslint-disable-next-line @typescript-eslint/no-floating-promises
(async () => {
try {
const res = await transcriptList({
Expand Down
2 changes: 1 addition & 1 deletion lib/src/components/GenericSeqPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default function GenericSeqPanel({
ref={seqPanelRef}
model={model}
sequence={result.sequence}
feature={result.feature as any}
feature={result.feature}
/>
</div>
<div className="p-2">
Expand Down
2 changes: 0 additions & 2 deletions lib/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@ import GenericSeqPanel from "./components/GenericSeqPanel";
import GenericGeneSeqPanel from "./components/GenericGeneSeqPanel";
import fetchTranscripts from "./fetchTranscripts";

console.log({ GenericGeneSeqPanel });

export { GenericSeqPanel, GenericGeneSeqPanel, fetchTranscripts };

0 comments on commit ca064c7

Please sign in to comment.