From 42fb86a9290a72c0255393ee6b9d762b16c3dd55 Mon Sep 17 00:00:00 2001 From: Rick Date: Wed, 1 Nov 2023 14:11:55 +0800 Subject: [PATCH] eslint-config: add rule for config to work properly --- packages/eslint-config-react-native/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/eslint-config-react-native/index.js b/packages/eslint-config-react-native/index.js index 8de08008e5c9..23f2fe991648 100644 --- a/packages/eslint-config-react-native/index.js +++ b/packages/eslint-config-react-native/index.js @@ -220,6 +220,7 @@ module.exports = { 'no-catch-shadow': 1, // disallow the catch clause parameter name being the same as a variable in the outer scope (off by default in the node environment) 'no-delete-var': 1, // disallow deletion of variables + 'no-global-assign': 2, // disallow assignments to native objects or read-only global variables 'no-label-var': 1, // disallow labels that share a name with a variable 'no-shadow': 1, // disallow declaration of variables already declared in the outer scope 'no-shadow-restricted-names': 1, // disallow shadowing of names such as arguments