mirror of
https://github.com/yldio/copilot.git
synced 2024-12-01 07:30:07 +02:00
style: line disable some eslint rules
This commit is contained in:
parent
e44471c1f1
commit
a65f20ea45
@ -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
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user