{
    "extends": "eslint-config-edx",
    "globals": {
        "gettext": true, // added by django for i18n
        "setFixtures": true,  // added globally by jasmine-jquery
        "sinon": true, // used for mocking
        "requirejs": true
    },
    "settings": {
        "import/resolver": {
            "node": {
                "extensions": [".js", ".json"],
                "moduleDirectory": ["node_modules", "analytics_dashboard/static",
                                    "analytics_dashboard/static/js"]
            }
        },
        "import/core-modules": ["jquery", "underscore", "backbone", "backbone.paginator", "backbone.wreqr",
                                "backbone.babysitter", "backgrid", "backgrid-filter", "backgrid-paginator", "bootstrap",
                                "bootstrap_accessibility", "models", "collections", "views", "utils", "load",
                                "datatables", "dataTablesBootstrap", "naturalSort", "d3", "nvd3", "topojson",
                                "datamaps", "moment", "text", "json", "cldr", "cldr-data", "globalize", "globalization",
                                "marionette", "uitk", "URI", "IPv6", "punycode", "SecondLevelDomains", "learners",
                                "axe-core", "sinon", "nprogress",
                                "vendor/domReady!", "globalize/number", "boot",
                                "uitk/disclosure/disclosure-view",
                                "json!cldr-data/supplemental/likelySubtags.json",
                                "json!cldr-data/supplemental/numberingSystems.json"]
    },
    "rules": {
        "import/no-unresolved": ["error", {"amd": true}],
        "global-require" : "off"
        // global-require turned off due to https://github.com/eslint/eslint/issues/4812. Fixed in v3.1.1
        // consider turning rule on after upgrading to ESLint 3.1.1
    }
}
