You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2022/09/27 23:40:40 UTC

[superset] 01/02: adding the rule!

This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch enforce-optional-chaining
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 9e1d06fc2c35b5e03acb3592cc03f37f369ad048
Author: Evan Rusackas <ev...@preset.io>
AuthorDate: Tue Sep 27 16:56:59 2022 -0600

    adding the rule!
---
 superset-frontend/.eslintrc.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/superset-frontend/.eslintrc.js b/superset-frontend/.eslintrc.js
index 98a453d8cf..6eebb0d2df 100644
--- a/superset-frontend/.eslintrc.js
+++ b/superset-frontend/.eslintrc.js
@@ -96,6 +96,7 @@ module.exports = {
         '@typescript-eslint/no-non-null-assertion': 0, // disabled temporarily
         '@typescript-eslint/explicit-function-return-type': 0,
         '@typescript-eslint/explicit-module-boundary-types': 0, // re-enable up for discussion
+        '@typescript-eslint/prefer-optional-chain': 2,
         camelcase: 0,
         'class-methods-use-this': 0,
         'func-names': 0,