ACS-11155: update conditional checks to use optional chaining (#11658)

- Modified several components to use optional chaining for safer property access, enhancing code robustness.
- Updated ESLint configuration to enforce stricter rules on the use of optional chaining.
- Adjusted tests to reflect changes in property access patterns.
This commit is contained in:
Denys Vuika
2026-02-17 09:13:57 +00:00
committed by GitHub
parent 7004f54821
commit 84affe9f37
10 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ module.exports = {
}
],
'@typescript-eslint/await-thenable': 'error',
'@typescript-eslint/prefer-optional-chain': 'warn',
'@typescript-eslint/prefer-optional-chain': 'error',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-var-requires': 'error',