-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Jump linking table, virtualized tanstack table (#4)
* feat: add parent component for examples * feat: add PhyloTree * feat: write a wrapper for gosling component to avoid passing down the gosling ref * fix: jsdocs * feat: set states for track height and gosling height * feat: create meta component wrapper * feat: adapt table to new API * feat: add very simple example to demonstrate track issue * feat: adapt metatable to new events and fixed track ids * feat: adapt code to new API * feat: Add sortable table * feat: fix import * chore: add TanStack Table Props interface and increase gosling.js version * feat: add jump button to table * feat: add linkageType for table (scroll, window, jump) * feat: implement jump linkage * fix: adapt to new gosling version * feat: virtualize metadata table * fix: Typescript issues * chore: add default parameter for linkageType * chore: add eslint rules
- Loading branch information
Showing
16 changed files
with
1,145 additions
and
490 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,64 @@ | ||
module.exports = { | ||
settings: { | ||
react: { | ||
version: "detect", | ||
settings: { | ||
react: { | ||
version: "detect", | ||
}, | ||
}, | ||
}, | ||
env: { | ||
browser: true, | ||
es2021: true | ||
}, | ||
extends: [ | ||
'plugin:react/recommended', | ||
'plugin:@typescript-eslint/eslint-recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
"prettier", | ||
], | ||
overrides: [ | ||
], | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
project: './tsconfig.json' | ||
}, | ||
plugins: [ | ||
'react', | ||
"prettier" | ||
], | ||
rules: { | ||
'@typescript-eslint/no-unused-vars': "off", | ||
} | ||
env: { | ||
browser: true, | ||
es2021: true | ||
}, | ||
extends: [ | ||
'plugin:react/recommended', | ||
'plugin:@typescript-eslint/eslint-recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
"prettier", | ||
], | ||
overrides: [], | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
project: './tsconfig.json' | ||
}, | ||
plugins: [ | ||
'react', | ||
"prettier" | ||
], | ||
rules: { | ||
'prettier/prettier': 'warn', | ||
// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#supported-rules | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-empty-interface': 'off', | ||
'@typescript-eslint/prefer-for-of': 'error', | ||
'@typescript-eslint/no-for-in-array': 'error', | ||
'@typescript-eslint/no-require-imports': 'error', | ||
'@typescript-eslint/no-empty-function': 'off', // we need this in HiGlass plugin track | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/no-namespace': 'off', | ||
'@typescript-eslint/ban-ts-comment': 'off', | ||
'no-unused-vars': 'off', // must disable the base rule as it can report incorrect errors | ||
// https://www.executeprogram.com/blog/the-code-is-the-to-do-list | ||
"no-warning-comments": ["error", {terms: ["xxx"], location: "anywhere"}], | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ | ||
vars: 'all', | ||
args: 'after-used', | ||
ignoreRestSiblings: true | ||
} | ||
], | ||
// https://eslint.org/docs/rules/ | ||
'linebreak-style': ['error', 'unix'], | ||
'no-console': ['error', {allow: ['warn', 'error']}], | ||
'no-trailing-spaces': 'error', | ||
'no-irregular-whitespace': ['error', {skipComments: true}], | ||
'no-alert': 'error', | ||
'prefer-const': 'error', | ||
'no-case-declarations': 'warn', | ||
'no-return-assign': 'error', | ||
'no-useless-call': 'error', | ||
'no-shadow': 'off', // 'error', // we could enable this later | ||
'no-useless-concat': 'error', | ||
"prefer-template": 'error' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.