Skip to content

Commit f589041

Browse files
author
Walker Leite
committed
fix(template): fix lint errors
1 parent 527e061 commit f589041

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

template/client/services/loopback.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { host, restApiRoot, port } from '~/server/config.json';
1+
import {host, restApiRoot, port} from '~/server/config.json';
22
import axios from 'axios';
33

44
const Storage = window.localStorage;

template/client/store/modules/auth/actions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import router from '@/router.js';
44
/**
55
* Sync loopback token with current state
66
*/
7-
export function syncToken({ commit, dispatch }) {
7+
export function syncToken({commit, dispatch}) {
88
if (loopback.token) {
99
commit('setAccessToken', loopback.token);
1010
dispatch('loadAccount', loopback.token.userId);
@@ -14,7 +14,7 @@ export function syncToken({ commit, dispatch }) {
1414
/**
1515
* Sync router for auth
1616
*/
17-
export function syncRouter({ state, dispatch }, router) {
17+
export function syncRouter({state, dispatch}, router) {
1818
dispatch('syncToken');
1919

2020
router.beforeEach((to, from, next) => {

template/client/store/modules/auth/mutations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export function setAccessToken(state, token) {
22
// eslint-disable-next-line camelcase
3-
state.access_token = token
3+
state.access_token = token;
44
}
55

66
export function setAccount(state, account) {

template/gulp-tasks/copy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ gulp.task('copy:client', ['copy:client:fa'], function() {
1212
.pipe(gulp.dest(path.resolve(dirs.buildClient)));
1313
});
1414

15-
gulp.task('copy:package', function () {
15+
gulp.task('copy:package', function() {
1616
return gulp.src(dirs.root + '/package.json')
1717
.pipe(gulp.dest(path.resolve(dirs.build)));
1818
});
1919

20-
gulp.task('copy:server', function () {
20+
gulp.task('copy:server', function() {
2121
return gulp.src(dirs.srcServer + '/**/*.json')
2222
.pipe(gulp.dest(path.resolve(dirs.buildServer)));
2323
});

0 commit comments

Comments
 (0)