소스 검색

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;