disallow block-scoped function declarations (es/no-block-scoped-functions)

This rule reports ES2015 block-scoped function declarations as errors.

Examples

⛔ Examples of incorrect code for this rule:

/*eslint es/no-block-scoped-functions: error */ if (a) { function f() {} } else { function g() {} }
Now loading...

📚 References

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