From 3fff4effb6e7478441da794374f79298b66f2039 Mon Sep 17 00:00:00 2001
From: Brian Peiris <brianpeiris@gmail.com>
Date: Fri, 5 Jan 2018 11:41:59 -0800
Subject: [PATCH] 120 printWidth in prettier

---
 .prettierrc.json   |  3 +++
 src/utils/webgl.js | 19 +++----------------
 2 files changed, 6 insertions(+), 16 deletions(-)
 create mode 100644 .prettierrc.json

diff --git a/.prettierrc.json b/.prettierrc.json
new file mode 100644
index 000000000..963354f23
--- /dev/null
+++ b/.prettierrc.json
@@ -0,0 +1,3 @@
+{
+  "printWidth": 120
+}
diff --git a/src/utils/webgl.js b/src/utils/webgl.js
index 2b75320d1..483454b39 100644
--- a/src/utils/webgl.js
+++ b/src/utils/webgl.js
@@ -7,17 +7,8 @@ function checkFloatTextureSupport() {
   const scene = new THREE.Scene();
   const size = 2;
   const data = new Float32Array(size * size * 4);
-  const dataTexture = new THREE.DataTexture(
-    data,
-    size,
-    size,
-    THREE.RGBAFormat,
-    THREE.FloatType
-  );
-  const box = new THREE.Mesh(
-    new THREE.PlaneBufferGeometry(1, 1),
-    new THREE.MeshBasicMaterial({ map: dataTexture })
-  );
+  const dataTexture = new THREE.DataTexture(data, size, size, THREE.RGBAFormat, THREE.FloatType);
+  const box = new THREE.Mesh(new THREE.PlaneBufferGeometry(1, 1), new THREE.MeshBasicMaterial({ map: dataTexture }));
   box.material.map.needsUpdate = true;
   scene.add(box);
 
@@ -36,11 +27,7 @@ export function patchWebGLRenderingContext() {
     // for those devices.
     // See https://github.com/mozilla/mr-social-client/issues/32 and
     // https://bugzilla.mozilla.org/show_bug.cgi?id=1338656
-    if (
-      name === "OES_texture_float" &&
-      /Android.+Firefox/.test(navigator.userAgent) &&
-      !supportsFloatTextures
-    ) {
+    if (name === "OES_texture_float" && /Android.+Firefox/.test(navigator.userAgent) && !supportsFloatTextures) {
       return null;
     }
     return originalGetExtension.call(this, name);
-- 
GitLab