cattr-app/frontend-application

View on GitHub
app/core/store/modules/user.js

Summary

Maintainability
A
0 mins
Test Coverage

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import ApiService from '@/services/api';
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import ApiService from '@/services/api';
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import ApiService from '@/services/api';
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import ApiService from '@/services/api';
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import ApiService from '@/services/api';
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import ApiService from '@/services/api';
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import ApiService from '@/services/api';
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import ApiService from '@/services/api';
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import ApiService from '@/services/api';
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import ApiService from '@/services/api';
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import ApiService from '@/services/api';
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import ApiService from '@/services/api';
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import ApiService from '@/services/api';
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import ApiService from '@/services/api';
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import ApiService from '@/services/api';
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ···· with ··
Open

    },
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    setLoggedInStatus(s, status) {
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ············ctx.commit('lastLogoutReason',·localStorage.getItem('lastLogoutReason' with ······ctx.commit("lastLogoutReason",·localStorage.getItem("lastLogoutReason"
Open

            ctx.commit('lastLogoutReason', localStorage.getItem('lastLogoutReason'));
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········ with ····
Open

        sessionStorage.clear();
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ···· with ··
Open

    user: {
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ····
Open

        s.user.data = userData;
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ···· with ··
Open

    mutations,
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace '@/services/api' with "@/services/api"
Open

import ApiService from '@/services/api';
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    },
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········if·(localStorage.getItem('access_token' with ····if·(localStorage.getItem("access_token"
Open

        if (localStorage.getItem('access_token')) {
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········if·(localStorage.getItem('lastLogoutReason' with ····if·(localStorage.getItem("lastLogoutReason"
Open

        if (localStorage.getItem('lastLogoutReason')) {
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    },
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    setLoggedInStatus({ commit }, status) {
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    },
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········ with ····
Open

        if (reason) {
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ····
Open

        location.reload();
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ···· with ··
Open

    api: null,
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ····
Open

        loggedIn: false,
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ···· with ··
Open

    loggedIn: s => s.user.loggedIn,
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········ with ····
Open

        s.lastLogoutReason = reason;
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ···· with ··
Open

    },
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········ with ····
Open

        localStorage.clear();
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········ with ····
Open

        }
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import ApiService from '@/services/api';
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    companyData: s => s.user.companyData,
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ···· with ··
Open

    },
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    setUser({ commit }, user) {
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import ApiService from '@/services/api';
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ···· with ··
Open

    user: s => s.user.data,
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    token: s => s.user.token,
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········ with ····
Open

        s.user.companyData = companyData;
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ··}, with }
Open

    },
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········ with ····
Open

        }
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ············localStorage.removeItem('lastLogoutReason' with ······localStorage.removeItem("lastLogoutReason"
Open

            localStorage.removeItem('lastLogoutReason');
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ····commit('setUserToken' with commit("setUserToken"
Open

        commit('setUserToken', token);
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ····commit('setLoggedInStatus' with commit("setLoggedInStatus"
Open

        commit('setLoggedInStatus', status);
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ····commit('setCompanyData' with commit("setCompanyData"
Open

        commit('setCompanyData', data);
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    forceUserExit({ commit }, reason = null) {
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········companyData:·{}, with ····companyData:·{}
Open

        companyData: {},
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ····
Open

        s.api = serviceObject;
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    setCompanyData(s, companyData) {
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ···· with ··
Open

    init(ctx) {
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ···· with ··
Open

    state,
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ··}, with }
Open

    },
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ··lastLogoutReason:·s·=>·s.lastLogoutReason, with lastLogoutReason:·s·=>·s.lastLogoutReason
Open

    lastLogoutReason: s => s.lastLogoutReason,
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ···· with ··
Open

    setService(s, serviceObject) {
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ··}, with }
Open

    },
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ··actions, with actions
Open

    actions,
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Definition for rule 'vue/attributes-order' was not found
Open

import ApiService from '@/services/api';
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ····
Open

        data: {},
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········ with ····
Open

        s.user.loggedIn = status;
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ···· with ··
Open

    lastLogoutReason(s, reason) {
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ············ctx.commit('setUserToken',·localStorage.getItem('access_token' with ······ctx.commit("setUserToken",·localStorage.getItem("access_token"
Open

            ctx.commit('setUserToken', localStorage.getItem('access_token'));
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ············ctx.commit('setLoggedInStatus' with ······ctx.commit("setLoggedInStatus"
Open

            ctx.commit('setLoggedInStatus', true);
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········commit('setUserData' with ····commit("setUserData"
Open

        commit('setUserData', user);
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········sessionStorage.setItem('logout',·'true' with ····sessionStorage.setItem("logout",·"true"
Open

        sessionStorage.setItem('logout', 'true');
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import ApiService from '@/services/api';
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import ApiService from '@/services/api';
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········ with ····
Open

        }
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    apiService: s => s.api,
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    },
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    setUserData(s, userData) {
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    setUserToken(s, token) {
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········ with ····
Open

        s.user.token = token;
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ····
Open

        token: null,
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    },
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········ctx.commit('setService' with ····ctx.commit("setService"
Open

        ctx.commit('setService', new ApiService(ctx));
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    setCompanyData: ({ commit }, data) => {
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ············sessionStorage.setItem('lastLogoutReason' with ······sessionStorage.setItem("lastLogoutReason"
Open

            sessionStorage.setItem('lastLogoutReason', reason);
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    lastLogoutReason: null,
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ···· with ··
Open

    },
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    setToken({ commit }, token) {
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    },
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    getters,
Severity: Minor
Found in app/core/store/modules/user.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

There are no issues that match your filters.

Category
Status