Skip to content

Commit

Permalink
Use at() instead of direct access
Browse files Browse the repository at this point in the history
  • Loading branch information
ShridharGoel committed Jul 31, 2024
1 parent e21cf0f commit b86841c
Show file tree
Hide file tree
Showing 4 changed files with 2,130 additions and 3,449 deletions.
1 change: 1 addition & 0 deletions eslint-plugin-expensify/CONST.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ module.exports = {
NO_ACC_SPREAD_IN_REDUCE: 'Avoid a use of spread (`...`) operator on accumulators in reduce callback. Mutate them directly instead.',
PREFER_TYPE_FEST_TUPLE_TO_UNION: 'Prefer using `TupleToUnion` from `type-fest` for converting tuple types to union types.',
PREFER_TYPE_FEST_VALUE_OF: 'Prefer using `ValueOf` from `type-fest` to extract the type of the properties of an object.',
PREFER_AT: 'Prefer using the `.at()` method for array element access.',
},
};
Loading

0 comments on commit b86841c

Please sign in to comment.