mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 16:51:55 +00:00
See https://github.com/typescript-eslint/typescript-eslint/pull/6754. Also removes needless `.eslintrc.js` files (now that we can use the root `tsconfig.all.json` for linting and it's still fast enough). Some of our eslint rules were unintentionally made ineffective in `client/web`, and this commit also re-enables them and in some cases suppresses the eslint warning where a fix is not urgent.
32 lines
706 B
Python
32 lines
706 B
Python
load("@aspect_rules_ts//ts:defs.bzl", "ts_config")
|
|
load("@npm//:defs.bzl", "npm_link_all_packages")
|
|
load("//dev:defs.bzl", "npm_package")
|
|
load("//dev:eslint.bzl", "eslint_config_and_lint_root")
|
|
|
|
# Disable gazelle for the js/dts-only package
|
|
# gazelle:js disabled
|
|
# gazelle:js_files **/*.{ts,tsx}
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
npm_link_all_packages(name = "node_modules")
|
|
|
|
eslint_config_and_lint_root()
|
|
|
|
ts_config(
|
|
name = "tsconfig",
|
|
src = "tsconfig.json",
|
|
visibility = ["//client:__subpackages__"],
|
|
deps = [
|
|
"//:tsconfig",
|
|
],
|
|
)
|
|
|
|
npm_package(
|
|
name = "extension-api_pkg",
|
|
srcs = [
|
|
"package.json",
|
|
"src/sourcegraph.d.ts",
|
|
],
|
|
)
|