1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 06:00:06 +02:00

style: line disable some eslint rules

This commit is contained in:
Sérgio Ramos 2017-05-31 21:04:40 +01:00
parent e44471c1f1
commit a65f20ea45

View File

@ -152,6 +152,7 @@ const tasks = [
"--format=\"title:'%s' hash:'%h'\"" "--format=\"title:'%s' hash:'%h'\""
]); ]);
// eslint-disable-next-line no-unused-vars
const [_, title, hash] = lastCommit.match( const [_, title, hash] = lastCommit.match(
/title:'(.*?) hash:'(.*?)'/ /title:'(.*?) hash:'(.*?)'/
); );
@ -246,7 +247,9 @@ const tasks = [
const meta = line.match(/(.*?)\s*?refs\/tags\/(.*?)@(.*)/); const meta = line.match(/(.*?)\s*?refs\/tags\/(.*?)@(.*)/);
const hashname = line.match(/(.*?)\s*?refs\/tags\/(.*)/); const hashname = line.match(/(.*?)\s*?refs\/tags\/(.*)/);
// eslint-disable-next-line no-unused-vars
const [_, __, pkg, version] = meta || []; const [_, __, pkg, version] = meta || [];
// eslint-disable-next-line no-unused-vars
const [___, hash, name] = hashname || []; const [___, hash, name] = hashname || [];
return { return {
@ -465,6 +468,7 @@ const run = (tasks = [], ctx = {}, prefix = '') =>
return Object.assign({}, context, isPlainObject(nCtx) ? nCtx : {}); return Object.assign({}, context, isPlainObject(nCtx) ? nCtx : {});
}, },
// eslint-disable-next-line handle-callback-err
ctx ctx
); );