Skip to content

Commit

Permalink
fix: added more exceptions to id length
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Konecny committed Nov 17, 2023
1 parent d7f5f99 commit 4d0f16f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/eslint-config-react-native/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d0f16f

Please sign in to comment.