mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 19:21:50 +00:00
- Custom ESLint Bazel rule now relies on `sh_test`. The build part of
the rule produces the output file with ESLint errors, and the `sh_test`
target verifies that it's empty. If it's not empty, the ESLint test
fails, and the report content is printed to stdout.
- Added additional ESLint targets to `*.js` files in the root of each
client package.
- Added additional ESLint targets for `*.story.tsx` files for client
packages with stories. It's temporary until we start building Storybook
story modules with `ts_project`.
- Disabled ESLint outside of Bazel: **10-12m job is gone!** 🎉
## Test plan
bazel test `bazel query 'attr("name", ".*_eslint$", //client/...)'`
27 lines
477 B
JSON
27 lines
477 B
JSON
{
|
|
"extends": "../../tsconfig.base.json",
|
|
"compilerOptions": {
|
|
"jsx": "react-jsx",
|
|
"module": "commonjs",
|
|
"sourceRoot": "src",
|
|
"rootDir": ".",
|
|
"outDir": "./out",
|
|
"baseUrl": "./src",
|
|
"paths": {
|
|
"*": ["../common/src/types/*"],
|
|
},
|
|
},
|
|
"references": [
|
|
{
|
|
"path": "../extension-api",
|
|
},
|
|
{
|
|
"path": "../extension-api-types",
|
|
},
|
|
{
|
|
"path": "../template-parser",
|
|
},
|
|
],
|
|
"include": ["src", "*.js"],
|
|
}
|