Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
rules: {}
}
};
if (options === undefined) {
throw new Error(PluginName + ': options are not defined');
}
if (options.src === undefined) {
throw new Error(PluginName + ': options.src is not defined');
} else {
opts.src = options.src
}
// assign rules
Object.assign(opts.lintConfig.rules, defaultConfig.rules, ourRules, options.rules);
return opts;
}