Eslint Func Names Unexpected Unnamed Function

August 21, 2018

The following will complaint of func-names: https://eslint.org/docs/rules/func-names using airbnb config.

const util = {}

util.loadScript = function (src) {

}

Change to

util.loadScript = (src) => {

}
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.