node_modules/lit-analyzer/lib/index.cjs.js
/**
 * Parses a partial user configuration and returns a full options object with defaults.
 * @param userOptions
 */
Parses a partial user configuration and returns a full options object with defaults.
@param userOptions
Parses a partial user configuration and returns a full options object with defaults . @param userOptions
function makeConfig(userOptions) {
    if (userOptions === void 0) { userOptions = {}; }
    var securitySystem = userOptions.securitySystem || "off";
    switch (securitySystem) {
        case "off":
        case "ClosureSafeTypes":
            break; 
        default:
            securitySystem = "off";
    }
    return {
        strict: userOptions.strict || false,
        rules: makeRules(userOptions),
        securitySystem: userOptions.securitySystem || "off",
        disable: userOptions.disable || false,
        logging: userOptions.logging || "off",
        cwd: userOptions.cwd || process.cwd(),
        format: {
            disable: userOptions.format != null ? userOptions.format.disable :  false 
        },
        dontSuggestConfigChanges: userOptions.dontSuggestConfigChanges || false,
        dontShowSuggestions: userOptions.dontShowSuggestions || getDeprecatedOption(userOptions, "skipSuggestions") || false,
        htmlTemplateTags: userOptions.htmlTemplateTags || ["html", "raw"],
        cssTemplateTags: userOptions.cssTemplateTags || ["css"],
        globalTags: userOptions.globalTags || getDeprecatedOption(userOptions, "externalHtmlTagNames") || [],
        globalAttributes: userOptions.globalAttributes || [],
        globalEvents: userOptions.globalEvents || [],
        customHtmlData: userOptions.customHtmlData || []
    };
}
function makeConfig ( userOptions ) { if ( userOptions === void 0 ) { userOptions = { } ; } var securitySystem = userOptions . securitySystem || "off" ; switch ( securitySystem ) { case "off" : case "ClosureSafeTypes" : break ; default : securitySystem = "off" ; } return { strict : userOptions . strict || false , rules : makeRules ( userOptions ) , securitySystem : userOptions . securitySystem || "off" , disable : userOptions . disable || false , logging : userOptions . logging || "off" , cwd : userOptions . cwd || process . cwd ( ) , format : { disable : userOptions . format != null ? userOptions . format . disable : false } , dontSuggestConfigChanges : userOptions . dontSuggestConfigChanges || false , dontShowSuggestions : userOptions . dontShowSuggestions || getDeprecatedOption ( userOptions , "skipSuggestions" ) || false , htmlTemplateTags : userOptions . htmlTemplateTags || [ "html" , "raw" ] , cssTemplateTags : userOptions . cssTemplateTags || [ "css" ] , globalTags : userOptions . globalTags || getDeprecatedOption ( userOptions , "externalHtmlTagNames" ) || [ ] , globalAttributes : userOptions . globalAttributes || [ ] , globalEvents : userOptions . globalEvents || [ ] , customHtmlData : userOptions . customHtmlData || [ ] } ; }
Parses a partial user configuration and returns a full options object with defaults.
Parses a partial user configuration and returns a full options object with defaults .
// legal values // Unknown values get converted to "off". // always disable formating for now // Template tags // Global additions