Commit Graph

12 Commits

Author SHA1 Message Date
Sebastian Poxhofer e0cec3dc95 refactor(lint): add types-location rule and enable it for lib/modules (#45497)
feat(lint): add `types-location` rule and enable it for `lib/modules`

Reviewers consistently ask for exported types to be moved into a
colocated `types.ts`. Add a `renovate/types-location` oxlint rule that
reports `export interface` / `export type` declarations outside such a
file, and turn it on across `lib/modules`.

Re-exports (`export type { X }`, `export type *`), file-local types, and
values (enums, classes, functions) are left alone. `schema.ts` files and
`schema/` directories are excluded via config, matching how
`zod-schema-location` is configured — inferred types belong next to the
schema they are derived from.

Relocating the 87 existing violations means:

- new `types.ts` files for the modules that had none
- `terragrunt/common.ts` folded into its `types.ts`, as it held nothing
  else
- `RangeBound` in `versioning/gradle/compare.ts` un-exported, since only
  a file-local interface referenced it
- `bazel-module/parser/fragments.ts` split from its inferred types, which
  now live in `parser/types.ts` and infer through a namespace import so
  each schema keeps its merged name
2026-08-27 19:52:09 +00:00
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
renovate[bot] acacad57c6 chore(deps): update linters (main) (#40277)
* chore(deps): update linters

| datasource | package              | from   | to     |
| ---------- | -------------------- | ------ | ------ |
| npm        | eslint-plugin-oxlint | 1.36.0 | 1.38.0 |
| npm        | typescript-eslint    | 8.50.1 | 8.52.0 |

* chore: enable oxlint gha format

* chore: fix lint

* chore: fix lint

* chore: fix lint

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2026-01-14 15:32:48 +00:00
Tobias Schlatter 14fd37f98f test(bazel-module): do not rely on fragments to test rules (#34298) 2025-02-20 09:44:32 +00:00
Tobias Schlatter ac782ba07e refactor(bazel-module): Move files that support parsing to ./parser (#34299) 2025-02-20 07:15:32 +00:00
Tobias Schlatter 2a809f4d98 refactor(bazel-module): use bazel syntactic concepts in parser (#34154) 2025-02-12 16:32:27 +00:00
Mark Reuter 4ca76e40b5 feat(bazel-module): support bazel_dep dependencies without the version parameter (#33496)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
2025-01-30 12:11:53 +00:00
Mark Reuter f97189c600 feat(bazel-module): Support git_repository (#33415) 2025-01-08 12:34:19 +00:00
Sebastian Poxhofer 3681b2a945 chore: eslint to enforce for typed imports (#30844) 2024-08-19 13:15:27 +00:00
Chuck Grindel ad61b6c875 feat(bazel-modules): support single_version_override (#22610)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2023-06-15 15:50:49 +00:00
Chuck Grindel b53579b849 feat(bazel-module): support archive_override and local_path_override (#22555) 2023-06-02 16:36:37 +00:00
Chuck Grindel 0b96755c64 feat: support git_override in bazel-module manager (#22334) 2023-06-02 06:19:46 +00:00