sourcegraph/client/extension-api/BUILD.bazel
Quinn Slack 07f29c98d6
use @typescript-eslint projectService for faster eslint (#57851)
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.
2023-10-24 01:40:40 +00:00

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",
],
)