Skip to content

Commit 348f1ad

Browse files
author
Walker Leite
committed
fix(lint): fix lint errors
1 parent b7d673a commit 348f1ad

File tree

5 files changed

+14
-11
lines changed

5 files changed

+14
-11
lines changed

template/.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
}
2828
],
2929
"import/extensions": "off",
30-
"no-param-reassign": "off"
30+
"no-param-reassign": "off",
31+
"one-var-declaration-per-line": "off"
3132
},
3233
"globals": {
3334
"expect": true,

template/gulp-tasks/build.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable arrow-body-style */
12
import gulp from 'gulp';
23
import sourcemaps from 'gulp-sourcemaps';
34
import babel from 'gulp-babel';
@@ -71,7 +72,7 @@ gulp.task('build:common', () => {
7172
.pipe(babel())
7273
.pipe(sourcemaps.write('.'))
7374
.pipe(gulp.dest(dirs.buildCommon));
74-
})
75+
});
7576

7677
gulp.task('build:server', ['copy:server'], () => gulp.src([
7778
path.resolve(dirs.srcServer, '**/*.js'),

template/gulp-tasks/compilers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function replaceCuringas(content) {
1313
}
1414

1515
export function customSass(content, callback, compiler, filePath) {
16-
let myContent = content
16+
let myContent = content;
1717
const relativePath = path.relative(
1818
path.dirname(filePath),
1919
path.resolve(dirs.srcClient, 'style/global.scss')

template/gulp-tasks/copy.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable arrow-body-style */
12
import gulp from 'gulp';
23
import path from 'path';
34
import {dirs} from './config';
@@ -6,20 +7,20 @@ gulp.task('copy:client:fa', () => {
67
return gulp
78
.src(path.resolve(dirs.modules, 'font-awesome/fonts/*'))
89
.pipe(gulp.dest(path.resolve(dirs.buildClient, 'static/fonts')));
9-
})
10+
});
1011

1112
gulp.task('copy:client', ['copy:client:fa'], () => {
1213
return gulp
1314
.src(`${dirs.srcClient}/**/!(*.vue|*.js)`)
1415
.pipe(gulp.dest(path.resolve(dirs.buildClient)));
15-
})
16+
});
1617

1718
gulp.task('copy:package', () => {
1819
return gulp.src(`${dirs.root}/package.json`)
1920
.pipe(gulp.dest(path.resolve(dirs.build)));
20-
})
21+
});
2122

2223
gulp.task('copy:server', () => {
2324
return gulp.src(`${dirs.srcServer}/**/*.json`)
2425
.pipe(gulp.dest(path.resolve(dirs.buildServer)));
25-
})
26+
});

template/gulp-tasks/test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ gulp.task(
88
'test:server',
99
() =>
1010
gulp.src(path.resolve(dirs.testServer, '**/*.spec.js'))
11-
.pipe(mocha({
12-
compilers: 'js:babel-core/register',
13-
require: path.resolve(dirs.test, 'mocha.conf.js'),
14-
}))
11+
.pipe(mocha({
12+
compilers: 'js:babel-core/register',
13+
require: path.resolve(dirs.test, 'mocha.conf.js'),
14+
}))
1515
);
1616

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

0 commit comments

Comments
 (0)