ソースを参照

Merge pull request #2789 from overleaf/as-fix-no-undef

Enable no-undef linting rule for all frontend files and fix errors

GitOrigin-RevId: bf9c789a381af982bdece55a2f518a2b610c9202
Jessica Lawshe 6 年 前
コミット
30a2997b43
100 ファイル変更94 行追加174 行削除
  1. 3 1
      services/web/.eslintrc
  2. 0 1
      services/web/frontend/js/analytics/AbTestingManager.js
  3. 3 2
      services/web/frontend/js/base.js
  4. 0 1
      services/web/frontend/js/components/inputSuggestions.js
  5. 0 1
      services/web/frontend/js/directives/asyncForm.js
  6. 2 1
      services/web/frontend/js/directives/complexPassword.js
  7. 63 64
      services/web/frontend/js/directives/creditCards.js
  8. 0 1
      services/web/frontend/js/directives/equals.js
  9. 0 1
      services/web/frontend/js/directives/eventTracking.js
  10. 0 1
      services/web/frontend/js/directives/expandableTextArea.js
  11. 0 1
      services/web/frontend/js/directives/fineUpload.js
  12. 0 1
      services/web/frontend/js/directives/focus.js
  13. 0 1
      services/web/frontend/js/directives/maxHeight.js
  14. 0 1
      services/web/frontend/js/directives/onEnter.js
  15. 0 1
      services/web/frontend/js/directives/rightClick.js
  16. 0 1
      services/web/frontend/js/directives/scroll.js
  17. 0 1
      services/web/frontend/js/directives/selectAll.js
  18. 0 1
      services/web/frontend/js/directives/stopPropagation.js
  19. 0 1
      services/web/frontend/js/directives/videoPlayState.js
  20. 0 1
      services/web/frontend/js/filters/formatDate.js
  21. 0 1
      services/web/frontend/js/filters/wrapLongWords.js
  22. 0 1
      services/web/frontend/js/ide.js
  23. 0 1
      services/web/frontend/js/ide/SafariScrollPatcher.js
  24. 0 1
      services/web/frontend/js/ide/binary-files/BinaryFilesManager.js
  25. 0 1
      services/web/frontend/js/ide/chat/controllers/ChatButtonController.js
  26. 0 1
      services/web/frontend/js/ide/chat/controllers/ChatController.js
  27. 0 1
      services/web/frontend/js/ide/chat/controllers/ChatMessageController.js
  28. 0 1
      services/web/frontend/js/ide/chat/index.js
  29. 2 1
      services/web/frontend/js/ide/chat/services/chatMessages.js
  30. 0 1
      services/web/frontend/js/ide/clone/controllers/CloneProjectController.js
  31. 0 1
      services/web/frontend/js/ide/clone/controllers/CloneProjectModalController.js
  32. 0 1
      services/web/frontend/js/ide/clone/index.js
  33. 0 1
      services/web/frontend/js/ide/cobranding/CobrandingDataService.js
  34. 17 7
      services/web/frontend/js/ide/colors/ColorManager.js
  35. 0 1
      services/web/frontend/js/ide/directives/SafePath.js
  36. 0 1
      services/web/frontend/js/ide/directives/layout.js
  37. 0 1
      services/web/frontend/js/ide/directives/validFile.js
  38. 0 1
      services/web/frontend/js/ide/editor/Document.js
  39. 0 1
      services/web/frontend/js/ide/editor/EditorManager.js
  40. 0 1
      services/web/frontend/js/ide/editor/EditorShareJsCodec.js
  41. 1 2
      services/web/frontend/js/ide/editor/ShareJsDoc.js
  42. 0 1
      services/web/frontend/js/ide/editor/components/spellMenu.js
  43. 0 1
      services/web/frontend/js/ide/editor/controllers/SavingNotificationController.js
  44. 0 1
      services/web/frontend/js/ide/editor/directives/aceEditor/auto-complete/CommandManager.js
  45. 0 1
      services/web/frontend/js/ide/editor/directives/aceEditor/auto-complete/EnvironmentManager.js
  46. 0 1
      services/web/frontend/js/ide/editor/directives/aceEditor/auto-complete/Helpers.js
  47. 0 1
      services/web/frontend/js/ide/editor/directives/aceEditor/auto-complete/PackageManager.js
  48. 0 1
      services/web/frontend/js/ide/editor/directives/aceEditor/auto-complete/snippets/Environments.js
  49. 0 1
      services/web/frontend/js/ide/editor/directives/aceEditor/auto-complete/snippets/TopHundredSnippets.js
  50. 0 1
      services/web/frontend/js/ide/editor/directives/aceEditor/cursor-position/CursorPositionAdapter.js
  51. 0 1
      services/web/frontend/js/ide/editor/directives/aceEditor/cursor-position/CursorPositionManager.js
  52. 0 1
      services/web/frontend/js/ide/editor/directives/aceEditor/highlights/HighlightsManager.js
  53. 0 1
      services/web/frontend/js/ide/editor/directives/aceEditor/metadata/MetadataManager.js
  54. 0 1
      services/web/frontend/js/ide/editor/directives/aceEditor/spell-check/HighlightedWordManager.js
  55. 0 1
      services/web/frontend/js/ide/editor/directives/toggleSwitch.js
  56. 0 1
      services/web/frontend/js/ide/file-tree/FileTreeManager.js
  57. 1 2
      services/web/frontend/js/ide/file-tree/controllers/FileTreeController.js
  58. 0 1
      services/web/frontend/js/ide/file-tree/controllers/FileTreeEntityController.js
  59. 0 1
      services/web/frontend/js/ide/file-tree/controllers/FileTreeFolderController.js
  60. 0 1
      services/web/frontend/js/ide/file-tree/controllers/FileTreeRootFolderController.js
  61. 0 1
      services/web/frontend/js/ide/file-tree/directives/draggable.js
  62. 0 1
      services/web/frontend/js/ide/file-tree/directives/droppable.js
  63. 0 1
      services/web/frontend/js/ide/file-tree/directives/fileEntity.js
  64. 0 1
      services/web/frontend/js/ide/file-tree/util/iconTypeFromName.js
  65. 0 1
      services/web/frontend/js/ide/graphics/services/graphics.js
  66. 0 1
      services/web/frontend/js/ide/history/HistoryManager.js
  67. 2 3
      services/web/frontend/js/ide/history/HistoryV2Manager.js
  68. 0 1
      services/web/frontend/js/ide/history/components/historyEntriesList.js
  69. 0 1
      services/web/frontend/js/ide/history/components/historyEntry.js
  70. 0 1
      services/web/frontend/js/ide/history/components/historyFileEntity.js
  71. 0 1
      services/web/frontend/js/ide/history/components/historyFileTree.js
  72. 0 1
      services/web/frontend/js/ide/history/components/historyLabel.js
  73. 0 1
      services/web/frontend/js/ide/history/components/historyLabelsList.js
  74. 0 1
      services/web/frontend/js/ide/history/controllers/HistoryDiffController.js
  75. 0 1
      services/web/frontend/js/ide/history/controllers/HistoryListController.js
  76. 0 1
      services/web/frontend/js/ide/history/controllers/HistoryV2AddLabelModalController.js
  77. 0 1
      services/web/frontend/js/ide/history/controllers/HistoryV2DeleteLabelModalController.js
  78. 0 1
      services/web/frontend/js/ide/history/controllers/HistoryV2FileTreeController.js
  79. 0 1
      services/web/frontend/js/ide/history/controllers/HistoryV2ListController.js
  80. 0 1
      services/web/frontend/js/ide/history/controllers/HistoryV2ToolbarController.js
  81. 0 1
      services/web/frontend/js/ide/history/directives/infiniteScroll.js
  82. 0 1
      services/web/frontend/js/ide/history/util/HistoryViewModes.js
  83. 0 1
      services/web/frontend/js/ide/history/util/displayNameForUser.js
  84. 0 1
      services/web/frontend/js/ide/hotkeys/BackspaceHighjack.js
  85. 0 1
      services/web/frontend/js/ide/hotkeys/controllers/HotkeysController.js
  86. 0 1
      services/web/frontend/js/ide/hotkeys/index.js
  87. 0 1
      services/web/frontend/js/ide/human-readable-logs/HumanReadableLogs.js
  88. 0 1
      services/web/frontend/js/ide/human-readable-logs/HumanReadableLogsRules.js
  89. 0 1
      services/web/frontend/js/ide/metadata/MetadataManager.js
  90. 0 1
      services/web/frontend/js/ide/metadata/services/metadata.js
  91. 0 1
      services/web/frontend/js/ide/online-users/OnlineUsersManager.js
  92. 0 1
      services/web/frontend/js/ide/online-users/controllers/OnlineUsersController.js
  93. 0 1
      services/web/frontend/js/ide/pdf/PdfManager.js
  94. 0 1
      services/web/frontend/js/ide/pdf/controllers/PdfViewToggleController.js
  95. 0 1
      services/web/frontend/js/ide/pdfng/directives/pdfHighlights.js
  96. 0 1
      services/web/frontend/js/ide/pdfng/directives/pdfJs.js
  97. 0 1
      services/web/frontend/js/ide/pdfng/directives/pdfPage.js
  98. 0 1
      services/web/frontend/js/ide/pdfng/directives/pdfRenderer.js
  99. 0 1
      services/web/frontend/js/ide/pdfng/directives/pdfSpinner.js
  100. 0 1
      services/web/frontend/js/ide/pdfng/directives/pdfTextLayer.js

+ 3 - 1
services/web/.eslintrc

@@ -103,10 +103,12 @@
         "_": true,
         "_": true,
         "ace": true,
         "ace": true,
         "ga": true,
         "ga": true,
+        "Raven": true, // Backwards compat for Sentry reporting
         "sl_console": true,
         "sl_console": true,
         "sl_debugging": true,
         "sl_debugging": true,
         // Injected in layout.pug
         // Injected in layout.pug
-        "user_id": true
+        "user_id": true,
+        "ExposedSettings": true
       }
       }
     }
     }
   ]
   ]

+ 0 - 1
services/web/frontend/js/analytics/AbTestingManager.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     camelcase,
     camelcase,
     max-len,
     max-len,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

+ 3 - 2
services/web/frontend/js/base.js

@@ -1,7 +1,8 @@
+/* global MathJax */
+
 /* eslint-disable
 /* eslint-disable
     camelcase,
     camelcase,
     max-len,
     max-len,
-    no-undef,
     no-useless-escape,
     no-useless-escape,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
@@ -17,7 +18,7 @@
 
 
 // Configure dynamically loaded assets (via webpack) to be downloaded from CDN
 // Configure dynamically loaded assets (via webpack) to be downloaded from CDN
 // See: https://webpack.js.org/guides/public-path/#on-the-fly
 // See: https://webpack.js.org/guides/public-path/#on-the-fly
-__webpack_public_path__ = window.baseAssetPath
+__webpack_public_path__ = window.baseAssetPath // eslint-disable-line no-undef
 
 
 define([
 define([
   './libraries',
   './libraries',

+ 0 - 1
services/web/frontend/js/components/inputSuggestions.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/directives/asyncForm.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

+ 2 - 1
services/web/frontend/js/directives/complexPassword.js

@@ -1,5 +1,6 @@
+/* global PassField */
+
 /* eslint-disable
 /* eslint-disable
-    no-undef,
     max-len
     max-len
 */
 */
 define(['../base', 'libs/passfield'], function(App) {
 define(['../base', 'libs/passfield'], function(App) {

+ 63 - 64
services/web/frontend/js/directives/creditCards.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
-    no-undef,
     no-useless-escape,
     no-useless-escape,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
@@ -14,70 +13,70 @@
  * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
  * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
  */
  */
 define(['../base'], function(App) {
 define(['../base'], function(App) {
-  App.factory('ccUtils', function() {
-    const defaultFormat = /(\d{1,4})/g
-    const defaultInputFormat = /(?:^|\s)(\d{4})$/
-
-    const cards = [
-      // Credit cards
-      {
-        type: 'visa',
-        patterns: [4],
-        format: defaultFormat,
-        length: [13, 16],
-        cvcLength: [3],
-        luhn: true
-      },
-      {
-        type: 'mastercard',
-        patterns: [51, 52, 53, 54, 55, 22, 23, 24, 25, 26, 27],
-        format: defaultFormat,
-        length: [16],
-        cvcLength: [3],
-        luhn: true
-      },
-      {
-        type: 'amex',
-        patterns: [34, 37],
-        format: /(\d{1,4})(\d{1,6})?(\d{1,5})?/,
-        length: [15],
-        cvcLength: [3, 4],
-        luhn: true
-      },
-      {
-        type: 'dinersclub',
-        patterns: [30, 36, 38, 39],
-        format: /(\d{1,4})(\d{1,6})?(\d{1,4})?/,
-        length: [14],
-        cvcLength: [3],
-        luhn: true
-      },
-      {
-        type: 'discover',
-        patterns: [60, 64, 65, 622],
-        format: defaultFormat,
-        length: [16],
-        cvcLength: [3],
-        luhn: true
-      },
-      {
-        type: 'unionpay',
-        patterns: [62, 88],
-        format: defaultFormat,
-        length: [16, 17, 18, 19],
-        cvcLength: [3],
-        luhn: false
-      },
-      {
-        type: 'jcb',
-        patterns: [35],
-        format: defaultFormat,
-        length: [16],
-        cvcLength: [3],
-        luhn: true
-      }
-    ]
+  const defaultFormat = /(\d{1,4})/g
+  const defaultInputFormat = /(?:^|\s)(\d{4})$/
+
+  const cards = [
+    // Credit cards
+    {
+      type: 'visa',
+      patterns: [4],
+      format: defaultFormat,
+      length: [13, 16],
+      cvcLength: [3],
+      luhn: true
+    },
+    {
+      type: 'mastercard',
+      patterns: [51, 52, 53, 54, 55, 22, 23, 24, 25, 26, 27],
+      format: defaultFormat,
+      length: [16],
+      cvcLength: [3],
+      luhn: true
+    },
+    {
+      type: 'amex',
+      patterns: [34, 37],
+      format: /(\d{1,4})(\d{1,6})?(\d{1,5})?/,
+      length: [15],
+      cvcLength: [3, 4],
+      luhn: true
+    },
+    {
+      type: 'dinersclub',
+      patterns: [30, 36, 38, 39],
+      format: /(\d{1,4})(\d{1,6})?(\d{1,4})?/,
+      length: [14],
+      cvcLength: [3],
+      luhn: true
+    },
+    {
+      type: 'discover',
+      patterns: [60, 64, 65, 622],
+      format: defaultFormat,
+      length: [16],
+      cvcLength: [3],
+      luhn: true
+    },
+    {
+      type: 'unionpay',
+      patterns: [62, 88],
+      format: defaultFormat,
+      length: [16, 17, 18, 19],
+      cvcLength: [3],
+      luhn: false
+    },
+    {
+      type: 'jcb',
+      patterns: [35],
+      format: defaultFormat,
+      length: [16],
+      cvcLength: [3],
+      luhn: true
+    }
+  ]
 
 
+  App.factory('ccUtils', function() {
     const cardFromNumber = function(num) {
     const cardFromNumber = function(num) {
       num = (num + '').replace(/\D/g, '')
       num = (num + '').replace(/\D/g, '')
       for (let card of Array.from(cards)) {
       for (let card of Array.from(cards)) {

+ 0 - 1
services/web/frontend/js/directives/equals.js

@@ -1,5 +1,4 @@
 /* eslint-disable
 /* eslint-disable
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/directives/eventTracking.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     camelcase,
     camelcase,
     max-len,
     max-len,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/directives/expandableTextArea.js

@@ -1,5 +1,4 @@
 /* eslint-disable
 /* eslint-disable
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/directives/fineUpload.js

@@ -1,5 +1,4 @@
 /* eslint-disable
 /* eslint-disable
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/directives/focus.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/directives/maxHeight.js

@@ -1,5 +1,4 @@
 /* eslint-disable
 /* eslint-disable
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/directives/onEnter.js

@@ -1,5 +1,4 @@
 /* eslint-disable
 /* eslint-disable
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/directives/rightClick.js

@@ -1,5 +1,4 @@
 /* eslint-disable
 /* eslint-disable
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/directives/scroll.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/directives/selectAll.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/directives/stopPropagation.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/directives/videoPlayState.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/filters/formatDate.js

@@ -1,5 +1,4 @@
 /* eslint-disable
 /* eslint-disable
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/filters/wrapLongWords.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
     no-useless-escape,
     no-useless-escape,
 */
 */

+ 0 - 1
services/web/frontend/js/ide.js

@@ -3,7 +3,6 @@
     max-len,
     max-len,
     no-cond-assign,
     no-cond-assign,
     no-return-assign,
     no-return-assign,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
     no-useless-escape,
     no-useless-escape,
 */
 */

+ 0 - 1
services/web/frontend/js/ide/SafariScrollPatcher.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

+ 0 - 1
services/web/frontend/js/ide/binary-files/BinaryFilesManager.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

+ 0 - 1
services/web/frontend/js/ide/chat/controllers/ChatButtonController.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/chat/controllers/ChatController.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/chat/controllers/ChatMessageController.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/chat/index.js

@@ -1,5 +1,4 @@
 /* eslint-disable
 /* eslint-disable
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 2 - 1
services/web/frontend/js/ide/chat/services/chatMessages.js

@@ -1,7 +1,8 @@
+/* global Raven */
+
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

+ 0 - 1
services/web/frontend/js/ide/clone/controllers/CloneProjectController.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/clone/controllers/CloneProjectModalController.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/clone/index.js

@@ -1,5 +1,4 @@
 /* eslint-disable
 /* eslint-disable
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/cobranding/CobrandingDataService.js

@@ -2,7 +2,6 @@
     camelcase,
     camelcase,
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 17 - 7
services/web/frontend/js/ide/colors/ColorManager.js

@@ -2,7 +2,6 @@
     camelcase,
     camelcase,
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
@@ -48,8 +47,10 @@ define(['crypto-js/md5'], function(CryptoJS) {
       return r + g + b < 3 * 128
       return r + g + b < 3 * 128
     },
     },
 
 
-    OWN_HUE: 200, // We will always appear as this color to ourselves
     ANONYMOUS_HUE: 100,
     ANONYMOUS_HUE: 100,
+    OWN_HUE: 200, // We will always appear as this color to ourselves
+    OWN_HUE_BLOCKED_SIZE: 20, // no other user should havea HUE in this range
+    TOTAL_HUES: 360, // actually 361, but 360 for legacy reasons
     getHueForUserId(user_id) {
     getHueForUserId(user_id) {
       if (user_id == null || user_id === 'anonymous-user') {
       if (user_id == null || user_id === 'anonymous-user') {
         return this.ANONYMOUS_HUE
         return this.ANONYMOUS_HUE
@@ -59,11 +60,18 @@ define(['crypto-js/md5'], function(CryptoJS) {
         return this.OWN_HUE
         return this.OWN_HUE
       }
       }
 
 
-      hue = this.getHueForId(user_id)
-      // Avoid 20 degrees either side of the personal hue
-      if (hue > this.OWNER_HUE - 20) {
-        hue = hue + 40
+      let hue = this.getHueForId(user_id)
+
+      // if `hue` is within `OWN_HUE_BLOCKED_SIZE` degrees of the personal hue
+      // (`OWN_HUE`), shift `hue` to the end of available hues by adding
+      if (
+        hue > this.OWN_HUE - this.OWN_HUE_BLOCKED_SIZE &&
+        hue < this.OWN_HUE + this.OWN_HUE_BLOCKED_SIZE
+      ) {
+        hue = hue - this.OWN_HUE // `hue` now at 0 +/- `OWN_HUE_BLOCKED_SIZE`
+        hue = hue + this.TOTAL_HUES - this.OWN_HUE_BLOCKED_SIZE
       }
       }
+
       return hue
       return hue
     },
     },
 
 
@@ -73,7 +81,9 @@ define(['crypto-js/md5'], function(CryptoJS) {
 
 
     getHueForId(id) {
     getHueForId(id) {
       const hash = CryptoJS(id)
       const hash = CryptoJS(id)
-      let hue = parseInt(hash.toString().slice(0, 8), 16) % 320
+      let hue =
+        parseInt(hash.toString().slice(0, 8), 16) %
+        (this.TOTAL_HUES - this.OWN_HUE_BLOCKED_SIZE * 2)
       return hue
       return hue
     }
     }
   })
   })

+ 0 - 1
services/web/frontend/js/ide/directives/SafePath.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/directives/layout.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
     no-useless-escape,
     no-useless-escape,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

+ 0 - 1
services/web/frontend/js/ide/directives/validFile.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/editor/Document.js

@@ -2,7 +2,6 @@
     camelcase,
     camelcase,
     handle-callback-err,
     handle-callback-err,
     max-len,
     max-len,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/editor/EditorManager.js

@@ -3,7 +3,6 @@
     handle-callback-err,
     handle-callback-err,
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/editor/EditorShareJsCodec.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 1 - 2
services/web/frontend/js/ide/editor/ShareJsDoc.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     camelcase,
     camelcase,
     max-len,
     max-len,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
@@ -157,7 +156,7 @@ define(['../../utils/EventEmitter', 'libs/sharejs'], function(
 
 
       _processQueue() {
       _processQueue() {
         if (this.queuedMessages.length > 0) {
         if (this.queuedMessages.length > 0) {
-          nextAvailableVersion = this.queuedMessages[0].v
+          const nextAvailableVersion = this.queuedMessages[0].v
           if (nextAvailableVersion > this._doc.version) {
           if (nextAvailableVersion > this._doc.version) {
             // there are updates we still can't apply yet
             // there are updates we still can't apply yet
           } else {
           } else {

+ 0 - 1
services/web/frontend/js/ide/editor/components/spellMenu.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/editor/controllers/SavingNotificationController.js

@@ -2,7 +2,6 @@
     camelcase,
     camelcase,
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/editor/directives/aceEditor/auto-complete/CommandManager.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

+ 0 - 1
services/web/frontend/js/ide/editor/directives/aceEditor/auto-complete/EnvironmentManager.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/editor/directives/aceEditor/auto-complete/Helpers.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-cond-assign,
     no-cond-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/editor/directives/aceEditor/auto-complete/PackageManager.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/editor/directives/aceEditor/auto-complete/snippets/Environments.js

@@ -1,5 +1,4 @@
 /* eslint-disable
 /* eslint-disable
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/editor/directives/aceEditor/auto-complete/snippets/TopHundredSnippets.js

@@ -1,5 +1,4 @@
 /* eslint-disable
 /* eslint-disable
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/editor/directives/aceEditor/cursor-position/CursorPositionAdapter.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

+ 0 - 1
services/web/frontend/js/ide/editor/directives/aceEditor/cursor-position/CursorPositionManager.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

+ 0 - 1
services/web/frontend/js/ide/editor/directives/aceEditor/highlights/HighlightsManager.js

@@ -2,7 +2,6 @@
     camelcase,
     camelcase,
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

+ 0 - 1
services/web/frontend/js/ide/editor/directives/aceEditor/metadata/MetadataManager.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-cond-assign,
     no-cond-assign,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

+ 0 - 1
services/web/frontend/js/ide/editor/directives/aceEditor/spell-check/HighlightedWordManager.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

+ 0 - 1
services/web/frontend/js/ide/editor/directives/toggleSwitch.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/file-tree/FileTreeManager.js

@@ -4,7 +4,6 @@
     max-len,
     max-len,
     no-dupe-class-members,
     no-dupe-class-members,
     no-return-assign,
     no-return-assign,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

+ 1 - 2
services/web/frontend/js/ide/file-tree/controllers/FileTreeController.js

@@ -3,7 +3,6 @@
     handle-callback-err,
     handle-callback-err,
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
@@ -182,7 +181,7 @@ define(['../../../base'], function(App) {
       }
       }
     })
     })
     return $scope.$on('done', (e, opts = {}) => {
     return $scope.$on('done', (e, opts = {}) => {
-      isBibFile = opts.name && /^.*\.bib$/.test(opts.name)
+      const isBibFile = opts.name && /^.*\.bib$/.test(opts.name)
       if (opts.shouldReindexReferences || isBibFile) {
       if (opts.shouldReindexReferences || isBibFile) {
         ide.$scope.$emit('references:should-reindex', {})
         ide.$scope.$emit('references:should-reindex', {})
       }
       }

+ 0 - 1
services/web/frontend/js/ide/file-tree/controllers/FileTreeEntityController.js

@@ -2,7 +2,6 @@
     chai-friendly/no-unused-expressions,
     chai-friendly/no-unused-expressions,
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/file-tree/controllers/FileTreeFolderController.js

@@ -2,7 +2,6 @@
     camelcase,
     camelcase,
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/file-tree/controllers/FileTreeRootFolderController.js

@@ -2,7 +2,6 @@
     camelcase,
     camelcase,
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/file-tree/directives/draggable.js

@@ -1,5 +1,4 @@
 /* eslint-disable
 /* eslint-disable
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/file-tree/directives/droppable.js

@@ -1,5 +1,4 @@
 /* eslint-disable
 /* eslint-disable
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/file-tree/directives/fileEntity.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/file-tree/util/iconTypeFromName.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

+ 0 - 1
services/web/frontend/js/ide/graphics/services/graphics.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/history/HistoryManager.js

@@ -2,7 +2,6 @@
     camelcase,
     camelcase,
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

+ 2 - 3
services/web/frontend/js/ide/history/HistoryV2Manager.js

@@ -2,7 +2,6 @@
     camelcase,
     camelcase,
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
@@ -401,13 +400,13 @@ define([
           )
           )
           filesWithOps = []
           filesWithOps = []
           if (currentUpdate != null) {
           if (currentUpdate != null) {
-            for (pathname of currentUpdate.pathnames) {
+            for (let pathname of currentUpdate.pathnames) {
               filesWithOps.push({
               filesWithOps.push({
                 pathname: pathname,
                 pathname: pathname,
                 operation: 'edited'
                 operation: 'edited'
               })
               })
             }
             }
-            for (op of currentUpdate.project_ops) {
+            for (let op of currentUpdate.project_ops) {
               let fileWithOp
               let fileWithOp
               if (op.add != null) {
               if (op.add != null) {
                 fileWithOp = {
                 fileWithOp = {

+ 0 - 1
services/web/frontend/js/ide/history/components/historyEntriesList.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/history/components/historyEntry.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/history/components/historyFileEntity.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/history/components/historyFileTree.js

@@ -1,5 +1,4 @@
 /* eslint-disable
 /* eslint-disable
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/history/components/historyLabel.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/history/components/historyLabelsList.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/history/controllers/HistoryDiffController.js

@@ -2,7 +2,6 @@
     camelcase,
     camelcase,
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/history/controllers/HistoryListController.js

@@ -2,7 +2,6 @@
     camelcase,
     camelcase,
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/history/controllers/HistoryV2AddLabelModalController.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/history/controllers/HistoryV2DeleteLabelModalController.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/history/controllers/HistoryV2FileTreeController.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/history/controllers/HistoryV2ListController.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/history/controllers/HistoryV2ToolbarController.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
     camelcase,
     camelcase,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

+ 0 - 1
services/web/frontend/js/ide/history/directives/infiniteScroll.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/history/util/HistoryViewModes.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     no-return-assign,
     no-return-assign,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

+ 0 - 1
services/web/frontend/js/ide/history/util/displayNameForUser.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

+ 0 - 1
services/web/frontend/js/ide/hotkeys/BackspaceHighjack.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/hotkeys/controllers/HotkeysController.js

@@ -2,7 +2,6 @@
     camelcase,
     camelcase,
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/hotkeys/index.js

@@ -1,5 +1,4 @@
 /* eslint-disable
 /* eslint-disable
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/human-readable-logs/HumanReadableLogs.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/human-readable-logs/HumanReadableLogsRules.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
-    no-undef,
     no-useless-escape,
     no-useless-escape,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

+ 0 - 1
services/web/frontend/js/ide/metadata/MetadataManager.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

+ 0 - 1
services/web/frontend/js/ide/metadata/services/metadata.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/online-users/OnlineUsersManager.js

@@ -3,7 +3,6 @@
     handle-callback-err,
     handle-callback-err,
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/online-users/controllers/OnlineUsersController.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/pdf/PdfManager.js

@@ -1,5 +1,4 @@
 /* eslint-disable
 /* eslint-disable
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

+ 0 - 1
services/web/frontend/js/ide/pdf/controllers/PdfViewToggleController.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/pdfng/directives/pdfHighlights.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

+ 0 - 1
services/web/frontend/js/ide/pdfng/directives/pdfJs.js

@@ -2,7 +2,6 @@
     max-len,
     max-len,
     no-cond-assign,
     no-cond-assign,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/pdfng/directives/pdfPage.js

@@ -2,7 +2,6 @@
     max-len,
     max-len,
     new-cap,
     new-cap,
     no-return-assign,
     no-return-assign,
-    no-undef,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 // Fix any style issues and re-enable lint.

+ 0 - 1
services/web/frontend/js/ide/pdfng/directives/pdfRenderer.js

@@ -3,7 +3,6 @@
     max-len,
     max-len,
     new-cap,
     new-cap,
     no-return-assign,
     no-return-assign,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

+ 0 - 1
services/web/frontend/js/ide/pdfng/directives/pdfSpinner.js

@@ -1,6 +1,5 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
     no-useless-constructor,
     no-useless-constructor,
 */
 */

+ 0 - 1
services/web/frontend/js/ide/pdfng/directives/pdfTextLayer.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     max-len,
     max-len,
     no-return-assign,
     no-return-assign,
-    no-undef,
     no-unused-vars,
     no-unused-vars,
 */
 */
 // TODO: This file was created by bulk-decaffeinate.
 // TODO: This file was created by bulk-decaffeinate.

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません