1.0.0 • Published 5 years ago
eslint-plugin-function-expression v1.0.0
Rules:
array-iteratee-param-nameValidates length of iteratee function's params' names in array methods// Iteratee param(s) name too short (at 1:15) [1, 2, 3].map(i => i * 10) // ---------------^function-param-name(unstable) Alikearray-iteratee-param-namebut validates length of params' names in any function expression, e.g.- Function expression
function(arg1, ...args) {} - Function declaration
const f = function(arg1, ...args) {}; - Arrow function expression
const f = (arg1, ...args) => {}; - Class method
class A { method(arg1, ...args) {} } - Class property with arrow function expression
class A { prop = (arg1, ...args) => {}; }
- Function expression
1.0.0
5 years ago