feat: added ability to use the "extends" settings

This is done to be able to use shared configurations

docs: Added docs for the extends feature

fix: syntax error, due to rebase
This commit is contained in:
Filip Arenbo 2020-03-12 20:48:21 +01:00
parent 62fd14bc6c
commit 32db8a49b2
7 changed files with 71 additions and 31 deletions

View file

@ -59,3 +59,17 @@ exports.handleDryRunOption = () => {
return {};
}
};
/**
* Handle Extends Option
* @returns {{}|{extends: Array}|{extends: String}}
*/
exports.handleExtends = () => {
const extend = core.getInput(inputs.extends);
if (extend) {
return { extends: extend };
} else {
return {};
}
};