Passed
Push — trunk ( e29f9e...dee8bf )
by Christian
12:14 queued 12s
created

  A

Complexity

Conditions 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
/**
2
 * @package admin
3
 */
4
5
import { mapState, mapMutations, mapGetters, mapActions } from 'vuex';
6
import * as mapErrors from 'src/app/service/map-errors.service';
7
8
const componentHelper = {
9
    mapState,
10
    mapMutations,
11
    mapGetters,
12
    mapActions,
13
    ...mapErrors,
14
};
15
16
// Register each component helper
17
Object.entries(componentHelper).forEach(([name, value]) => {
18
    Shopware.Component.registerComponentHelper(name, value);
19
});
20
21
// eslint-disable-next-line sw-deprecation-rules/private-feature-declarations
22
export default function initializeComponentHelper() {
23
    return Shopware.Component.getComponentHelper();
24
}
25