{ "extends": "@edx/eslint-config", "globals": { // Try to avoid adding any new globals. // Old compatibility things and hacks "edx": true, "XBlock": true, // added by Django i18n tools "gettext": true, "ngettext": true, // added by jasmine-jquery "loadFixtures": true, "appendLoadFixtures": true, "readFixtures": true, "setFixtures": true, "appendSetFixtures": true, "spyOnEvent": true, // used by our requirejs implementation "RequireJS": true, // enable jquery "$": true }, "rules": { "func-names": "off", "indent": ["error", 4], "react/jsx-indent": ["error", 4], "react/jsx-indent-props": ["error", 4], "new-cap": "off", "no-else-return": "off", "no-shadow": "error", "object-curly-spacing": ["error", "never"], "one-var": "off", "one-var-declaration-per-line": ["error", "initializations"], "space-before-function-paren": ["error", "never"], "strict": "off", // Temporary Rules (Will be removed one-by-one to minimize file changes) "block-scoped-var": "off", "camelcase": "off", "comma-dangle": "off", "consistent-return": "off", "eqeqeq": "off", "function-call-argument-newline": "off", "function-paren-newline": "off", "import/extensions": "off", "import/no-amd": "off", "import/no-dynamic-require": "off", "import/no-unresolved": "off", "max-len": "off", "no-console": "off", "no-lonely-if": "off", "no-param-reassign": "off", "no-proto": "off", "no-prototype-builtins": "off", "no-redeclare": "off", "no-restricted-globals": "off", "no-restricted-syntax": "off", "no-throw-literal": "off", "no-undef": "off", "no-underscore-dangle": "off", "no-unused-vars": "off", "no-use-before-define": "off", "no-useless-escape": "off", "no-var": "off", "object-shorthand": "off", "prefer-arrow-callback": "off", "prefer-destructuring": "off", "prefer-rest-params": "off", "prefer-template": "off", "radix": "off", "react/prop-types": "off", "vars-on-top": "off" } }