Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Mar 18, 2024
1 parent 75ba8e6 commit cc7a6c2
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 61 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module.exports = {
root: true,
env: {
browser: true,
node: true,
jest: true,
},
settings: {
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion lib/docgen/generateStateModelDocs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ interface StateModel {
}

function generateStateModelDocs(files: string[]) {
// eslint-disable-next-line no-undef
const cwd = process.cwd() + '/'
const contents = {} as Record<string, StateModel>
extractWithComment(files, obj => {
Expand Down
2 changes: 0 additions & 2 deletions lib/src/components/msa/renderBoxFeatureCanvasBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ function drawTiles({
visibleLeaves: HierarchyNode<NodeWithIdsAndLength>[]
}) {
const {
rows,
subFeatureRows,
colWidth,
rowHeight,
Expand All @@ -72,7 +71,6 @@ function drawTiles({
} = node

const str = loadedIntroProAnnotations?.[name]
const str2 = rows.find(f => f[0] === name)?.[1]

let j = 0
if (str) {
Expand Down
15 changes: 1 addition & 14 deletions lib/src/components/tree/dialogs/TreeNodeInfoDialog.tsx
Original file line number Diff line number Diff line change
@@ -1,28 +1,16 @@
import React from 'react'
import { Dialog } from '@jbrowse/core/ui'
import { DialogContent, TextField } from '@mui/material'
import { DialogContent } from '@mui/material'
import { observer } from 'mobx-react'
import {
Attributes,
BaseCard,
} from '@jbrowse/core/BaseFeatureWidget/BaseFeatureDetail'
import { makeStyles } from 'tss-react/mui'

// locals
import { MsaViewModel } from '../../../model'
import SequenceTextArea from '../../SequenceTextArea'

const useStyles = makeStyles()({
textAreaFont: {
fontFamily: 'Courier New',
},
dialogContent: {
background: 'lightgrey',
margin: 4,
width: '80em',
},
})

export default observer(function ({
info,
model,
Expand All @@ -34,7 +22,6 @@ export default observer(function ({
nodeName: string
onClose: () => void
}) {
const { classes } = useStyles()
const { treeMetadata, rows } = model
const metadata = treeMetadata[nodeName]
const [name, sequence] = rows.find(f => f[0] === nodeName)!
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"app"
],
"scripts": {
"test": "jest",
"lint": "eslint --report-unused-disable-directives --max-warnings 0 --ext .js,.ts,.jsx,.tsx ."
},
"devDependencies": {
Expand Down
44 changes: 0 additions & 44 deletions util/launchInterProScan.test.ts

This file was deleted.

0 comments on commit cc7a6c2

Please sign in to comment.