Skip to content

Commit aa7df98

Browse files
author
Walker Leite
committed
fix(lint): fix lint errors
1 parent 8bcc688 commit aa7df98

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

meta.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
const fs = require('fs');
2-
const path = require('path');
3-
41
module.exports = {
52
prompts: {
63
name: {
@@ -20,7 +17,8 @@ module.exports = {
2017
},
2118
extended: {
2219
type: 'confirm',
23-
message: 'Add basic Login and Admin views with Vuex, Vue-router and Bootstrap-vue?',
20+
message: `Add basic Login and Admin views with Vuex,
21+
Vue-router and Bootstrap-vue?`,
2422
},
2523
},
2624
filters: {

test.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const initNoExtQuestions = [
99
{search: /^\?.+/, response: '\n'},
1010
];
1111

12+
/* eslint-disable max-len */
1213
const commands = [
1314
{cmd: 'rm', args: ['-r', 'test-project'], ignoreErrors: true},
1415
{cmd: './node_modules/.bin/vue', args: ['init', '.', 'test-project'], responses: initQuestions},
@@ -25,6 +26,7 @@ const commands = [
2526
{cmd: 'npm', args: ['run', 'test:client'], cwd: 'test-project'},
2627
{cmd: 'npm', args: ['run', 'build'], cwd: 'test-project'},
2728
];
29+
/* eslint-enable max-len */
2830

2931
function executeCommand(command, index) {
3032
return new Promise((resolve, reject) => {
@@ -80,8 +82,12 @@ function executeCommand(command, index) {
8082
});
8183
}
8284

83-
commands.reduce((prev, next, index) => prev.then(() => executeCommand(next, index)
84-
.catch((code) => {
85-
console.log('child process exit with', code);
86-
if (!next.ignoreErrors) process.exit(code);
87-
})), Promise.resolve());
85+
commands.reduce(
86+
(prev, next, index) =>
87+
prev.then(() =>
88+
executeCommand(next, index).catch((code) => {
89+
console.log('child process exit with', code);
90+
if (!next.ignoreErrors) process.exit(code);
91+
})),
92+
Promise.resolve()
93+
);

0 commit comments

Comments
 (0)