Browse Source

require Capitalized constructors

Gregg Tavares 7 years ago
parent
commit
6debd2bf63
2 changed files with 2 additions and 2 deletions
  1. 1 1
      .eslintrc.json
  2. 1 1
      threejs/threejs-responsive-editor.html

+ 1 - 1
.eslintrc.json

@@ -57,7 +57,7 @@
     "curly": [2, "all"],
     "no-extra-parens": [2, "functions"],
     "eqeqeq": 2,
-    "new-cap": 0,
+    "new-cap": 2,
     "new-parens": 2,
     "semi-spacing": [2, {"before": false, "after": true}],
     "space-infix-ops": 2,

+ 1 - 1
threejs/threejs-responsive-editor.html

@@ -57,7 +57,7 @@
 
 // This code is only related to handling the split.
 // Our three.js code has not changed
-Split(['#view', '#controls'], {
+Split(['#view', '#controls'], {  // eslint-disable-line new-cap
   sizes: [75, 25],
   minSize: 100,
   elementStyle: (dimension, size, gutterSize) => {