complete-intro-to-react
complete-intro-to-react copied to clipboard
Warning "Unexpected unnamed function func-names" under '*new' ESLint rule
my eslint version is 4.4.1, it would give a warning like this:
when defining functions in such a way:
const funct = function () { .... }
http://eslint.org/docs/rules/func-names
I don't think this is a problem with ESLint You might want to change your function to
const funct = () => { .... }
A bit late but hopefully it helps someone else
i come across this question too
but how to bind this when you have to use functions like requiredIf of Vuelidate for example..
You can also switch off this eslint warning. You just need to write 'func-names': 'off' inside rules definition on your .eslintrc.js script.
@ daniloas80 Following your recommendation to use r 'func-names': 'off' in eslintrc.js solved the problem I was having in my code