Skip to content

Commit

Permalink
fix: updated expo universe and added more id length exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Konecny committed Nov 17, 2023
1 parent cb75641 commit e95b15e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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 @@ -27,7 +27,8 @@ module.exports = {
// overrides base config, adds exceptions to the id-length rule from base config
// 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
'id-length': ['warn', { properties: 'never', exceptions: ['x', 'y', 'z', 't', '_'] }],
// additionally, we allow single letter variables for loops
'id-length': ['warn', { properties: 'never', exceptions: ['x', 'y', 'z', 't', 'i', 'j', 'n', '_'] }],

// overrides the Expo Universe config, as we feel there is a value in having to specifically mark floating
// promises as void
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"dependencies": {
"@strv/eslint-config-react": "^4.3.2",
"eslint-config-universe": "^10.0.0"
"eslint-config-universe": "^12.0.0"
},
"engines": {
"node": "^14 || >=16"
Expand Down

0 comments on commit e95b15e

Please sign in to comment.