UNPKG
@tupe12334/eslint-config
Version:
latest (1.0.5)
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
ESLint configuration package with TypeScript support
@tupe12334/eslint-config
/
test
/
test-optional.ts
9 lines
(6 loc)
•
197 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
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
};