Skip to content

Commit

Permalink
fix(lint): fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Walker Leite committed Feb 28, 2018
1 parent b7d673a commit 348f1ad
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
3 changes: 2 additions & 1 deletion template/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
}
],
"import/extensions": "off",
"no-param-reassign": "off"
"no-param-reassign": "off",
"one-var-declaration-per-line": "off"
},
"globals": {
"expect": true,
Expand Down
3 changes: 2 additions & 1 deletion template/gulp-tasks/build.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable arrow-body-style */
import gulp from 'gulp';
import sourcemaps from 'gulp-sourcemaps';
import babel from 'gulp-babel';
Expand Down Expand Up @@ -71,7 +72,7 @@ gulp.task('build:common', () => {
.pipe(babel())
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(dirs.buildCommon));
})
});

gulp.task('build:server', ['copy:server'], () => gulp.src([
path.resolve(dirs.srcServer, '**/*.js'),
Expand Down
2 changes: 1 addition & 1 deletion template/gulp-tasks/compilers.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function replaceCuringas(content) {
}

export function customSass(content, callback, compiler, filePath) {
let myContent = content
let myContent = content;
const relativePath = path.relative(
path.dirname(filePath),
path.resolve(dirs.srcClient, 'style/global.scss')
Expand Down
9 changes: 5 additions & 4 deletions template/gulp-tasks/copy.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable arrow-body-style */
import gulp from 'gulp';
import path from 'path';
import {dirs} from './config';
Expand All @@ -6,20 +7,20 @@ gulp.task('copy:client:fa', () => {
return gulp
.src(path.resolve(dirs.modules, 'font-awesome/fonts/*'))
.pipe(gulp.dest(path.resolve(dirs.buildClient, 'static/fonts')));
})
});

gulp.task('copy:client', ['copy:client:fa'], () => {
return gulp
.src(`${dirs.srcClient}/**/!(*.vue|*.js)`)
.pipe(gulp.dest(path.resolve(dirs.buildClient)));
})
});

gulp.task('copy:package', () => {
return gulp.src(`${dirs.root}/package.json`)
.pipe(gulp.dest(path.resolve(dirs.build)));
})
});

gulp.task('copy:server', () => {
return gulp.src(`${dirs.srcServer}/**/*.json`)
.pipe(gulp.dest(path.resolve(dirs.buildServer)));
})
});
8 changes: 4 additions & 4 deletions template/gulp-tasks/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ gulp.task(
'test:server',
() =>
gulp.src(path.resolve(dirs.testServer, '**/*.spec.js'))
.pipe(mocha({
compilers: 'js:babel-core/register',
require: path.resolve(dirs.test, 'mocha.conf.js'),
}))
.pipe(mocha({
compilers: 'js:babel-core/register',
require: path.resolve(dirs.test, 'mocha.conf.js'),
}))
);

gulp.task('test:client', (done) => {
Expand Down

0 comments on commit 348f1ad

Please sign in to comment.