disallow rest/spread properties (es/no-rest-spread-properties)

This rule reports ES2018 rest/spread properties as errors.

Examples

⛔ Examples of incorrect code for this rule:

/*eslint es/no-rest-spread-properties: error */ let obj = {...obj0} let {a, ...rest} = obj ;({a, ...rest} = obj) function f({a, ...rest}) {}
Now loading...

📚 References

Last Updated: 8/27/2019, 11:29:02 AM