vtcode 0.123.7

A Rust-based terminal coding agent with modular architecture supporting multiple LLM providers
id: prefer-optional-chaining
valid:
  - |
      const name = obj?.name;
  - |
      const name = obj && other.prop;
  - |
      if (user) { doSomething(user); }
  - |
      const value = a || fallback;
  - |
      const city = user && user.address.city;
invalid:
  - |
      const name = obj && obj.name;
  - |
      const val = obj != null && obj.name;
  - |
      const val = x !== null && x !== undefined && x.prop;