Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions eslint-plugin-expensify/CONST.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const CONST = {
'Avoid calling a function directly in the useState initializer. Use an initializer function instead (a callback).',
NO_OBJECT_KEYS_INCLUDES: 'Avoid Object.keys({{object}}).includes({{key}}) for O(n) complexity. Use {{key}} in {{object}} or !!{{object}}[{{key}}] for O(1) complexity.',
PREFER_NARROW_HOOK_DEPENDENCIES: 'Dependency "{{dependency}}" is too broad. Use specific properties instead: {{properties}}',
NO_ITERATOR_INDEPENDENT_CALLS: 'Function call "{{call}}" does not depend on iterator "{{iterator}}". Consider hoisting it outside the {{method}}() callback to avoid redundant computation.',
},
};

Expand Down
Loading