Closed Guria closed 4 years ago
const routes = {
RELOAD: { thunk: () => window.location.reload() },
}
This also violates global
option with above config, even though property
option is allowed
That's working as intended: those are both "global"-scope arrow functions, which is to say they derive their "lexical this
" binding from that global scope.
Ok, thank you for your feedback
Given code
with config
causes violation reported:
Arrow function not allowed in global/top-level-module scopeeslint(@getify/proper-arrows/where)