disallow destructuring (es/no-destructuring)

This rule reports ES2015 destructuring assignments/bindings as errors.

Examples

⛔ Examples of incorrect code for this rule:

/*eslint es/no-destructuring: error */ let [a, b] = array let {c, d} = obj function f({a, b}, [c, d]) {} ;[a, b] = array ;({c, d} = obj)
Now loading...

📚 References

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