外觀
禁用可選鏈結。
const foo = obj?.foo; obj.fn?.();
{ "rules": { "no-optional-chaining": [ "error", { "message": "Our output target is ES2016, and optional chaining results in verbose helpers and should be avoided.", } ] } }
message