<commit_before>
module.exports = {
    extends: [ 'mfiles' ],

    env: {
        browser: true,
        jquery: true
    }
}
<commit_msg>Made eslintrc easier to configure<commit_after>
module.exports = {
    extends: [ 'mfiles' ],

    env: {
        browser: true,
        jquery: true
    },
    
    rules: {
        
        // "new-cap" rule enforces new-operator when calling Capitalized functions.
        // Uncomment the following line when using M-Files COM interfaces from JS.
        // These interfaces use Capital functions for normal functions.
        // "new-cap": 0,
        
        // "no-mixed-html" rule checks for various XSS issues.
        // The rule is specified here so it's easy to change the parameter naming rules,
        // etc. without having to change the shared M-Files config.
        "xss/no-mixed-html": [ "error", {
            "htmlVariableRules": [ "AsHtml$", "HtmlEncoded$", "^html(A-Z|$)", "innerHTML" ],
            "htmlFunctionRules": [ "\.asHtml", "HtmlEncoded$", "Html$" ],
            "functions": {

                // jQuery
                "$": { "htmlInput": true, "safe": [ "document", "this" ] },
                ".html": { "htmlInput": true, "htmlOutput": true },

                // Passthrough
                ".join": { "passthrough": { "obj": true, "args": true } },

                // Encoding functions
                "he.encode": { "htmlOutput": true },
                "utilities.encodehtml": { "htmlOutput": true },
                "utilities.encodecss": { "htmlOutput": true },
                "Number": { "htmlOutput": true }
            }
        } ]
    }
}

{'fraction_non_alphanumeric': 0.1459227467811159, 'fraction_numerical': 0.0006131207847946045, 'mean_word_length': 1.72, 'pattern_counts': {'":': 23, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5385824', 'n_tokens_mistral': 480, 'n_tokens_neox': 454, 'n_words': 126}