Vue warning for data function while running karma
This warning is visible when we run yarn karma
:
'[Vue warn]: data functions should return an object:
https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function
(found in <Root>)'
Also, according to our own documentation data must be a function and always return an object: https://docs.gitlab.com/ce/development/fe_guide/style_guide_js.html#data