You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The front-end code lives in ./public and is a modern ES module application built with
LitElement web components. The jsconfig.json currently has checkJs disabled:
{
"compilerOptions": {
"checkJs": false,
...
}
}
Enabling it will surface type errors across all .js files that need to be resolved
with JSDoc annotations or small code fixes.
Goal
Any help is welcome to enhance the type safety of the current front-end code by enabling checkJs in ./public/jsconfig.json.
There are a lot of issues across all .js files that need to be resolved and this is a
good opportunity for new contributors. We do not expect PRs with a lot of changes —
very focused, per-component or per-file contributions are strongly preferred and easier
to review.
How to get started
Fork the repository and enable checkJs: true in ./public/jsconfig.json
Run npx tsc --noEmit -p ./public/jsconfig.json to see all errors
Pick one unclaimed file or component from the task list below, fix its errors, and open a PR
Tip
Please do not comment on this issue to claim a task before starting work on it.
Context
The front-end code lives in
./publicand is a modern ES module application built withLitElement web components. The
jsconfig.jsoncurrently hascheckJsdisabled:{ "compilerOptions": { "checkJs": false, ... } }Enabling it will surface type errors across all
.jsfiles that need to be resolvedwith JSDoc annotations or small code fixes.
Goal
Any help is welcome to enhance the type safety of the current front-end code by enabling
checkJsin./public/jsconfig.json.There are a lot of issues across all
.jsfiles that need to be resolved and this is agood opportunity for new contributors. We do not expect PRs with a lot of changes —
very focused, per-component or per-file contributions are strongly preferred and easier
to review.
How to get started
checkJs: truein./public/jsconfig.jsonnpx tsc --noEmit -p ./public/jsconfig.jsonto see all errorsTip
Please do not comment on this issue to claim a task before starting work on it.
Tasks
Core
core/events.jscore/i18n.jscore/network-navigation.jsCommon
common/utils.jscommon/scorecard.jscommon/scrollbar-style.jsRoot
main.jswebsocket.jsComponents
Standalone
components/bundlephobia/bundlephobia.jscomponents/expandable/expandable.jscomponents/file-box/file-box.jscomponents/gauge/gauge.jscomponents/icon/icon.jscomponents/legend/legend.jscomponents/locked-navigation/locked-navigation.jscomponents/locker/locker.jscomponents/navigation/navigation.jscomponents/network-breadcrumb/network-breadcrumb.jscomponents/npm-avatar/npm-avatar.jscomponents/popup/popup.jscomponents/root-selector/root-selector.jscomponents/wiki/wiki.jsitems-list
components/items-list/items-list.jscomponents/items-list/view-model.jspackage
components/package/package.jscomponents/package/header/header.jscomponents/package/pannels/index.jscomponents/package/pannels/overview/overview.jscomponents/package/pannels/files/files.jscomponents/package/pannels/licenses/licenses.jscomponents/package/pannels/licenses/view-model.jscomponents/package/pannels/scripts/scripts.jscomponents/package/pannels/scorecard/scorecard.jscomponents/package/pannels/vulnerabilities/vulnerabilities.jscomponents/package/pannels/warnings/warnings.jscomponents/package/pannels/warnings/code-fetcher.jssearch-command
components/search-command/search-command.jscomponents/search-command/search-chip.jscomponents/search-command/search-command-panels.jscomponents/search-command/search-command-styles.jscomponents/search-command/filters.jsviews
components/views/home/home.jscomponents/views/home/maintainers/maintainers.jscomponents/views/home/report/report.jscomponents/views/search/search.jscomponents/views/search/search-view-styles.jscomponents/views/settings/settings.jscomponents/views/tree/tree.jscomponents/views/tree/tree-card.jscomponents/views/tree/tree-connectors.jscomponents/views/tree/tree-layout.jscomponents/views/tree/tree-styles.jscomponents/views/warnings/warnings.js