Previous eslint versions had a typescript related bug that type-only imports were always treated as unused, so an update was needed. New version comes with new ruleset, so the config also had to be adjusted accordingly and newly detected inconsistencies fixed.
One thing that might need some explanation is a change in vuex module definition. The storeModule method is used in order to make use of typescript's stronger type inference on function arguments, and also allows to conviniently supply the right root store type implicitly.
Previous eslint versions had a typescript related bug that type-only imports were always treated as unused, so an update was needed. New version comes with new ruleset, so the config also had to be adjusted accordingly and newly detected inconsistencies fixed.
One thing that might need some explanation is a change in vuex module definition. The
storeModule
method is used in order to make use of typescript's stronger type inference on function arguments, and also allows to conviniently supply the right root store type implicitly.