Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Jul 22, 2022
1 parent 0f8cfb5 commit c2f2e52
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export function readBlobAsText(blob: Blob): Promise<string> {
})
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
function ImportSession({ model }: { model: any }) {
const [error, setError] = useState<unknown>()
const { getRootProps, getInputProps, isDragActive } = useDropzone({
Expand All @@ -112,6 +113,7 @@ function ImportSession({ model }: { model: any }) {
})

// @ts-ignore
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const { classes } = useStyles({ isDragActive }) as any

return (
Expand Down
1 change: 1 addition & 0 deletions plugins/wiggle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"fast-deep-equal": "^3.1.3",
"is-object": "^1.0.1",
"react-d3-axis-mod": "^0.1.3",
"react-dropzone": "^14.2.1",
"react-popper": "^2.0.0"
},
"peerDependencies": {
Expand Down
8 changes: 0 additions & 8 deletions plugins/wiggle/src/MultiWiggleAdapter/MultiWiggleAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,11 @@ import { ObservableCreate } from '@jbrowse/core/util/rxjs'
import { SimpleFeature, Feature } from '@jbrowse/core/util'
import { merge } from 'rxjs'
import { map } from 'rxjs/operators'
import { AnyConfigurationModel } from '@jbrowse/core/configuration'

interface WiggleOptions extends BaseOptions {
resolution?: number
}

interface BigWigEntry {
uri: string
color?: string
name?: string
}

function getFilename(uri: string) {
const filename = uri.slice(uri.lastIndexOf('/') + 1)
return filename.slice(0, filename.lastIndexOf('.'))
Expand Down Expand Up @@ -116,7 +109,6 @@ export default class MultiWiggleAdapter extends BaseFeatureDataAdapter {
// something, but it is static for this particular multi-wiggle adapter type
async getSources() {
const adapters = await this.getAdapters()
console.log({ adapters })
return adapters.map(({ dataAdapter, source, ...rest }) => ({
name: source,
...rest,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function MultiWiggleWidget({ model }: { model: AddTrackModel }) {
bigWigLocation: storeBlobLocation({ blob: file }),
source: file.name,
}))
setVal(JSON.stringify(res))
setVal(JSON.stringify(res, null, 2))
}}
/>
<Button
Expand Down
3 changes: 3 additions & 0 deletions plugins/wiggle/src/MultiWiggleAddTrackWidget/Dropzone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ import { useDropzone } from 'react-dropzone'
import CloudUploadIcon from '@mui/icons-material/CloudUpload'
import ErrorIcon from '@mui/icons-material/Error'

// eslint-disable-next-line @typescript-eslint/no-explicit-any
function styledBy(property: string, mapping: { [key: string]: any }) {
return (props: { [key: string]: string }) => mapping[props[property]]
}

// @ts-ignore
const useStyles = makeStyles()(theme => ({
root: {
margin: theme.spacing(1),
Expand Down Expand Up @@ -100,6 +102,7 @@ function Dropzone({
})

// @ts-ignore
// // eslint-disable-next-line @typescript-eslint/no-explicit-any
const { classes } = useStyles({ isDragActive }) as any

return (
Expand Down

0 comments on commit c2f2e52

Please sign in to comment.