forked from openedx/edx-ora2
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
29 lines (25 loc) · 1.06 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const { createConfig } = require('@edx/frontend-build');
const config = createConfig('eslint');
// These rule overrides should be removed at a later date, and the associated code fixed.
config.rules["import/no-named-as-default"] = "off";
config.rules["no-underscore-dangle"] = "off";
config.rules["prefer-rest-params"] = "off";
config.rules["no-unused-vars"] = "off";
config.rules["no-param-reassign"] = "off";
config.rules["no-alert"] = "off";
config.rules["no-new"] = "off";
config.rules["func-names"] = "off";
config.rules["max-classes-per-file"] = "off";
config.rules["prefer-destructuring"] = "off";
config.rules["no-prototype-builtins"] = "off";
config.globals["gettext"] = "readonly";
config.globals["ngettext"] = "readonly";
config.globals["$"] = "readonly";
config.globals["MathJax"] = "readonly";
config.globals["_"] = "readonly";
config.globals["Logger"] = "readonly";
config.globals["XBlock"] = "readonly";
config.globals["Backbone"] = "readonly";
config.globals["Backgrid"] = "readonly";
config.globals["rewriteStaticLinks"] = "readonly";
module.exports = config;