From 584e32b3af197711b806dddafe025de8662d4070 Mon Sep 17 00:00:00 2001 From: Bastien DUMONT <bdumont@grandlyon.com> Date: Wed, 23 Nov 2022 17:24:54 +0100 Subject: [PATCH] chore: add "prefer-optional-chain" eslint rule --- .eslintrc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.js b/.eslintrc.js index 505e8ccc4..d463b1af4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -28,6 +28,7 @@ module.exports = { 'react/prop-types': 'warn', 'no-console': 'off', '@typescript-eslint/no-explicit-any': 'warn', + '@typescript-eslint/prefer-optional-chain': 'warn', }, settings: { react: { -- GitLab