You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- `forbidden-reference`: Bans using configured module, value, and type references.
28
+
- `single-use-function`: Reports local helper functions that are defined once and only used once.
29
+
- `alias-avoidance`: Reports local aliases like `let f = Module.f`, `type t = Module.t`, and `module M = Long.Path`. Prefer the fully qualified reference instead.
30
+
- `forbidden-source-root-reference`: Reports value and type references whose declarations come from configured source roots such as generated code folders.
31
+
- `preferred-type-syntax`: Reports non-canonical type spellings like `Dict.t<_>` in favor of builtin syntax like `dict<_>`.
32
+
- Rewrite:
33
+
- `prefer-switch`: Rewrites eligible `if` / `else if` chains and ternaries into canonical `switch` forms.
34
+
- `no-optional-some`: Rewrites redundant `~label=?Some(expr)` optional-argument wrapping into the direct labeled form.
35
+
- `preferred-type-syntax`: Rewrites supported non-canonical type spellings like `Dict.t<_>` into builtin syntax like `dict<_>`.
28
36
29
37
Support
30
38
- Add `.rescript-lint.json` config support, a shipped JSON schema, AI tooling docs, and golden tests for the new command surface
0 commit comments