mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 16:51:55 +00:00
Turn off 2 low-value eslint rules that add a lot of noise: - `@typescript-eslint/no-explicit-any` because if you mean to use `any` then you probably mean to. We still have eslint warnings for `any` member access, which is indeed riskier. - `@typescript-eslint/no-non-null-assertion` because if you type `!` then you mean it. Both of these have hundreds of warnings in our current codebase, so this significantly reduces the eslint noise and makes it so that the higher-value eslint rules are more noticeable. |
||
|---|---|---|
| .. | ||
| docs | ||
| scripts | ||
| standalone/src | ||
| webview | ||
| .eslintignore | ||
| .gitignore | ||
| .stylelintrc.json | ||
| BUILD.bazel | ||
| CHANGELOG.md | ||
| globals.d.ts | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| settings.gradle.kts | ||
| tsconfig.json | ||
Sourcegraph Code Search for IntelliJ
This directory contains web assets for the Sourcegraph JetBrains plugin. The JetBrains plugin lives in the sourcegraph/jetbrains repository.
Building the assets
Run the following commands to build the assets.
pnpm i
pnpm build
# (optional) pnpm watch
The assets get generated to src/main/resources/dist, which are ignored by
git. The JetBrains plugin embeds the contents of that directory into the
plugin.
Previewing the assets locally
Run the following commands to preview the components in a standalone HTML file.
pnpm standalone && open http://localhost:3000/