Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return context.options.reduce(function(result, nodeType) {
result[nodeType] = warn;
return result;
}, {});
};
module.exports.schema = {
"type": "array",
"items": [
{
"enum": [0, 1, 2]
},
{
"enum": Object.keys(nodeTypes).map(function(k) {
return nodeTypes[k];
})
}
],
"uniqueItems": true,
"minItems": 1
};