sourcegraph/client/template-parser
Valery Bugakov ff3ce9fe93
bazel: improve ESLint rule and disable ESLint outside of Bazel (#52667)
- 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/...)'`
2023-06-02 08:37:40 +00:00
..
src web: upgrade prettier to the latest version to support TS satisfies operator (#45400) 2022-12-08 02:37:23 -08:00
.eslintignore refactor: extract the new template-parser package (#29344) 2022-01-11 08:58:28 +07:00
.eslintrc.js refactor: extract the new template-parser package (#29344) 2022-01-11 08:58:28 +07:00
babel.config.js refactor: extract the new template-parser package (#29344) 2022-01-11 08:58:28 +07:00
BUILD.bazel bazel: improve ESLint rule and disable ESLint outside of Bazel (#52667) 2023-06-02 08:37:40 +00:00
jest.config.js refactor: extract the new template-parser package (#29344) 2022-01-11 08:58:28 +07:00
package.json web: migrate from yarn to pnpm (#46143) 2023-01-11 19:50:09 -08:00
README.md refactor: extract the new template-parser package (#29344) 2022-01-11 08:58:28 +07:00
tsconfig.json bazel: improve ESLint rule and disable ESLint outside of Bazel (#52667) 2023-06-02 08:37:40 +00:00

Template Parser