From 4d0f16f899d4579e52b30808c6662fd5dc636596 Mon Sep 17 00:00:00 2001 From: Petr Konecny Date: Fri, 17 Nov 2023 17:56:48 +0100 Subject: [PATCH] fix: added more exceptions to id length --- packages/eslint-config-react-native/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/eslint-config-react-native/index.js b/packages/eslint-config-react-native/index.js index f2649bf..b4a6507 100644 --- a/packages/eslint-config-react-native/index.js +++ b/packages/eslint-config-react-native/index.js @@ -28,7 +28,8 @@ module.exports = { // coordinates are often used in React Native and it is not a good idea to rename them // also there is a common translation function 't' which is also not a good candidate for renaming // additionally, we allow single letter variables for loops - 'id-length': ['warn', { properties: 'never', exceptions: ['x', 'y', 'z', 't', 'i', 'j', 'n', '_'] }], + // a, b are often used in sorting functions + 'id-length': ['warn', { properties: 'never', exceptions: ['x', 'y', 'z', 't', 'i', 'j', 'n', 'a', 'b', '_'] }], // overrides the Expo Universe config, as we feel there is a value in having to specifically mark floating // promises as void