Is there an eslint rule that forbids the use of the name
property of a function?
When you minify code it typically mangles a function's name. So in development, myFunc.name
will be 'myFunc'
, but in production it will be something like 'a'
. This is a development footgun and I would like to prevent this.
eslint-plugin-ban only applies to call expressions, but I want something that applies to accessing the property (MemberExpression).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…