فهرست منبع

Shut eslint up

JC Brand 8 سال پیش
والد
کامیت
84a21415f0
2فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 2 1
      .eslintrc.json
  2. 1 0
      src/config.js

+ 2 - 1
.eslintrc.json

@@ -8,7 +8,8 @@
     "globals": {
         "window": true,
         "sinon": true,
-        "define": true
+        "define": true,
+        "require": true
     },
     "rules": {
         "lodash/prefer-lodash-method": [2, {

+ 1 - 0
src/config.js

@@ -4,6 +4,7 @@ if (typeof(require) === 'undefined') {
      * We want to save the configuration in a variable so that we can reuse it in
      * tests/main.js.
      */
+    // eslint-disable-next-line
     require = { // jshint ignore:line
         config: function (c) {
             config = c;