Skip to content

Commit 6b7e9bd

Browse files
committed
add rule
1 parent 1048a43 commit 6b7e9bd

File tree

1 file changed

+3
-0
lines changed
  • packages/eslint-config-sdk/src

1 file changed

+3
-0
lines changed

packages/eslint-config-sdk/src/base.js

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ module.exports = {
5252

5353
'@typescript-eslint/consistent-type-imports': 'error',
5454

55+
// We want to use optional chaining, where possible, to safe bytes
56+
'@typescript-eslint/prefer-optional-chain': 'error',
57+
5558
// Private and protected members of a class should be prefixed with a leading underscore.
5659
// typeLike declarations (class, interface, typeAlias, enum, typeParameter) should be
5760
// PascalCase.

0 commit comments

Comments
 (0)