From 014671d8ce43fdb5b8e3562b66b3eaa98ce701ba Mon Sep 17 00:00:00 2001 From: ginnyTheCat Date: Thu, 8 Oct 2020 19:55:52 +0200 Subject: [PATCH] Fixed lint issues --- src/utils/colour.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils/colour.ts b/src/utils/colour.ts index 5a170094a1..5fb422c61c 100644 --- a/src/utils/colour.ts +++ b/src/utils/colour.ts @@ -14,8 +14,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { number } from "prop-types"; - export function textToHtmlRainbow(str: string): string { const frequency = (2 * Math.PI) / str.length; @@ -48,7 +46,7 @@ function generateAB(hue: number, chroma: number): [number, number] { function labToRGB(l: number, a: number, b: number): [number, number, number] { // Convert CIELAB to CIEXYZ (D65) - var y = (l + 16) / 116; + let y = (l + 16) / 116; const x = adjustXYZ(y + a / 500) * 0.9505; const z = adjustXYZ(y - b / 200) * 1.089;