eslint-plugin-array-func
eslint-plugin-array-func copied to clipboard
Disallow certain operations on literals
-
indexOf
/lastIndexOf
with a literal param -
slice
/splice
with literal params -
map
,filter
,sort
andreduce
without references to something in the outer scope or some global like Date.now() -
pop
andshift