Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .eslintignore

This file was deleted.

49 changes: 49 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'
import reactPlugin from 'eslint-plugin-react'
import reactHooksPlugin from 'eslint-plugin-react-hooks'

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
...tseslint.configs.stylisticTypeChecked,
reactPlugin.configs.flat.recommended,

{
plugins: {
'react-hooks': reactHooksPlugin,
},
rules: reactHooksPlugin.configs.recommended.rules,
},
{
languageOptions: {
parser: tseslint.parser,
parserOptions: {
ecmaFeatures: {
jsx: true,
},
project: './tsconfig.json',
},
},
settings: {
react: {
version: 'detect',
},
},
rules: {
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-unsafe-assignment': 0,
'@typescript-eslint/no-unsafe-call': 0,
'@typescript-eslint/no-unsafe-return': 0,
'@typescript-eslint/no-unsafe-member-access': 0,
'@typescript-eslint/no-unused-vars': [
'warn',
{
args: 'after-used',
ignoreRestSiblings: true,
},
],
},
},
)
63 changes: 24 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@
"dist",
"src"
],
"config": {
"port": 9000,
"browse": {
"port": 8999
},
"jbrowse": {
"plugin": {
"name": "Template"
}
}
},
"scripts": {
"setup": "npm-run-all setup:*",
"setup:file": "ts-node scripts/setup.ts",
Expand All @@ -32,17 +21,17 @@
"clean": "rimraf dist",
"start": "npm-run-all --sequential clean --parallel start:*",
"start:watch": "cross-env JB_NPM=false NODE_ENV=development rollup --config --watch --bundleConfigAsCjs",
"start:server": "serve --cors --listen $npm_package_config_port .",
"start:server": "serve --cors --listen 9000 .",
"prebuild": "npm-run-all clean",
"build": "rollup --config --bundleConfigAsCjs",
"browse": "npm-run-all jbrowse:*",
"jbrowse:configure": "shx cp jbrowse_config.json .jbrowse/config.json",
"jbrowse:serve": "cross-var serve --listen $npm_package_config_browse_port .jbrowse",
"jbrowse:configure": "cp jbrowse_config.json .jbrowse/config.json",
"jbrowse:serve": "serve --listen 8999 .jbrowse",
"test": "jest",
"test:e2e": "cross-var start-test \"npm-run-all --parallel start browse\" \"$npm_package_config_port|$npm_package_config_browse_port\" \"npm-run-all cypress:run\"",
"cypress:run": "cross-var cypress run --headless --browser chrome --config baseUrl=http://localhost:$npm_package_config_browse_port",
"cypress:open": "cross-var cypress open --config baseUrl=http://localhost:$npm_package_config_browse_port",
"lint": "eslint --ext .js,.ts,.jsx,.tsx src/",
"test:e2e": "start-test \"npm-run-all --parallel start browse\" \"9000|8999\" \"npm-run-all cypress:run\"",
"cypress:run": "cypress run --headless --browser chrome --config baseUrl=http://localhost:8999",
"cypress:open": "cypress open --config baseUrl=http://localhost:8999",
"lint": "eslint src/",
"prepublishOnly": "npm-run-all test",
"prepack": "npm-run-all build",
"postversion": "git push --follow-tags"
Expand All @@ -57,50 +46,46 @@
"@babel/core": "^7.16.5",
"@babel/preset-react": "^7.10.4",
"@emotion/react": "^11.10.4",
"@jbrowse/cli": "^2.6.1",
"@jbrowse/core": "^2.6.1",
"@jbrowse/cli": "^3.3.0",
"@jbrowse/core": "^3.3.0",
"@jbrowse/development-tools": "^2.1.1",
"@mui/material": "^5.10.5",
"@mui/system": "^5.10.5",
"@mui/x-data-grid": "^7.6.1",
"@mui/material": "^7.0.2",
"@mui/system": "^7.0.2",
"@mui/x-data-grid": "^8.1.0",
"@schemastore/package": "^0.0.10",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.1.5",
"@testing-library/react": "^15.0.0",
"@testing-library/react": "^16.3.0",
"@types/jest": "^29.5.11",
"@types/node": "^20.10.5",
"@types/react": "^18.2.45",
"@typescript-eslint/eslint-plugin": "^7.12.0",
"@typescript-eslint/parser": "^7.12.0",
"@types/node": "^22.15.2",
"@types/react": "^19.1.2",
"chalk": "^4.0.0",
"cross-env": "^7.0.3",
"cross-var": "^1.1.0",
"cypress": "^13.6.1",
"eslint": "^8.36.0",
"eslint-config-prettier": "^9.1.0",
"cypress": "^14.3.2",
"eslint": "^9.25.1",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-prettier": "^5.1.0",
"eslint-plugin-react": "^7.20.3",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-hooks": "^7.0.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.6.1",
"mobx": "^6.0.0",
"mobx-react": "^9.1.0",
"mobx-state-tree": "5.4.0",
"mobx-state-tree": "^5.4.2",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.0",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"rimraf": "^5.0.1",
"rollup": "^3.0.0",
"rxjs": "^7.8.1",
"serve": "^14.2.0",
"shx": "^0.3.3",
"start-server-and-test": "^2.0.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.3.0",
"tss-react": "^4.8.6",
"typescript": "^5.3.3"
"typescript": "^5.3.3",
"typescript-eslint": "^8.31.0"
},
"private": true
}
Loading
Loading