Skip to content

Commit b550d32

Browse files
author
Walker Leite
committed
fix(lint): fix lint errors
1 parent 97a2062 commit b550d32

File tree

18 files changed

+48
-30
lines changed

18 files changed

+48
-30
lines changed

template/.eslintrc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,17 @@
1515
"vue"
1616
],
1717
"rules": {
18-
"import/no-unresolved": "off"
18+
"import/no-unresolved": "off",
19+
"import/no-extraneous-dependencies": [
20+
"error",
21+
{
22+
"devDependencies": [
23+
"test/**/*.js",
24+
"test/**/*.js",
25+
"gulp-tasks/**/*.js"
26+
]
27+
}
28+
]
1929
},
2030
"globals": {
2131
"expect": true,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import loopback from '@/services/loopback';
2-
import router from '@/router.js';
2+
import router from '@/router';
33

44
/**
55
* Sync loopback token with current state

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as actions from './actions.js';
2-
import * as mutations from './mutations.js';
1+
import * as actions from './actions';
2+
import * as mutations from './mutations';
33

44
export default {
55
namespaced: true,

template/gulp-tasks/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import babelify from 'babelify';
88
import modulesify from 'css-modulesify';
99
import source from 'vinyl-source-stream';
1010
import buffer from 'vinyl-buffer';
11-
import {dirs} from './config.js';
12-
import {customSass} from './compilers.js';
11+
import {dirs} from './config';
12+
import {customSass} from './compilers';
1313

1414
gulp.task('build:test', () => gulp.src([
1515
path.resolve(dirs.test, '**/*.test.js'),

template/gulp-tasks/compilers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from 'path';
22
import sass from 'vueify/lib/compilers/sass';
3-
import {dirs} from './config.js';
3+
import {dirs} from './config';
44

55
function replaceCuringas(content) {
66
// FIXME: Not working

template/gulp-tasks/copy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import gulp from 'gulp';
22
import path from 'path';
3-
import {dirs} from './config.js';
3+
import {dirs} from './config';
44

55
gulp.task('copy:client:fa', () => gulp.src(path.resolve(dirs.modules, 'font-awesome/fonts/*'))
66
.pipe(gulp.dest(path.resolve(dirs.buildClient, 'static/fonts'))));

template/gulp-tasks/serve.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import gulp from 'gulp';
22
import gutil from 'gulp-util';
33
import connect from 'gulp-connect';
44
import historyApiFallback from 'connect-history-api-fallback';
5-
import {dirs} from './config.js';
6-
import server from '../server/server.js';
5+
import {dirs} from './config';
6+
import server from '../server/server';
77

88
gulp.task('reload:server', ['build:server'], () => {
99
gutil.log('Reloading server');

template/gulp-tasks/tasks.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// This file just export the entire contents of this directory
2-
export * from './serve.js';
3-
export * from './default.js';
4-
export * from './build.js';
5-
export * from './test.js';
6-
export * from './copy.js';
1+
// This file just import the entire contents of this directory
2+
import './serve';
3+
import './default';
4+
import './build';
5+
import './test';
6+
import './copy';

template/gulp-tasks/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import gulp from 'gulp';
22
import mocha from 'gulp-mocha';
33
import {Server} from 'karma';
44
import path from 'path';
5-
import {dirs} from './config.js';
5+
import {dirs} from './config';
66

77
gulp.task('test:server', () => gulp.src(path.resolve(dirs.testServer, '**/*.spec.js'))
88
.pipe(mocha({

template/gulpfile.babel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// Search for gulp tasks in gulp-tasks directory
2-
import './gulp-tasks/tasks.js';
2+
import './gulp-tasks/tasks';

0 commit comments

Comments
 (0)