UNPKG

@tupe12334/eslint-config

Version:

ESLint configuration package with TypeScript support

9 lines (6 loc) 197 B
const obj = { a: 1 }; // This should trigger optional chaining error const value = obj?.a; // This should also trigger optional chaining error const fn = obj?.toString?.(); export { value, fn };