Эх сурвалжийг харах

[misc] temporary override a few new/changed eslint rules

Jakob Ackermann 5 жил өмнө
parent
commit
e8697f7f97

+ 14 - 1
services/document-updater/.eslintrc

@@ -5,7 +5,7 @@
   "extends": [
   "extends": [
     "eslint:recommended",
     "eslint:recommended",
     "standard",
     "standard",
-    "prettier",
+    "prettier"
   ],
   ],
   "parserOptions": {
   "parserOptions": {
     "ecmaVersion": 2018
     "ecmaVersion": 2018
@@ -20,6 +20,19 @@
     "mocha": true
     "mocha": true
   },
   },
   "rules": {
   "rules": {
+    // TODO(das7pad): remove overrides after fixing all the violations manually (https://github.com/overleaf/issues/issues/3882#issuecomment-878999671)
+    // START of temporary overrides
+    "array-callback-return": "off",
+    "no-dupe-else-if": "off",
+    "no-var": "off",
+    "no-empty": "off",
+    "node/handle-callback-err": "off",
+    "no-loss-of-precision": "off",
+    "node/no-callback-literal": "off",
+    "node/no-path-concat": "off",
+    "prefer-regex-literals": "off",
+    // END of temporary overrides
+
     // Swap the no-unused-expressions rule with a more chai-friendly one
     // Swap the no-unused-expressions rule with a more chai-friendly one
     "no-unused-expressions": 0,
     "no-unused-expressions": 0,
     "chai-friendly/no-unused-expressions": "error",
     "chai-friendly/no-unused-expressions": "error",

+ 0 - 1
services/document-updater/app/js/sharejs/model.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     no-console,
     no-console,
     no-return-assign,
     no-return-assign,
-    standard/no-callback-literal,
 */
 */
 // 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/document-updater/app/js/sharejs/server/model.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     no-console,
     no-console,
     no-return-assign,
     no-return-assign,
-    standard/no-callback-literal,
 */
 */
 // 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/document-updater/app/js/sharejs/types/model.js

@@ -1,7 +1,6 @@
 /* eslint-disable
 /* eslint-disable
     no-console,
     no-console,
     no-return-assign,
     no-return-assign,
-    standard/no-callback-literal,
 */
 */
 // 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.