Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getRulePolicyFromSettings(settings: Settings, ruleId: string): RulePolicy {
return (settings['eslint.rules'] && settings['eslint.rules'][ruleId]) || RulePolicy.Default
}